FileDocCategorySizeDatePackage
NSItemListImpl.javaAPI DocApache Xerces 3.0.12452Fri Sep 14 20:33:54 BST 2007org.apache.xerces.impl.xs.util

NSItemListImpl

public class NSItemListImpl extends Object implements org.apache.xerces.xs.XSNamespaceItemList
Containts a list of Object's.
xerces.internal
author
Sandy Gao, IBM
version
$Id: NSItemListImpl.java 446723 2006-09-15 20:37:45Z mrglavas $

Fields Summary
private org.apache.xerces.xs.XSNamespaceItem[]
fArray
private int
fLength
private Vector
fVector
Constructors Summary
public NSItemListImpl(Vector v)


       
        fVector = v;        
        fLength = v.size();
    
public NSItemListImpl(org.apache.xerces.xs.XSNamespaceItem[] array, int length)
Construct an XSNamespaceItemList implementation

param
array the data array
param
length the number of elements

        fArray = array;
        fLength = length;
    
Methods Summary
public intgetLength()
The number of Objects in the list. The range of valid child node indices is 0 to length-1 inclusive.

        return fLength;
    
public org.apache.xerces.xs.XSNamespaceItemitem(int index)

        if (index < 0 || index >= fLength)
            return null;
        if (fVector != null) {
            return (XSNamespaceItem)fVector.elementAt(index);
        }
        return fArray[index];