| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--bill.util.xml.SimpleXMLObjectList
Holds a list of sibling object that have the same name. Since XML allows multiple objects at the same level to have the same name, we use a list to facilitate this.
| Constructor Summary | |
SimpleXMLObjectList(String name)
 | 
|
| Method Summary | |
 boolean | 
equals(Object other)
Checks if two SimpleXMLObjectList objects are equal.  | 
 Vector | 
getList()
Retrieves the list of SimpleXMLObjects contained in this object.  | 
 String | 
getName()
Retrieves the name of this object.  | 
 int | 
getNumberOfObjects()
Retrieves the number of objects that are are being held in this list.  | 
 SimpleXMLObject | 
getObject(int index)
Retrieves a specific SimpleXMLObject by its index in the list of known SimpleXMLObjects.  | 
 void | 
removeObject(int index)
Removes the specified objet instance from the list of objects.  | 
 void | 
setName(String name)
Sets the name of this object.  | 
 String | 
toXML()
Dumps out the object in valid XML string representation.  | 
 SimpleXMLObject | 
updateObject(String value)
Updates the first SimpleXMLObject in this list object.  | 
 SimpleXMLObject | 
updateObject(String value,
             int index)
Updates (or adds if it does not exist) a SimpleXMLObject from this list object at the specified index.  | 
| Methods inherited from class java.lang.Object | 
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
public SimpleXMLObjectList(String name)
| Method Detail | 
public String getName()
public void setName(String name)
name - The new name of this object.public Vector getList()
public SimpleXMLObject getObject(int index)
index - The index (0 based) into the list of SimpleXMLObjects.null if
 their is no list item with that index.public int getNumberOfObjects()
public void removeObject(int index)
index - The index of the objet to be removed from the list.public String toXML()
public SimpleXMLObject updateObject(String value)
value - The value of the new list object.
public SimpleXMLObject updateObject(String value,
                                    int index)
null is passed
 as the value, than the existing value is left unchanged.value - The value of the new list object.index - Index to add the object to the list at (0 based).public boolean equals(Object other)
equals in class Objectother - 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 | ||||||||