|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectCommon.myXML.Attribute
public class myXML.Attribute
Attributes associated with element tags. Multiple attributes can be added
to any element tag and will be stored between the < and >. Attributes
are written to the XML tree in the form:
<tag attr1="attr1value attr2="attr2value" ... >value</tag>
Constructor Summary | |
---|---|
myXML.Attribute()
|
Method Summary | |
---|---|
void |
add(java.lang.String name,
java.lang.Object value)
Add a named attribute to this element |
java.lang.String |
find(java.lang.String name)
Retrieve the value associated with the attribute identified |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public myXML.Attribute()
Method Detail |
---|
public void add(java.lang.String name, java.lang.Object value)
name
- String identifying the name of the attributevalue
- Object identifying the data to be associated with the attributepublic java.lang.String find(java.lang.String name)
name
- The name of the attribute to find
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |