|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.mindswap.xmlparser.utils.AttributeList
Constructor Summary | |
AttributeList()
|
Method Summary | |
java.lang.Object |
clone()
Clones this attribute list returning a new copy. |
boolean |
containsKey(java.lang.String key)
Returns true or false based on whether or not the parameter is an attribute currently in the list. |
java.lang.String |
get(java.lang.String key)
Gets the value for an attribute given the attribute name. |
java.lang.String |
getAttributeByName(java.lang.String name)
Gets the value for an attribute given the attribute name. |
java.util.Enumeration |
keys()
Returns an enumeration of keys in the attribute list. |
void |
put(java.lang.String key,
java.lang.String value)
Puts an attribute with value into the list. |
int |
size()
Returns the number of attributes currently in the list. |
java.lang.String |
toString()
Returns a simple text representation of the list. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public AttributeList()
Method Detail |
public int size()
public boolean containsKey(java.lang.String key)
key
- Attribute to look forpublic java.util.Enumeration keys()
public void put(java.lang.String key, java.lang.String value)
key
- Attribute name to store in listvalue
- Attribute value associated with the keypublic java.lang.String get(java.lang.String key)
key
- Attribute to retrieve from listgetAttributeByName(java.lang.String)
public java.lang.String getAttributeByName(java.lang.String name)
key
- Attribute to retrieve from listget(java.lang.String)
public java.lang.Object clone()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |