APIdia Launch Partner
Top Description Fields Constructors Methods
com.sun.org.apache.xml.internal.serializer.dom3

pack-priv final Class DOMStringListImpl

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

This class implemets the DOM Level 3 Core interface DOMStringList.

Field Summary

Modifier and TypeField and Description
private List<String>

Constructor Summary

AccessConstructor and Description
pack-priv
DOMStringListImpl()

Construct an empty list of DOMStringListImpl

pack-priv
DOMStringListImpl(List<String> params)

Construct an empty list of DOMStringListImpl

pack-priv
DOMStringListImpl(String[] params)

Construct an empty list of DOMStringListImpl

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 List<String> fStrings

Constructor Detail

DOMStringListImplback to summary
pack-priv DOMStringListImpl()

Construct an empty list of DOMStringListImpl

DOMStringListImplback to summary
pack-priv DOMStringListImpl(List<String> params)

Construct an empty list of DOMStringListImpl

DOMStringListImplback to summary
pack-priv DOMStringListImpl(String[] params)

Construct an empty list of DOMStringListImpl

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.apache.xerces.dom3.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.apache.xerces.dom3.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.apache.xerces.dom3.DOMStringList#item(int)