org.apache.xerces.impl.xs.util
Class StringListImpl

java.lang.Object
  |
  +--org.apache.xerces.impl.xs.util.StringListImpl
All Implemented Interfaces:
StringList

public class StringListImpl
extends java.lang.Object
implements StringList

Containts a list of Object's.

Version:
$Id: StringListImpl.java,v 1.2 2003/01/14 20:21:48 elena Exp $
Author:
Sandy Gao, IBM

Constructor Summary
StringListImpl(java.lang.String[] array, int length)
          Construct an XSObjectList implementation
StringListImpl(java.util.Vector v)
           
 
Method Summary
 int getLength()
          The number of Objects in the list.
 java.lang.String item(int index)
          Returns the indexth item in the collection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringListImpl

public StringListImpl(java.util.Vector v)

StringListImpl

public StringListImpl(java.lang.String[] array,
                      int length)
Construct an XSObjectList implementation
Parameters:
array - the data array
length - the number of elements
Method Detail

getLength

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

item

public java.lang.String item(int index)
Description copied from interface: StringList
Returns the indexth item in the collection. The index starts at 0. If index is greater than or equal to the number of objects in the list, this returns null.
Specified by:
item in interface StringList
Following copied from interface: org.apache.xerces.impl.xs.psvi.StringList
Parameters:
index - index into the collection.
Returns:
The GenericString at the indexth position in the StringList, or null if that is not a valid index.


Copyright © 1999-2003 Apache XML Project. All Rights Reserved.