Class 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.
    • 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 using Document.normalizeDocument().
        Specified by:
        isElementContentWhitespace in interface org.w3c.dom.Text
        Overrides:
        isElementContentWhitespace in class TextOverNodeInfo
        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 (see Type) are the same as those assigned in the DOM
        Specified by:
        getNodeType in interface org.w3c.dom.Node
        Overrides:
        getNodeType in class NodeOverNodeInfo
      • 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:
        compareDocumentPosition in interface org.w3c.dom.Node
        Overrides:
        compareDocumentPosition in class NodeOverNodeInfo
        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:
        getParentNode in interface org.w3c.dom.Node
        Overrides:
        getParentNode in class NodeOverNodeInfo
        Returns:
        The Node object describing the containing element or root node.