Constructor and Description |
---|
Attributes() |
Modifier and Type | Method and Description |
---|---|
void |
add(Attribute attribute)
Adds a new
Attribute . |
Attributes |
clone() |
boolean |
contains(String attributeName) |
boolean |
equals(Object obj) |
Attribute |
get(String attributeName)
Returns the
Attribute with the given name. |
String |
getValue(String attributeName)
Return the value of the contained
Attribute with the given name. |
int |
hashCode() |
boolean |
isEmpty() |
Iterator<Attribute> |
iterator()
Returns an iterator over the set of contained attributes.
|
Attributes |
unmodifiableView()
Returns an unmodifiable view of this attribute collection.
|
public void add(Attribute attribute)
Attribute
. If there was a previous attribute with that name
the old value will be replaced by the new given value.attribute
- Attribute instance to be addedpublic Attribute get(String attributeName)
Attribute
with the given name.attributeName
- Name of the attribute to be returnedAttribute
with the given name
or null
if there is no such attributepublic String getValue(String attributeName)
Attribute
with the given name.attributeName
- Name of the Attribute
whose value shall be returnedAttribute
with the given name
or null
if there is no such attributepublic boolean contains(String attributeName)
public boolean isEmpty()
public Iterator<Attribute> iterator()
public Attributes unmodifiableView()
public Attributes clone()
Copyright © Aimpulse Intelligent Systems GmbH
All rights reserved.