Package net.sf.saxon.dom
Class AttrOverNodeInfo
java.lang.Object
net.sf.saxon.dom.NodeOverNodeInfo
net.sf.saxon.dom.AttrOverNodeInfo
This class is an implementation of the DOM Attr class that wraps a Saxon NodeInfo
representation of an attribute or namespace node.
-
Field Summary
Fields inherited from class net.sf.saxon.dom.NodeOverNodeInfo
node
Fields inherited from interface org.w3c.dom.Node
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetName()
Get the name of an attribute node (the lexical QName) (DOM method)TheElement
node this attribute is attached to ornull
if this attribute is not in use.Get the schema type information for this node.boolean
If this attribute was explicitly given a value in the original document, this istrue
; otherwise, it isfalse
.getValue()
Return the character value of an attribute node (DOM method)boolean
isId()
Determine whether this (attribute) node is an ID.void
Set the value of an attribute node.Methods inherited from class net.sf.saxon.dom.NodeOverNodeInfo
appendChild, cloneNode, compareDocumentPosition, disallowUpdate, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUnderlyingNodeInfo, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData, wrap
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.w3c.dom.Node
appendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData
-
Constructor Details
-
AttrOverNodeInfo
public AttrOverNodeInfo()
-
-
Method Details
-
getName
Get the name of an attribute node (the lexical QName) (DOM method) -
getValue
Return the character value of an attribute node (DOM method) -
getSpecified
public boolean getSpecified()If this attribute was explicitly given a value in the original document, this istrue
; otherwise, it isfalse
. (DOM method)- Specified by:
getSpecified
in interfaceAttr
- Returns:
- Always true in this implementation.
-
setValue
Set the value of an attribute node. (DOM method). Always fails (because tree is readonly)- Specified by:
setValue
in interfaceAttr
- Throws:
DOMException
-
isId
public boolean isId()Determine whether this (attribute) node is an ID. This method is introduced in DOM Level 3. -
getOwnerElement
TheElement
node this attribute is attached to ornull
if this attribute is not in use.- Specified by:
getOwnerElement
in interfaceAttr
- Since:
- DOM Level 2
-
getSchemaTypeInfo
Get the schema type information for this node. Returns null for an untyped node.- Specified by:
getSchemaTypeInfo
in interfaceAttr
-