public class

StringListImpl

extends Object
implements StringList
java.lang.Object
   ↳ org.apache.xerces.impl.xs.util.StringListImpl

Class Overview

Containts a list of Object's.

Summary

Fields
public static final StringList EMPTY_LIST An immutable empty list.
Public Constructors
StringListImpl(Vector v)
StringListImpl(String[] array, int length)
Construct an XSObjectList implementation
Public Methods
boolean contains(String item)
Checks if the GenericString item is a member of this list.
int getLength()
The number of Objects in the list.
String item(int index)
Returns the indexth item in the collection or null if index is greater than or equal to the number of objects in the list.
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.apache.xerces.xs.StringList

Fields

public static final StringList EMPTY_LIST

An immutable empty list.

Public Constructors

public StringListImpl (Vector v)

public StringListImpl (String[] array, int length)

Construct an XSObjectList implementation

Parameters
array the data array
length the number of elements

Public Methods

public boolean contains (String item)

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

Parameters
item GenericString whose presence in this list is to be tested.
Returns
  • True if this list contains the GenericString item.

public int getLength ()

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

public String item (int index)

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 index into the collection.
Returns
  • The GenericString at the indexth position in the StringList, or null if the index specified is not valid.