public class

XSObjectListImpl

extends Object
implements XSObjectList
java.lang.Object
   ↳ org.apache.xerces.impl.xs.util.XSObjectListImpl

Class Overview

Containts a list of XSObject's.

Summary

Fields
public static final XSObjectList EMPTY_LIST An immutable empty list.
Public Constructors
XSObjectListImpl()
XSObjectListImpl(XSObject[] array, int length)
Construct an XSObjectList implementation
Public Methods
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 indexth item in the collection.
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.apache.xerces.xs.XSObjectList

Fields

public static final XSObjectList EMPTY_LIST

An immutable empty list.

Public Constructors

public XSObjectListImpl ()

public XSObjectListImpl (XSObject[] array, int length)

Construct an XSObjectList implementation

Parameters
array the data array
length the number of elements

Public Methods

public void add (int index, XSObject object)

public void add (XSObject object)

public void clear ()

public int getLength ()

The number of XSObjects in the list. The range of valid child node indices is 0 to length-1 inclusive.

public XSObject item (int index)

Returns the indexth 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 indexth position in the XSObjectList, or null if that is not a valid index.