public class XSObjectListImpl
extends java.util.AbstractList
implements org.apache.xerces.xs.XSObjectList
Modifier and Type | Field and Description |
---|---|
static XSObjectListImpl |
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 |
addXSObject(int index,
org.apache.xerces.xs.XSObject object) |
void |
addXSObject(org.apache.xerces.xs.XSObject object) |
void |
clearXSObjectList() |
boolean |
contains(java.lang.Object value) |
java.lang.Object |
get(int index) |
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. |
java.util.Iterator |
iterator() |
java.util.ListIterator |
listIterator() |
java.util.ListIterator |
listIterator(int index) |
int |
size() |
java.lang.Object[] |
toArray() |
java.lang.Object[] |
toArray(java.lang.Object[] a) |
add, add, addAll, clear, equals, hashCode, indexOf, lastIndexOf, remove, removeRange, set, subList
addAll, containsAll, isEmpty, remove, removeAll, retainAll, toString
public static final XSObjectListImpl 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 clearXSObjectList()
public void addXSObject(org.apache.xerces.xs.XSObject object)
public void addXSObject(int index, org.apache.xerces.xs.XSObject object)
public boolean contains(java.lang.Object value)
contains
in interface java.util.Collection
contains
in interface java.util.List
contains
in class java.util.AbstractCollection
public java.lang.Object get(int index)
get
in interface java.util.List
get
in class java.util.AbstractList
public int size()
size
in interface java.util.Collection
size
in interface java.util.List
size
in class java.util.AbstractCollection
public java.util.Iterator iterator()
iterator
in interface java.lang.Iterable
iterator
in interface java.util.Collection
iterator
in interface java.util.List
iterator
in class java.util.AbstractList
public java.util.ListIterator listIterator()
listIterator
in interface java.util.List
listIterator
in class java.util.AbstractList
public java.util.ListIterator listIterator(int index)
listIterator
in interface java.util.List
listIterator
in class java.util.AbstractList
public java.lang.Object[] toArray()
toArray
in interface java.util.Collection
toArray
in interface java.util.List
toArray
in class java.util.AbstractCollection
public java.lang.Object[] toArray(java.lang.Object[] a)
toArray
in interface java.util.Collection
toArray
in interface java.util.List
toArray
in class java.util.AbstractCollection
Copyright © 1999-2022 The Apache Software Foundation. All Rights Reserved.