|
ProgramixGenericLib v5.0.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AttributeGroup
The group of attributes found in the starting tag for an element.
The methods below which take a name parameter use the
'simple name' that would be returned by the
getName()
of NameDetail
[the 'simple name'
is what you probably expect the name of the attribute to be!].
For the vast majority of code, the getValueMap()
method will
be the most useful as ValueMap
has many handy ways of accessing
and interpreting the data (including suppling default values for optional
items).
Method Summary | |
---|---|
Attribute |
get(int index)
Returns the attribute with the specified index. |
Attribute |
get(String name)
Returns the attribute with the specified name. |
int |
getSize()
Returns the number of attributes present. |
ValueMap |
getValueMap()
Returns all of the attributes conveniently accessible from a ValueMap . |
boolean |
hasAttribute(String name)
Returns true if there is an attribute present with the specified simple name. |
Method Detail |
---|
ValueMap getValueMap()
ValueMap
. The key into this ValueMap
is
the simple name returned from the getName()
method of NameDetail
[the simple name is what you probably
expect the name of the attribute to be!]. The value of the key-value
pair is actually a Value
.
int getSize()
boolean hasAttribute(String name)
AttributeGroup ag = //... String s = ag.getValueMap().getString("attrName", "defaultValue");
Attribute get(String name)
Attribute get(int index) throws ArrayIndexOutOfBoundsException
ArrayIndexOutOfBoundsException
|
ProgramixGenericLib v5.0.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |