APIdia Launch Partner
Top Description Fields Constructors Methods
com.sun.org.apache.xerces.internal.impl.xs

pack-priv final Class PSVIErrorList

extends AbstractList<String>
implements StringList
Class Inheritance
All Implemented Interfaces
com.sun.org.apache.xerces.internal.xs.StringList, java.util.List, java.util.SequencedCollection, java.util.Collection, java.lang.Iterable
Imports
com.sun.org.apache.xerces.internal.xs.StringList, java.util.AbstractList

StringList implementation for schema error codes and error messages.
Author
Michael Glavassevich, IBM

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 item)

Implements com.sun.org.apache.xerces.internal.xs.StringList.contains.

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

public String
get(int 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 com.sun.org.apache.xerces.internal.xs.StringList.getLength.

The number of GenericStrings in the list.

public String
item(int index)

Implements com.sun.org.apache.xerces.internal.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 com.sun.org.apache.xerces.internal.xs.StringList.contains.

Doc from com.sun.org.apache.xerces.internal.xs.StringList.contains.

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

getback to summary
public String 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.

getLengthback to summary
public int getLength()

Implements com.sun.org.apache.xerces.internal.xs.StringList.getLength.

Doc from com.sun.org.apache.xerces.internal.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 com.sun.org.apache.xerces.internal.xs.StringList.item.

Doc from com.sun.org.apache.xerces.internal.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.

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.