|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.xerces.impl.xs.util.XSObjectListImpl
public class XSObjectListImpl
Containts a list of XSObject's.
Field Summary | |
---|---|
static XSObjectList |
EMPTY_LIST
An immutable empty list. |
Constructor Summary | |
---|---|
XSObjectListImpl()
|
|
XSObjectListImpl(XSObject[] array,
int length)
Construct an XSObjectList implementation |
Method Summary | |
---|---|
void |
add(int index,
XSObject object)
|
void |
add(XSObject object)
|
void |
clear()
|
int |
getLength()
The number of XSObjects in the list. |
XSObject |
item(int index)
Returns the index th item in the collection. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final XSObjectList EMPTY_LIST
Constructor Detail |
---|
public XSObjectListImpl()
public XSObjectListImpl(XSObject[] array, int length)
array
- the data arraylength
- the number of elementsMethod Detail |
---|
public int getLength()
XSObjects
in the list. The range of valid
child node indices is 0 to length-1
inclusive.
getLength
in interface XSObjectList
public XSObject item(int index)
index
th item in the collection. The index
starts at 0. If index
is greater than or equal to the
number of nodes in the list, this returns null
.
item
in interface XSObjectList
index
- index into the collection.
index
th position in the
XSObjectList
, or null
if that is not a
valid index.public void clear()
public void add(XSObject object)
public void add(int index, XSObject object)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |