Top Description Methods
com.sun.org.apache.xerces.internal.xs.datatypes

public Interface ObjectList

extends List<Object>
Known Direct Implementers
com.sun.org.apache.xerces.internal.impl.dv.xs.ListDV.ListData, com.sun.org.apache.xerces.internal.impl.dv.xs.XSSimpleTypeDecl.AbstractObjectList, com.sun.org.apache.xerces.internal.impl.xs.util.ObjectListImpl
Imports
java.util.List

The ObjectList is an immutable ordered collection of Object.

Author
Ankit Pasricha, IBM

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

True if this list contains the Object item.
contains
(Object
Object whose presence in this list is to be tested.
item
)

Redeclares java.util.List.contains.

Checks if the Object item is a member of this list.

public int
getLength()

The number of Objects in the list.

public Object

Returns:

The Object at the indexth position in the ObjectList, or null if the index specified is not valid - greater than or equal to the number of items in the list or less than zero.
item
(int
index into the collection.
index
)

Returns the indexth item in the collection or null if index is greater than or equal to the number of objects in the list.

Inherited from java.util.List:
addaddaddAlladdAlladdFirstaddLastclearcontainsAllcopyOfequalsgetgetFirstgetLasthashCodeindexOfisEmptyiteratorlastIndexOflistIteratorlistIteratorofofofofofofofofofofofofremoveremoveremoveAllremoveFirstremoveLastreplaceAllretainAllreversedsetsizesortspliteratorsubListtoArraytoArray

Method Detail

containsback to summary
public boolean contains(Object item)

Redeclares java.util.List.contains.

Checks if the Object item is a member of this list.

Parameters
item:Object

Object whose presence in this list is to be tested.

Returns:boolean

True if this list contains the Object item.

getLengthback to summary
public int getLength()

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

itemback to summary
public Object item(int index)

Returns the indexth item in the collection or null if index is greater than or equal to the number of objects in the list. The index starts at 0.

Parameters
index:int

index into the collection.

Returns:Object

The Object at the indexth position in the ObjectList, or null if the index specified is not valid - greater than or equal to the number of items in the list or less than zero.