Top Description Fields Constructors Methods
org.apache.xerces.impl.xs

pack-priv final Class PSVIErrorList

extends AbstractList
implements StringList
Class Inheritance
All Implemented Interfaces
org.apache.xerces.xs.StringList, java.util.List, java.util.SequencedCollection, java.util.Collection, java.lang.Iterable
Imports
java.util.AbstractList, org.apache.xerces.xs.StringList

StringList implementation for schema error codes and error messages.
Author
Michael Glavassevich, IBM
Version
$Id: PSVIErrorList.java 726308 2008-12-13 23:54:09Z mrglavas $

Field Summary

Modifier and TypeField and Description
private final String[]
private final int
private final int
Inherited from java.util.AbstractList:
modCount

Constructor Summary

AccessConstructor and Description
public
PSVIErrorList(String[] array, boolean even)

Method Summary

Modifier and TypeMethod and Description
public boolean
contains(String
GenericString whose presence in this list is to be tested.
item
)

Implements org.apache.xerces.xs.StringList.contains.

Checks if the GenericString item is a member of this list.
public Object
get(int
index of the element to return
index
)

Implements abstract java.util.AbstractList.get.

Implements java.util.List.get.

Returns the element at the specified position in this list.
public int
getLength()

Implements org.apache.xerces.xs.StringList.getLength.

The number of GenericStrings in the list.
public String
item(int
index into the collection.
index
)

Implements org.apache.xerces.xs.StringList.item.

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

Implements abstract java.util.AbstractCollection.size.

Implements java.util.List.size, java.util.Collection.size.

Returns the number of elements in this list.
Inherited from java.util.AbstractList:
addaddaddAllclearequalshashCodeindexOfiteratorlastIndexOflistIteratorlistIteratorremoveremoveRangesetsubList

Field Detail

fArrayback to summary
private final String[] fArray
fLengthback to summary
private final int fLength
fOffsetback to summary
private final int fOffset

Constructor Detail

PSVIErrorListback to summary
public PSVIErrorList(String[] array, boolean even)

Method Detail

containsback to summary
public boolean contains(String item)

Implements org.apache.xerces.xs.StringList.contains.

Doc from org.apache.xerces.xs.StringList.contains.

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

Parameters
item:String

GenericString whose presence in this list is to be tested.

Returns:boolean

True if this list contains the GenericString item.

getback to summary
public Object get(int index)

Implements abstract java.util.AbstractList.get.

Implements java.util.List.get.

Doc from java.util.List.get.

Returns the element at the specified position in this list.

Parameters
index:int

index of the element to return

Returns:Object

the element at the specified position in this list

getLengthback to summary
public int getLength()

Implements org.apache.xerces.xs.StringList.getLength.

Doc from org.apache.xerces.xs.StringList.getLength.

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

itemback to summary
public String item(int index)

Implements org.apache.xerces.xs.StringList.item.

Doc from org.apache.xerces.xs.StringList.item.

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:String

The GenericString at the indexth position in the StringList, or null if the index specified is not valid.

sizeback to summary
public int size()

Implements abstract java.util.AbstractCollection.size.

Implements java.util.List.size, java.util.Collection.size.

Doc from java.util.List.size.

Returns the number of elements in this list. If this list contains more than Integer.MAX_VALUE elements, returns Integer.MAX_VALUE.

Returns:int

the number of elements in this list