Name

NameList

Synopsis

This Level 3 interface represnts a fixed-size, read-only list of element or attribute names and their namespace URI. getLength( ) returns the length of the list. getName( ) and getNamespaceURI( ) return the name and namespace at the specified index. contains( ) and containsNS( ) test for membership in the list.

This interface is unused within the org.w3c.dom package.

public interface NameList {
// Public Instance Methods
     boolean contains(String str);  
     boolean containsNS(String namespaceURI, String name);  
     int getLength( );  
     String getName(int index);  
     String getNamespaceURI(int index);  
}

Get Java in a Nutshell, 5th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.