Package org.apache.xerces.impl.xs.util
Class XSObjectListImpl
java.lang.Object
java.util.AbstractCollection
java.util.AbstractList
org.apache.xerces.impl.xs.util.XSObjectListImpl
- All Implemented Interfaces:
Iterable,Collection,List,SequencedCollection,org.apache.xerces.xs.XSObjectList
Contains a list of XSObjects.
INTERNAL:
- Usage of this class is not supported. It may be altered or removed at any time.
- Version:
- $Id: XSObjectListImpl.java 776079 2009-05-18 20:22:27Z mrglavas $
- Author:
- Sandy Gao, IBM
-
Field Summary
FieldsFields inherited from class java.util.AbstractList
modCount -
Constructor Summary
ConstructorsConstructorDescriptionXSObjectListImpl(org.apache.xerces.xs.XSObject[] array, int length) Construct an XSObjectList implementation -
Method Summary
Modifier and TypeMethodDescriptionvoidaddXSObject(int index, org.apache.xerces.xs.XSObject object) voidaddXSObject(org.apache.xerces.xs.XSObject object) voidbooleanget(int index) intThe number ofXSObjectsin the list.org.apache.xerces.xs.XSObjectitem(int index) Returns theindexth item in the collection.iterator()listIterator(int index) intsize()Object[]toArray()Object[]Methods inherited from class java.util.AbstractList
add, add, addAll, clear, equals, hashCode, indexOf, lastIndexOf, remove, removeRange, set, subListMethods inherited from class java.util.AbstractCollection
addAll, containsAll, isEmpty, remove, removeAll, retainAll, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
add, add, addAll, addAll, addFirst, addLast, clear, containsAll, equals, getFirst, getLast, hashCode, indexOf, isEmpty, lastIndexOf, remove, remove, removeAll, removeFirst, removeLast, replaceAll, retainAll, reversed, set, sort, spliterator, subList
-
Field Details
-
EMPTY_LIST
An immutable empty list.
-
-
Constructor Details
-
XSObjectListImpl
public XSObjectListImpl() -
XSObjectListImpl
public XSObjectListImpl(org.apache.xerces.xs.XSObject[] array, int length) Construct an XSObjectList implementation- Parameters:
array- the data arraylength- the number of elements
-
-
Method Details
-
getLength
public int getLength()The number ofXSObjectsin the list. The range of valid child node indices is 0 tolength-1inclusive.- Specified by:
getLengthin interfaceorg.apache.xerces.xs.XSObjectList
-
item
public org.apache.xerces.xs.XSObject item(int index) Returns theindexth item in the collection. The index starts at 0. Ifindexis greater than or equal to the number of nodes in the list, this returnsnull.- Specified by:
itemin interfaceorg.apache.xerces.xs.XSObjectList- Parameters:
index- index into the collection.- Returns:
- The XSObject at the
indexth position in theXSObjectList, ornullif that is not a valid index.
-
clearXSObjectList
public void clearXSObjectList() -
addXSObject
public void addXSObject(org.apache.xerces.xs.XSObject object) -
addXSObject
public void addXSObject(int index, org.apache.xerces.xs.XSObject object) -
contains
- Specified by:
containsin interfaceCollection- Specified by:
containsin interfaceList- Overrides:
containsin classAbstractCollection
-
get
- Specified by:
getin interfaceList- Specified by:
getin classAbstractList
-
size
public int size()- Specified by:
sizein interfaceCollection- Specified by:
sizein interfaceList- Specified by:
sizein classAbstractCollection
-
iterator
- Specified by:
iteratorin interfaceCollection- Specified by:
iteratorin interfaceIterable- Specified by:
iteratorin interfaceList- Overrides:
iteratorin classAbstractList
-
listIterator
- Specified by:
listIteratorin interfaceList- Overrides:
listIteratorin classAbstractList
-
listIterator
- Specified by:
listIteratorin interfaceList- Overrides:
listIteratorin classAbstractList
-
toArray
- Specified by:
toArrayin interfaceCollection- Specified by:
toArrayin interfaceList- Overrides:
toArrayin classAbstractCollection
-
toArray
- Specified by:
toArrayin interfaceCollection- Specified by:
toArrayin interfaceList- Overrides:
toArrayin classAbstractCollection
-