Class ElementNode

  • All Implemented Interfaces:
    java.lang.Iterable<net.sf.saxon.om.NodeInfo>, javax.xml.transform.Source, javax.xml.transform.SourceLocator, net.sf.saxon.expr.parser.Location, net.sf.saxon.om.GroundedValue<net.sf.saxon.om.NodeInfo>, net.sf.saxon.om.Item<net.sf.saxon.om.NodeInfo>, net.sf.saxon.om.NodeInfo, net.sf.saxon.om.Sequence<net.sf.saxon.om.NodeInfo>, org.xml.sax.Locator

    public class ElementNode
    extends AbstractNode
    Represents element node of Xpath-tree.
    • Constructor Detail

      • ElementNode

        public ElementNode​(AbstractNode root,
                           AbstractNode parent,
                           DetailAST detailAst)
        Creates a new ElementNode instance.
        Parameters:
        root - Node root of the tree
        parent - Node parent of the current node
        detailAst - reference to DetailAST
    • Method Detail

      • compareOrder

        public int compareOrder​(net.sf.saxon.om.NodeInfo other)
        Compares current object with specified for order.
        Parameters:
        other - another NodeInfo object
        Returns:
        number representing order of current object to specified one
      • getAttributeValue

        public java.lang.String getAttributeValue​(java.lang.String namespace,
                                                  java.lang.String localPart)
        Returns attribute value. Throws UnsupportedOperationException in case, when name of the attribute is not equal to 'text'.
        Parameters:
        namespace - namespace
        localPart - actual name of the attribute
        Returns:
        attribute value
      • getLocalPart

        public java.lang.String getLocalPart()
        Returns local part.
        Returns:
        local part
      • getNodeKind

        public int getNodeKind()
        Returns type of the node.
        Returns:
        node kind
      • getParent

        public net.sf.saxon.om.NodeInfo getParent()
        Returns parent.
        Returns:
        parent
      • getRoot

        public net.sf.saxon.om.NodeInfo getRoot()
        Returns root.
        Returns:
        root
      • iterateAxis

        public net.sf.saxon.tree.iter.AxisIterator iterateAxis​(byte axisNumber)
        Determines axis iteration algorithm. Throws UnsupportedOperationException in case, when there is no axis iterator for given axisNumber.
        Parameters:
        axisNumber - element from AxisInfo
        Returns:
        AxisIterator object
      • getLineNumber

        public int getLineNumber()
        Returns line number.
        Returns:
        line number
      • getColumnNumber

        public int getColumnNumber()
        Returns column number.
        Returns:
        column number
      • getTokenType

        public int getTokenType()
        Getter method for token type.
        Specified by:
        getTokenType in class AbstractNode
        Returns:
        token type