|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Similar to the Attributes
interface in SAX. Not really a Map
, insofar as it only
supports a subset of the Map
methods.
One of the reasons this is an interface rather than a class is because we
don't want AttributeMap
to have any setter methods.
Nested Class Summary | |
static interface |
AttributeMap.Pair
Represents a single attribute as a name-value pair. |
Method Summary | |
boolean |
contains(String qName)
Returns true if the attribute map contains an attribute
named qName . |
String |
getValue(String qName)
Returns the value of the attribute named qName . |
Iterator |
keys()
Returns an iterator over the attribute names contained in this map. |
Iterator |
pairs()
Returns an iterator over name-value pairs
contained in this map. |
int |
size()
Returns the number of attributes. |
Method Detail |
public boolean contains(String qName)
true
if the attribute map contains an attribute
named qName
.
public String getValue(String qName)
qName
.
public int size()
public Iterator keys()
public Iterator pairs()
pairs
contained in this map.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |