public class ShortListImpl
extends java.lang.Object
implements org.apache.xerces.xs.ShortList
Constructor and Description |
---|
ShortListImpl(short[] array,
int length)
Construct an XSObjectList implementation
|
Modifier and Type | Method and Description |
---|---|
boolean |
contains(short item)
Checks if the
unsigned short item is a
member of this list. |
boolean |
equals(java.lang.Object obj) |
int |
getLength()
The number of
Objects in the list. |
short |
item(int index)
Returns the
index th item in the collection. |
public ShortListImpl(short[] array, int length)
array
- the data arraylength
- the number of elementspublic int getLength()
Objects
in the list. The range of valid
child node indices is 0 to length-1
inclusive.getLength
in interface org.apache.xerces.xs.ShortList
public boolean contains(short item)
unsigned short
item
is a
member of this list.contains
in interface org.apache.xerces.xs.ShortList
item
- unsigned short
whose presence in this list
is to be tested.unsigned short
item
.public short item(int index) throws org.apache.xerces.xs.XSException
org.apache.xerces.xs.ShortList
index
th item in the collection. The index
starts at 0.item
in interface org.apache.xerces.xs.ShortList
index
- index into the collection.unsigned short
at the index
th
position in the ShortList
.org.apache.xerces.xs.XSException
- INDEX_SIZE_ERR: if index
is greater than or equal to the
number of objects in the list.public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright ? 1999-2005 Apache XML Project. All Rights Reserved.