Class AbstractRootNode

  • All Implemented Interfaces:
    Source, SourceLocator, net.sf.saxon.lib.ActiveSource, net.sf.saxon.om.GroundedValue, net.sf.saxon.om.Item, net.sf.saxon.om.NodeInfo, net.sf.saxon.om.Sequence, net.sf.saxon.s9api.Location, Locator
    Direct Known Subclasses:
    RootNode

    public abstract class AbstractRootNode
    extends AbstractNode
    Represents root node of Xpath-tree.
    • Constructor Detail

      • AbstractRootNode

        protected AbstractRootNode()
        Creates a new AbstractRootNode instance.
    • Method Detail

      • compareOrder

        public int compareOrder​(net.sf.saxon.om.NodeInfo nodeInfo)
        Compares current object with specified for order. Throws UnsupportedOperationException because functionality not required here.
        Parameters:
        nodeInfo - another NodeInfo object
        Returns:
        number representing order of current object to specified one
      • getAttributeValue

        public String getAttributeValue​(net.sf.saxon.om.NamespaceUri namespace,
                                        String localPart)
        Returns attribute value. Throws UnsupportedOperationException because root node has no attributes.
        Parameters:
        namespace - namespace
        localPart - actual name of the attribute
        Returns:
        attribute value
      • 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 of the tree.
        Returns:
        root of the tree
      • iterateAxis

        public net.sf.saxon.tree.iter.AxisIterator iterateAxis​(int 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