net.sf.saxon.dom

Class AttrOverNodeInfo

public class AttrOverNodeInfo extends NodeOverNodeInfo implements Attr

This class is an implementation of the DOM Element class that wraps a Saxon NodeInfo representation of an attribute node.
Method Summary
StringgetName()
Get the name of an attribute node (the lexical QName) (DOM method)
ElementgetOwnerElement()
The Element node this attribute is attached to or null if this attribute is not in use.
TypeInfogetSchemaTypeInfo()
Get the schema type information for this node.
booleangetSpecified()
If this attribute was explicitly given a value in the original document, this is true ; otherwise, it is false.
StringgetValue()
Return the character value of an attribute node (DOM method)
booleanisId()
Determine whether this (attribute) node is an ID.
voidsetValue(String value)
Set the value of an attribute node.

Method Detail

getName

public String getName()
Get the name of an attribute node (the lexical QName) (DOM method)

getOwnerElement

public Element getOwnerElement()
The Element node this attribute is attached to or null if this attribute is not in use.

Since: DOM Level 2

getSchemaTypeInfo

public TypeInfo getSchemaTypeInfo()
Get the schema type information for this node. Returns null for an untyped node.

getSpecified

public boolean getSpecified()
If this attribute was explicitly given a value in the original document, this is true ; otherwise, it is false. (DOM method)

Returns: Always true in this implementation.

getValue

public String getValue()
Return the character value of an attribute node (DOM method)

Returns: the attribute value

isId

public boolean isId()
Determine whether this (attribute) node is an ID. This method is introduced in DOM Level 3.

setValue

public void setValue(String value)
Set the value of an attribute node. (DOM method). Always fails (because tree is readonly)