NameList interface provides the abstraction of an ordered
collection of parallel pairs of name and namespace values (which could be
null values), without defining or constraining how this collection is
implemented. The items in the NameList are accessible via an
integral index, starting from 0.
See also the Document Object Model (DOM) Level 3 Core Specification.
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public boolean | Returns: true if the pair namespaceURI/name has been
found, false otherwise.The namespace URI to look for. namespaceURI, String The name to look for. name)Test if the pair namespaceURI/name is part of this
|
| public int | |
| public String | Returns: The name at theindexth position in the
NameList, or null if there is no name for
the specified index or if the index is out of range.Index into the collection. index)Returns the |
| public String | Returns: The namespace URI at theindexth position in the
NameList, or null if there is no name for
the specified index or if the index is out of range.Index into the collection. index)Returns the |
| contains | back to summary |
|---|---|
| public boolean contains(String str) Test if a name is part of this
| |
| containsNS | back to summary |
|---|---|
| public boolean containsNS(String namespaceURI, String name) Test if the pair namespaceURI/name is part of this
| |
| getLength | back to summary |
|---|---|
| public int getLength() The number of pairs (name and namespaceURI) in the list. The range of
valid child node indices is 0 to | |
| getName | back to summary |
|---|---|
| public String getName(int index) Returns the
| |
| getNamespaceURI | back to summary |
|---|---|
| public String getNamespaceURI(int index) Returns the
| |