FileDocCategorySizeDatePackage
NSItemListImpl.javaAPI DocJava SE 6 API2255Tue Jun 10 00:22:48 BST 2008com.sun.org.apache.xerces.internal.impl.xs.util

NSItemListImpl

public class NSItemListImpl extends Object implements XSNamespaceItemList
Containts a list of Object's.
xerces.internal
author
Sandy Gao, IBM
version
$Id: NSItemListImpl.java,v 1.2.6.1 2005/09/09 07:28:10 sunithareddy 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];