net.sf.saxon.dom

Class TextOverAttrInfo

Implemented Interfaces:
Comment, Node, Text

public class TextOverAttrInfo
extends TextOverNodeInfo

This class represents a DOM text node that is the child of a DOM attribute node. The DOM attribute node will be a wrapper over a Saxon attribute node or namespace node.

Field Summary

Fields inherited from class net.sf.saxon.dom.NodeOverNodeInfo

node

Constructor Summary

TextOverAttrInfo(AttrOverNodeInfo attr)

Method Summary

short
compareDocumentPosition(Node other)
Compare the position of the (other) node in document order with the reference node (this node).
short
getNodeType()
Get the type of this node (node kind, in XPath terminology).
Node
getParentNode()
Find the parent node of this node.
boolean
isElementContentWhitespace()
Returns whether this text node contains element content whitespace, often abusively called "ignorable whitespace".

Methods inherited from class net.sf.saxon.dom.TextOverNodeInfo

appendData, deleteData, getData, getLength, getWholeText, insertData, isElementContentWhitespace, replaceData, replaceWholeText, setData, splitText, substringData

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

Constructor Details

TextOverAttrInfo

public TextOverAttrInfo(AttrOverNodeInfo attr)

Method Details

compareDocumentPosition

public short compareDocumentPosition(Node other)
            throws DOMException
Compare the position of the (other) node in document order with the reference node (this node). DOM Level 3 method.
Overrides:
compareDocumentPosition in interface NodeOverNodeInfo
Parameters:
other - the other node.
Returns:
Returns how the node is positioned relatively to the reference node.

getNodeType

public short getNodeType()
Overrides:
getNodeType in interface NodeOverNodeInfo

getParentNode

public Node getParentNode()
Find the parent node of this node.
Overrides:
getParentNode in interface NodeOverNodeInfo
Returns:
The Node object describing the containing element or root node.

isElementContentWhitespace

public boolean isElementContentWhitespace()
Returns whether this text node contains element content whitespace, often abusively called "ignorable whitespace". The text node is determined to contain whitespace in element content during the load of the document or if validation occurs while using Document.normalizeDocument().
Overrides:
isElementContentWhitespace in interface TextOverNodeInfo
Since:
DOM Level 3