|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--bill.util.xml.SimpleXML.SimpleXMLBuilder
This class is used to assist in the creation of a SimpleXML class instance from an XML string. It's instances are only created temporarily during the processing of the XML string, then they are discarded.
Constructor Summary | |
SimpleXML.SimpleXMLBuilder(String name)
|
Method Summary | |
void |
addChild(SimpleXML.SimpleXMLBuilder child)
Adds a new child object to this object's children list. |
boolean |
equals(Object other)
Checks if two SimpleXMLBuilder objects are equal. |
SimpleXML.SimpleXMLBuilder |
get(SimpleXML.SimpleXMLBuilder builder)
Finds the specified Builder object in this object's list of children. |
String |
getName()
Retrieves the name of this object. |
int |
getNumOccur()
Retrieves the number of times the element represented by this object occurs. |
void |
incrementCount()
Ups the number of occurrences of this object's element by one. |
void |
setChildren(Vector children)
Sets the list of children to the specified value. |
void |
setName(String name)
Sets the name of this object. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SimpleXML.SimpleXMLBuilder(String name)
Method Detail |
public String getName()
public void setName(String name)
name
- The new name of this object.public int getNumOccur()
public void incrementCount()
public SimpleXML.SimpleXMLBuilder get(SimpleXML.SimpleXMLBuilder builder)
builder
- The builder object to find.nul
if no
match was found.public void addChild(SimpleXML.SimpleXMLBuilder child)
child
- The new child object to add to the list.public void setChildren(Vector children)
children
- The new list of children.public boolean equals(Object other)
equals
in class Object
other
- The other object to check for equality.true
if the object are equal, returns
false
otherwise.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |