FileDocCategorySizeDatePackage
NSItemListImpl.javaAPI DocJava SE 5 API4290Fri Aug 26 14:55:52 BST 2005com.sun.org.apache.xerces.internal.impl.xs.util

NSItemListImpl

public class NSItemListImpl extends Object implements XSNamespaceItemList
Containts a list of Object's.
author
Sandy Gao, IBM
version
$Id: NSItemListImpl.java,v 1.3 2003/11/11 20:15:00 sandygao Exp $

Fields Summary
private XSNamespaceItem[]
fArray
private int
fLength
private Vector
fVector
Constructors Summary
public NSItemListImpl(Vector v)


       
        fVector = v;        
        fLength = v.size();
    
public NSItemListImpl(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 com.sun.org.apache.xerces.internal.xs.XSNamespaceItemitem(int index)

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