org.apache.xerces.impl.xs.util

Class StringListImpl

public class StringListImpl extends Object implements StringList

Containts a list of Object's.

Version: $Id: StringListImpl.java,v 1.8 2004/10/06 15:14:50 mrglavas Exp $

Author: Sandy Gao, IBM

UNKNOWN:

Field Summary
static StringListEMPTY_LIST
An immutable empty list.
Constructor Summary
StringListImpl(Vector v)
StringListImpl(String[] array, int length)
Construct an XSObjectList implementation
Method Summary
booleancontains(String item)
Checks if the GenericString item is a member of this list.
intgetLength()
The number of Objects in the list.
Stringitem(int index)

Field Detail

EMPTY_LIST

public static final StringList EMPTY_LIST
An immutable empty list.

Constructor Detail

StringListImpl

public StringListImpl(Vector v)

StringListImpl

public StringListImpl(String[] array, int length)
Construct an XSObjectList implementation

Parameters: array the data array length the number of elements

Method Detail

contains

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.

getLength

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

item

public String item(int index)
Copyright B) 1999-2005 Apache XML Project. All Rights Reserved.