FileDocCategorySizeDatePackage
DOMStringListImpl.javaAPI DocApache Xerces 3.0.12296Fri Sep 14 20:33:52 BST 2007org.apache.xerces.dom

DOMStringListImpl

public class DOMStringListImpl extends Object implements DOMStringList
DOM Level 3 This class implements the DOM Level 3 Core interface DOMStringList.
xerces.internal
author
Neil Delima, IBM

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
param 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;
        }