public class XSObjectListImpl
extends java.lang.Object
implements org.apache.xerces.xs.XSObjectList
Modifier and Type | Field and Description |
---|---|
static org.apache.xerces.xs.XSObjectList |
EMPTY_LIST
An immutable empty list.
|
Constructor and Description |
---|
XSObjectListImpl() |
XSObjectListImpl(org.apache.xerces.xs.XSObject[] array,
int length)
Construct an XSObjectList implementation
|
Modifier and Type | Method and Description |
---|---|
void |
add(int index,
org.apache.xerces.xs.XSObject object) |
void |
add(org.apache.xerces.xs.XSObject object) |
void |
clear() |
int |
getLength()
The number of
XSObjects in the list. |
org.apache.xerces.xs.XSObject |
item(int index)
Returns the
index th item in the collection. |
public static final org.apache.xerces.xs.XSObjectList EMPTY_LIST
public XSObjectListImpl()
public XSObjectListImpl(org.apache.xerces.xs.XSObject[] array, int length)
array
- the data arraylength
- the number of elementspublic int getLength()
XSObjects
in the list. The range of valid
child node indices is 0 to length-1
inclusive.getLength
in interface org.apache.xerces.xs.XSObjectList
public org.apache.xerces.xs.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 org.apache.xerces.xs.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(org.apache.xerces.xs.XSObject object)
public void add(int index, org.apache.xerces.xs.XSObject object)
Copyright ? 1999-2005 Apache XML Project. All Rights Reserved.