O'Reilly logo

Special Edition Using Java™ 2 Enterprise Edition by Mark Wutka

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Interfaces

Attributes

The Attributes interface provides a namespace-aware mechanism for reading the attributes of an element.

getIndex

public int getIndex(String qualifiedName)
public int getIndex(String uri, String localName)

Returns the index of an attribute using either the qualified name or the namespace name.

getLength
public int getLength()

Returns the number of attributes in the list.

getLocalName
public String getLocalName(int index)

Returns the local name of the attribute at the specified index.

getQName
public String getQName(int index)

Returns the qualified name of the attribute at the specified index.

 getType public String getType(int index) public String getType(String qualifiedName) public String getType(String uri, String ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required