public class Attributes extends Object
Constructor and Description |
---|
Attributes() |
Modifier and Type | Method and Description |
---|---|
void |
addAttribute(Attribute attribute)
Adds Attribute to the collection
|
String[] |
getAllAtttributeNames()
Returns a list of unique attribute names in the collection
|
Attribute |
getAttribute(String elementName,
String attributeName)
Returns the specified Attribute using the element name and the attribute
name; null if no matching attribute is in the collection.
|
AttributeIterator |
getAttributeIterator()
Returns an iterator of all the Attributes in the collection
|
AttributeIterator |
getAttributesByElementName(String eName)
Returns all attributes declared for a specific element.
|
AttributeIterator |
getAttributesByName(String aName)
Returns all attributes that have the specified name.
|
boolean |
hasAttribute(Attribute attribute) |
boolean |
hasAttribute(String elementName,
String attributeName)
Indicates whether a specific attribute is in the collection.
|
public void addAttribute(Attribute attribute)
attribute
- Attribute to be addedpublic String[] getAllAtttributeNames()
public Attribute getAttribute(String elementName, String attributeName)
elementName
- Element nameattributeName
- Attribute namepublic AttributeIterator getAttributeIterator()
public AttributeIterator getAttributesByElementName(String eName)
eName
- Element namepublic AttributeIterator getAttributesByName(String aName)
aName
- Attribute namepublic boolean hasAttribute(Attribute attribute)
attribute
-