FileDocCategorySizeDatePackage
DOMStringListImpl.javaAPI DocJava SE 6 API2055Tue Jun 10 00:22:36 BST 2008com.sun.org.apache.xerces.internal.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
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;
        }