org.apache.xerces.impl.xs.util
public class XSObjectListImpl extends Object implements XSObjectList
Version: $Id: XSObjectListImpl.java,v 1.11 2004/12/03 15:50:44 mrglavas Exp $
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(XSObject object) |
void | add(int index, 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. |
Parameters: array the data array length the number of elements
XSObjects
in the list. The range of valid
child node indices is 0 to length-1
inclusive.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
.Parameters: index index into the collection.
Returns: The XSObject at the index
th position in the
XSObjectList
, or null
if that is not a
valid index.