FileDocCategorySizeDatePackage
DOMStringListImpl.javaAPI DocJava SE 5 API4100Fri Aug 26 14:55:42 BST 2005com.sun.org.apache.xerces.internal.dom

DOMStringListImpl

public class DOMStringListImpl extends Object implements DOMStringList
DOM Level 3 Experimental This class implemets the DOM Levl 3 Core interface DOMStringList.
author
nddelima

Fields Summary
private Vector
fStrings
Constructors Summary
public DOMStringListImpl()
Construct an empty list of DOMStringListImpl

        fStrings = new Vector();    
    
public DOMStringListImpl(Vector params)
Construct an empty list of DOMStringListImpl

        fStrings = params;    
    
Methods Summary
public voidadd(java.lang.String param)
DOM Internal: Add a DOMString to the list.

param
domString A string to add to the list

        fStrings.add(param);
    
public booleancontains(java.lang.String param)

see
org.w3c.dom.DOMStringList#contains(String)

		return fStrings.contains(param) ;
	
public intgetLength()

see
org.w3c.dom.DOMStringList#getLength()

		return fStrings.size();
	
public java.lang.Stringitem(int index)

see
org.w3c.dom.DOMStringList#item(int)

        try {
            return (String) fStrings.elementAt(index);
        } catch (ArrayIndexOutOfBoundsException e) {
            return null;
        }