Common
Class myXML.Attribute

java.lang.Object
  extended by Common.myXML.Attribute
Enclosing class:
myXML

public class myXML.Attribute
extends java.lang.Object

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

myXML.Attribute

public myXML.Attribute()
Method Detail

add

public void add(java.lang.String name,
                java.lang.Object value)
Add a named attribute to this element

Parameters:
name - String identifying the name of the attribute
value - Object identifying the data to be associated with the attribute

find

public java.lang.String find(java.lang.String name)
Retrieve the value associated with the attribute identified

Parameters:
name - The name of the attribute to find
Returns:
String object: String form of the value associated with the attribute