Class DocumentNode
- java.lang.Object
-
- net.sourceforge.pmd.lang.ast.xpath.saxon.AbstractNodeInfo
-
- net.sourceforge.pmd.lang.ast.xpath.saxon.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 Summary
Fields Modifier and Type Field Description Map<Node,ElementNode>nodeToElementNodeDeprecated.Mapping from AST Node to corresponding ElementNode.protected ElementNodeparentprotected ElementNoderootNodeDeprecated.The root ElementNode of the DocumentNode.
-
Constructor Summary
Constructors Constructor Description DocumentNode(Node node)Deprecated.DocumentNode(Node node, net.sf.saxon.om.NamePool namePool)Deprecated.Construct a DocumentNode, with the given AST Node serving as the root ElementNode.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description net.sourceforge.pmd.lang.ast.xpath.internal.DeprecatedAttrLoggergetAttrCtx()Deprecated.StringgetBaseURI()net.sf.saxon.om.DocumentInfogetDocumentRoot()Deprecated.intgetFingerprint()intgetNameCode()net.sf.saxon.om.NamePoolgetNamePool()intgetNodeKind()net.sf.saxon.om.NodeInfogetParent()StringgetPrefix()NodegetUnderlyingNode()Deprecated.String[]getUnparsedEntity(String name)Deprecated.IteratorgetUnparsedEntityNames()Deprecated.StringgetURI()booleanhasChildNodes()Deprecated.net.sf.saxon.om.AxisIteratoriterateAxis(byte axisNumber)Deprecated.net.sf.saxon.om.NodeInfoselectID(String id)Deprecated.voidsetAttrCtx(net.sourceforge.pmd.lang.ast.xpath.internal.DeprecatedAttrLogger attrCtx)Deprecated.-
Methods inherited from class net.sourceforge.pmd.lang.ast.xpath.saxon.AbstractNodeInfo
atomize, compareOrder, copy, createUnsupportedOperationException, equals, filter, generateId, getAttributeValue, getColumnNumber, getConfiguration, getDeclaredNamespaces, getDisplayName, getDocumentNumber, getLineNumber, getLocalPart, getRoot, getSiblingPosition, getStringValue, getStringValueCS, getSystemId, getTypeAnnotation, getTypedValue, hashCode, isId, isIdref, isNilled, isSameNodeInfo, iterateAxis, setSystemId
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.sf.saxon.om.NodeInfo
atomize, compareOrder, copy, equals, generateId, getAttributeValue, getBaseURI, getColumnNumber, getConfiguration, getDeclaredNamespaces, getDisplayName, getDocumentNumber, getFingerprint, getLineNumber, getLocalPart, getNameCode, getNamePool, getNodeKind, getParent, getPrefix, getRoot, getStringValue, getSystemId, getTypeAnnotation, getURI, hashCode, isId, isIdref, isNilled, isSameNodeInfo, iterateAxis
-
Methods inherited from interface javax.xml.transform.Source
isEmpty, setSystemId
-
-
-
-
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.
-
parent
protected final ElementNode parent
-
-
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
-
DocumentNode
@Deprecated public DocumentNode(Node node)
Deprecated.
-
-
Method Detail
-
getUnparsedEntity
public String[] getUnparsedEntity(String name)
Deprecated.- Specified by:
getUnparsedEntityin interfacenet.sf.saxon.om.DocumentInfo
-
getUnparsedEntityNames
public Iterator getUnparsedEntityNames()
Deprecated.- Specified by:
getUnparsedEntityNamesin interfacenet.sf.saxon.om.DocumentInfo
-
selectID
public net.sf.saxon.om.NodeInfo selectID(String id)
Deprecated.- Specified by:
selectIDin interfacenet.sf.saxon.om.DocumentInfo
-
getDocumentRoot
public net.sf.saxon.om.DocumentInfo getDocumentRoot()
Deprecated.- Specified by:
getDocumentRootin interfacenet.sf.saxon.om.NodeInfo- Overrides:
getDocumentRootin classAbstractNodeInfo
-
hasChildNodes
public boolean hasChildNodes()
Deprecated.- Specified by:
hasChildNodesin interfacenet.sf.saxon.om.NodeInfo- Overrides:
hasChildNodesin classAbstractNodeInfo
-
iterateAxis
public net.sf.saxon.om.AxisIterator iterateAxis(byte axisNumber)
Deprecated.- Specified by:
iterateAxisin interfacenet.sf.saxon.om.NodeInfo- Overrides:
iterateAxisin classAbstractNodeInfo
-
getUnderlyingNode
public Node getUnderlyingNode()
Deprecated.- Specified by:
getUnderlyingNodein interfacenet.sourceforge.pmd.lang.ast.xpath.internal.AstNodeOwner- Specified by:
getUnderlyingNodein interfacenet.sf.saxon.om.VirtualNode- Overrides:
getUnderlyingNodein classAbstractNodeInfo
-
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:
getURIin interfacenet.sf.saxon.om.NodeInfo- Overrides:
getURIin classAbstractNodeInfo
-
getBaseURI
public final String getBaseURI()
- Specified by:
getBaseURIin interfacenet.sf.saxon.om.NodeInfo- Overrides:
getBaseURIin classAbstractNodeInfo
-
getPrefix
public String getPrefix()
- Specified by:
getPrefixin interfacenet.sf.saxon.om.NodeInfo- Overrides:
getPrefixin classAbstractNodeInfo
-
getParent
public final net.sf.saxon.om.NodeInfo getParent()
- Specified by:
getParentin interfacenet.sf.saxon.om.NodeInfo- Overrides:
getParentin classAbstractNodeInfo
-
getNameCode
public int getNameCode()
- Specified by:
getNameCodein interfacenet.sf.saxon.om.NodeInfo- Overrides:
getNameCodein classAbstractNodeInfo
-
getFingerprint
public final int getFingerprint()
- Specified by:
getFingerprintin interfacenet.sf.saxon.om.NodeInfo- Overrides:
getFingerprintin classAbstractNodeInfo
-
getNamePool
public final net.sf.saxon.om.NamePool getNamePool()
- Specified by:
getNamePoolin interfacenet.sf.saxon.om.NodeInfo- Overrides:
getNamePoolin classAbstractNodeInfo
-
getNodeKind
public final int getNodeKind()
- Specified by:
getNodeKindin interfacenet.sf.saxon.om.NodeInfo- Overrides:
getNodeKindin classAbstractNodeInfo
-
-