APIdia Launch Partner
Top Description Fields Constructors Methods
com.sun.org.apache.xerces.internal.dom

public Class DOMStringListImpl

extends Object
implements DOMStringList
Class Inheritance
All Implemented Interfaces
org.w3c.dom.DOMStringList
Imports
java.util.ArrayList, .List, org.w3c.dom.DOMStringList

DOM Level 3 This class implements the DOM Level 3 Core interface DOMStringList.
Author
Neil Delima, IBM

Field Summary

Modifier and TypeField and Description
private final List<String>

Constructor Summary

AccessConstructor and Description
public
DOMStringListImpl()

Construct an empty list of DOMStringListImpl

public
DOMStringListImpl(List<String> params)

Construct a DOMStringListImpl from an ArrayList

Method Summary

Modifier and TypeMethod and Description
public void
add(String param)

DOM Internal: Add a DOMString to the list.

public boolean
contains(String param)

Implements org.w3c.dom.DOMStringList.contains.

Test if a string is part of this DOMStringList.

public int
getLength()

Implements org.w3c.dom.DOMStringList.getLength.

The number of DOMStrings in the list.

public String
item(int index)

Implements org.w3c.dom.DOMStringList.item.

Returns the indexth item in the collection.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

fStringsback to summary
private final List<String> fStrings

Constructor Detail

DOMStringListImplback to summary
public DOMStringListImpl()

Construct an empty list of DOMStringListImpl

DOMStringListImplback to summary
public DOMStringListImpl(List<String> params)

Construct a DOMStringListImpl from an ArrayList

Method Detail

addback to summary
public void add(String param)

DOM Internal: Add a DOMString to the list.

containsback to summary
public boolean contains(String param)

Implements org.w3c.dom.DOMStringList.contains.

Doc from org.w3c.dom.DOMStringList.contains.

Test if a string is part of this DOMStringList.

See Also
org.w3c.dom.DOMStringList#contains(String)
getLengthback to summary
public int getLength()

Implements org.w3c.dom.DOMStringList.getLength.

Doc from org.w3c.dom.DOMStringList.getLength.

The number of DOMStrings in the list. The range of valid child node indices is 0 to length-1 inclusive.

See Also
org.w3c.dom.DOMStringList#getLength()
itemback to summary
public String item(int index)

Implements org.w3c.dom.DOMStringList.item.

Doc from org.w3c.dom.DOMStringList.item.

Returns the indexth item in the collection. If index is greater than or equal to the number of DOMStrings in the list, this returns null.

See Also
org.w3c.dom.DOMStringList#item(int)