public class AttributeSet
extends java.lang.Object
Constructor and Description |
---|
AttributeSet() |
Modifier and Type | Method and Description |
---|---|
void |
add(java.lang.String name,
Attribute attribute)
Add an
Attribute to this set. |
boolean |
exists(java.lang.String name)
Returns if name of attribute already exists.
|
Attribute |
get(java.lang.String name)
Get an attribute given an identifier
|
boolean |
isEmpty()
Is this set empty?
|
java.util.Iterator |
iterator()
Return an iterator over all attributes in this set.
|
public void add(java.lang.String name, Attribute attribute)
Attribute
to this set.name
- The identifier of the attribute.attribute
- The attribute to add to this set.public boolean exists(java.lang.String name)
name
- The identifier of the attribute.public Attribute get(java.lang.String name)
name
- The identifier of the attribute.public boolean isEmpty()
public java.util.Iterator iterator()