Package net.sf.saxon.dom
Class TextOverAttrInfo
- java.lang.Object
-
- net.sf.saxon.dom.NodeOverNodeInfo
-
- net.sf.saxon.dom.TextOverNodeInfo
-
- net.sf.saxon.dom.TextOverAttrInfo
-
- All Implemented Interfaces:
org.w3c.dom.CharacterData,org.w3c.dom.Comment,org.w3c.dom.Node,org.w3c.dom.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
-
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 Constructor Description TextOverAttrInfo(AttrOverNodeInfo attr)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description shortcompareDocumentPosition(org.w3c.dom.Node other)Compare the position of the (other) node in document order with the reference node (this node).shortgetNodeType()Get the type of this node (node kind, in XPath terminology).org.w3c.dom.NodegetParentNode()Find the parent node of this node.booleanisElementContentWhitespace()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, replaceData, replaceWholeText, setData, splitText, substringData
-
Methods inherited from class net.sf.saxon.dom.NodeOverNodeInfo
appendChild, cloneNode, disallowUpdate, equals, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeValue, getOwnerDocument, getPrefix, getPreviousSibling, getTextContent, getUnderlyingNodeInfo, getUserData, hasAttributes, hasChildNodes, hashCode, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData, wrap
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.w3c.dom.Node
appendChild, cloneNode, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeValue, getOwnerDocument, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData
-
-
-
-
Constructor Detail
-
TextOverAttrInfo
public TextOverAttrInfo(AttrOverNodeInfo attr)
-
-
Method Detail
-
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 usingDocument.normalizeDocument().- Specified by:
isElementContentWhitespacein interfaceorg.w3c.dom.Text- Overrides:
isElementContentWhitespacein classTextOverNodeInfo- Since:
- DOM Level 3
-
getNodeType
public short getNodeType()
Get the type of this node (node kind, in XPath terminology). Note, the numbers assigned to node kinds in Saxon (seeType) are the same as those assigned in the DOM- Specified by:
getNodeTypein interfaceorg.w3c.dom.Node- Overrides:
getNodeTypein classNodeOverNodeInfo
-
compareDocumentPosition
public short compareDocumentPosition(org.w3c.dom.Node other)
Compare the position of the (other) node in document order with the reference node (this node). DOM Level 3 method.- Specified by:
compareDocumentPositionin interfaceorg.w3c.dom.Node- Overrides:
compareDocumentPositionin classNodeOverNodeInfo- Parameters:
other- the other node.- Returns:
- Returns how the node is positioned relatively to the reference node.
-
getParentNode
public org.w3c.dom.Node getParentNode()
Find the parent node of this node.- Specified by:
getParentNodein interfaceorg.w3c.dom.Node- Overrides:
getParentNodein classNodeOverNodeInfo- Returns:
- The Node object describing the containing element or root node.
-
-