Home » xml-commons-external-1.4.01-src » org.w3c » dom » [javadoc | source]
org.w3c.dom
public interface: NameList [javadoc | source] The 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.

Method from org.w3c.dom.NameList Summary:
contains,   containsNS,   getLength,   getName,   getNamespaceURI
Method from org.w3c.dom.NameList Detail:
 public boolean contains(String str)
    Test if a name is part of this NameList.
 public boolean containsNS(String namespaceURI,
    String name)
    Test if the pair namespaceURI/name is part of this NameList.
 public int getLength()
    The number of pairs (name and namespaceURI) in the list. The range of valid child node indices is 0 to length-1 inclusive.
 public String getName(int index)
    Returns the indexth name item in the collection.
 public String getNamespaceURI(int index)
    Returns the indexth namespaceURI item in the collection.