|
JSR 105, v0.13 (Proposed Final Draft) | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A DOM ID
to Element
mapping interface. This
interface contains methods that register and retrieve Element
s with
ID
attributes. These methods are useful for identifying
URIReference
s that refer to elements with ID
attributes.
Method Summary | |
Element |
getElementById(String idValue)
Returns the Element with the specified ID attribute value. |
void |
setIdAttributeNS(Element element,
String namespaceURI,
String localName)
Registers the element's attribute specified by the namespace URI and local name to be of type ID. |
Method Detail |
public Element getElementById(String idValue)
Element
with the specified ID attribute value.
idValue
- the value of the ID
Element
with the specified ID attribute value,
or null
if none.
NullPointerException
- if idValue
is null
setIdAttributeNS(org.w3c.dom.Element, java.lang.String, java.lang.String)
public void setIdAttributeNS(Element element, String namespaceURI, String localName)
element
- the elementnamespaceURI
- the namespace URI of the attribute (specify
null
if not applicable)localName
- the local name of the attribute
IllegalArgumentException
- if localName
is not an
attribute of the specified element or it does not contain a specific
value
NullPointerException
- if element
or
localName
is null
getElementById(java.lang.String)
|
JSR 105, v0.13 (Proposed Final Draft) | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |