Class DocumentNode

  • All Implemented Interfaces:
    Source, net.sf.saxon.evpull.PullEvent, net.sf.saxon.om.DocumentInfo, net.sf.saxon.om.FingerprintedNode, net.sf.saxon.om.Item, net.sf.saxon.om.NodeInfo, net.sf.saxon.om.SiblingCountingNode, net.sf.saxon.om.ValueRepresentation, net.sf.saxon.om.VirtualNode, net.sourceforge.pmd.lang.ast.xpath.internal.AstNodeOwner

    @Deprecated
    @InternalApi
    public class DocumentNode
    extends AbstractNodeInfo
    implements net.sf.saxon.om.DocumentInfo, net.sourceforge.pmd.lang.ast.xpath.internal.AstNodeOwner
    Deprecated.
    A Saxon OM Document node for an AST Node.
    • Field Detail

      • rootNode

        protected final ElementNode rootNode
        Deprecated.
        The root ElementNode of the DocumentNode.
      • nodeToElementNode

        public final Map<Node,​ElementNode> nodeToElementNode
        Deprecated.
        Mapping from AST Node to corresponding ElementNode.
    • Constructor Detail

      • DocumentNode

        public DocumentNode​(Node node,
                            net.sf.saxon.om.NamePool namePool)
        Deprecated.
        Construct a DocumentNode, with the given AST Node serving as the root ElementNode.
        Parameters:
        node - The root AST Node.
        namePool - Pool to share names
        See Also:
        ElementNode
    • Method Detail

      • getUnparsedEntity

        public String[] getUnparsedEntity​(String name)
        Deprecated.
        Specified by:
        getUnparsedEntity in interface net.sf.saxon.om.DocumentInfo
      • getUnparsedEntityNames

        public Iterator getUnparsedEntityNames()
        Deprecated.
        Specified by:
        getUnparsedEntityNames in interface net.sf.saxon.om.DocumentInfo
      • selectID

        public net.sf.saxon.om.NodeInfo selectID​(String id)
        Deprecated.
        Specified by:
        selectID in interface net.sf.saxon.om.DocumentInfo
      • getDocumentRoot

        public net.sf.saxon.om.DocumentInfo getDocumentRoot()
        Deprecated.
        Specified by:
        getDocumentRoot in interface net.sf.saxon.om.NodeInfo
        Overrides:
        getDocumentRoot in class AbstractNodeInfo
      • hasChildNodes

        public boolean hasChildNodes()
        Deprecated.
        Specified by:
        hasChildNodes in interface net.sf.saxon.om.NodeInfo
        Overrides:
        hasChildNodes in class AbstractNodeInfo
      • iterateAxis

        public net.sf.saxon.om.AxisIterator iterateAxis​(byte axisNumber)
        Deprecated.
        Specified by:
        iterateAxis in interface net.sf.saxon.om.NodeInfo
        Overrides:
        iterateAxis in class AbstractNodeInfo
      • getUnderlyingNode

        public Node getUnderlyingNode()
        Deprecated.
        Specified by:
        getUnderlyingNode in interface net.sourceforge.pmd.lang.ast.xpath.internal.AstNodeOwner
        Specified by:
        getUnderlyingNode in interface net.sf.saxon.om.VirtualNode
        Overrides:
        getUnderlyingNode in class AbstractNodeInfo
      • getAttrCtx

        public net.sourceforge.pmd.lang.ast.xpath.internal.DeprecatedAttrLogger getAttrCtx()
        Deprecated.
      • setAttrCtx

        public void setAttrCtx​(net.sourceforge.pmd.lang.ast.xpath.internal.DeprecatedAttrLogger attrCtx)
        Deprecated.
      • getURI

        public final String getURI()
        Specified by:
        getURI in interface net.sf.saxon.om.NodeInfo
        Overrides:
        getURI in class AbstractNodeInfo
      • getBaseURI

        public final String getBaseURI()
        Specified by:
        getBaseURI in interface net.sf.saxon.om.NodeInfo
        Overrides:
        getBaseURI in class AbstractNodeInfo
      • getParent

        public final net.sf.saxon.om.NodeInfo getParent()
        Specified by:
        getParent in interface net.sf.saxon.om.NodeInfo
        Overrides:
        getParent in class AbstractNodeInfo
      • getNameCode

        public int getNameCode()
        Specified by:
        getNameCode in interface net.sf.saxon.om.NodeInfo
        Overrides:
        getNameCode in class AbstractNodeInfo
      • getFingerprint

        public final int getFingerprint()
        Specified by:
        getFingerprint in interface net.sf.saxon.om.NodeInfo
        Overrides:
        getFingerprint in class AbstractNodeInfo
      • getNamePool

        public final net.sf.saxon.om.NamePool getNamePool()
        Specified by:
        getNamePool in interface net.sf.saxon.om.NodeInfo
        Overrides:
        getNamePool in class AbstractNodeInfo
      • getNodeKind

        public final int getNodeKind()
        Specified by:
        getNodeKind in interface net.sf.saxon.om.NodeInfo
        Overrides:
        getNodeKind in class AbstractNodeInfo