|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface to represent lists of XmlObject instances returned from a query. Used also as a convenient typed way of collecting XmlObject instances.
Nested Class Summary | |
static class |
XmlObjectList.Factory
Static factory class for creating new instances of XmlObjectList |
Method Summary | |
void |
add(com.bea.xml.XmlObject xml)
Adds a XmlObject to the end of the list. |
void |
addAll(com.bea.xml.XmlObject[] xmlArray)
Appends an array of XmlObject instances to this list. |
void |
addAll(XmlObjectList xmlList)
Appends the contents of another list to this list. |
void |
clear()
Clears out the contents of this list. |
com.bea.xml.XmlObject |
get(int index)
Gets the XmlObject at a specified position in the list. |
boolean |
isEmpty()
Tests if this XmlList is empty. |
Iterator |
iterator()
Returns an Iterator over all the XmlObject instances contained in this list. |
int |
size()
Returns the number of XmlObject instances contained in this list. |
com.bea.xml.XmlObject[] |
toArray()
Returns a copy of the contents of the XmlList in a newly created array of XmlObjects. |
Method Detail |
public void add(com.bea.xml.XmlObject xml)
xml
- the XmlObject instance to add to the listpublic void addAll(XmlObjectList xmlList)
xmlList
- the list which is to be appended to this list.public void addAll(com.bea.xml.XmlObject[] xmlArray)
xmlArray
- the array which is to be appended to this list.public void clear()
isEmpty()
will return true
.
public com.bea.xml.XmlObject get(int index)
index
- the specified position
IndexOutOfBoundsException
- if
(index < 0) || (index >= size())
public boolean isEmpty()
size()
== 0
.
public Iterator iterator()
public int size()
public com.bea.xml.XmlObject[] toArray()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |