public class DOMStringListImpl
extends java.lang.Object
implements org.w3c.dom.DOMStringList
| Constructor and Description |
|---|
DOMStringListImpl()
Construct an empty list of DOMStringListImpl
|
DOMStringListImpl(java.util.ArrayList params)
Construct a DOMStringListImpl from an ArrayList
|
DOMStringListImpl(java.util.Vector params)
Construct a DOMStringListImpl from a Vector
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(java.lang.String param)
DOM Internal:
Add a
DOMString to the list. |
boolean |
contains(java.lang.String param)
Test if a string is part of this
DOMStringList. |
int |
getLength()
The number of
DOMStrings in the list. |
java.lang.String |
item(int index)
Returns the
indexth item in the collection. |
public DOMStringListImpl()
public DOMStringListImpl(java.util.ArrayList params)
public DOMStringListImpl(java.util.Vector params)
public java.lang.String item(int index)
org.w3c.dom.DOMStringListindexth item in the collection. If
index is greater than or equal to the number of
DOMStrings in the list, this returns null.item in interface org.w3c.dom.DOMStringListindex - Index into the collection.DOMString at the indexth
position in the DOMStringList, or null if
that is not a valid index.DOMStringList.item(int)public int getLength()
org.w3c.dom.DOMStringListDOMStrings in the list. The range of valid
child node indices is 0 to length-1 inclusive.getLength in interface org.w3c.dom.DOMStringListDOMStringList.getLength()public boolean contains(java.lang.String param)
org.w3c.dom.DOMStringListDOMStringList.contains in interface org.w3c.dom.DOMStringListparam - The string to look for.true if the string has been found,
false otherwise.DOMStringList.contains(String)public void add(java.lang.String param)
DOMString to the list.param - A string to add to the listCopyright © 1999-2022 The Apache Software Foundation. All Rights Reserved.