Class AbstractNodeInfo
- java.lang.Object
-
- net.sourceforge.pmd.lang.ast.xpath.saxon.AbstractNodeInfo
-
- All Implemented Interfaces:
Source
,net.sf.saxon.evpull.PullEvent
,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
- Direct Known Subclasses:
AttributeNode
,DocumentNode
,ElementNode
@Deprecated @InternalApi public class AbstractNodeInfo extends Object implements net.sf.saxon.om.VirtualNode, net.sf.saxon.om.SiblingCountingNode
Deprecated.This is a basic implementation of the Saxon NodeInfo and related interfaces. Most methods are trivial implementations which immediately throwUnsupportedOperationException
. A few of the methods actually have useful implementations, such asiterateAxis(byte, NodeTest)
andisSameNodeInfo(NodeInfo)
.
-
-
Constructor Summary
Constructors Constructor Description AbstractNodeInfo()
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description net.sf.saxon.value.Value
atomize()
Deprecated.int
compareOrder(net.sf.saxon.om.NodeInfo other)
Deprecated.void
copy(net.sf.saxon.event.Receiver receiver, int whichNamespaces, boolean copyAnnotations, int locationId)
Deprecated.protected UnsupportedOperationException
createUnsupportedOperationException(String name)
Deprecated.Used to create a customized instance of UnsupportedOperationException.boolean
equals(Object other)
Deprecated.This implementation considers to NodeInfo objects to be equal, if their underlying nodes are equal.protected static net.sf.saxon.om.AxisIterator
filter(net.sf.saxon.om.AxisIterator axisIterator, net.sf.saxon.pattern.NodeTest nodeTest)
Deprecated.void
generateId(net.sf.saxon.om.FastStringBuffer buffer)
Deprecated.String
getAttributeValue(int fingerprint)
Deprecated.String
getBaseURI()
Deprecated.int
getColumnNumber()
Deprecated.net.sf.saxon.Configuration
getConfiguration()
Deprecated.int[]
getDeclaredNamespaces(int[] buffer)
Deprecated.String
getDisplayName()
Deprecated.int
getDocumentNumber()
Deprecated.This implementation always returns 0.net.sf.saxon.om.DocumentInfo
getDocumentRoot()
Deprecated.int
getFingerprint()
Deprecated.int
getLineNumber()
Deprecated.String
getLocalPart()
Deprecated.int
getNameCode()
Deprecated.net.sf.saxon.om.NamePool
getNamePool()
Deprecated.int
getNodeKind()
Deprecated.net.sf.saxon.om.NodeInfo
getParent()
Deprecated.String
getPrefix()
Deprecated.net.sf.saxon.om.NodeInfo
getRoot()
Deprecated.int
getSiblingPosition()
Deprecated.String
getStringValue()
Deprecated.CharSequence
getStringValueCS()
Deprecated.String
getSystemId()
Deprecated.int
getTypeAnnotation()
Deprecated.net.sf.saxon.om.SequenceIterator
getTypedValue()
Deprecated.Object
getUnderlyingNode()
Deprecated.String
getURI()
Deprecated.boolean
hasChildNodes()
Deprecated.int
hashCode()
Deprecated.boolean
isId()
Deprecated.boolean
isIdref()
Deprecated.boolean
isNilled()
Deprecated.boolean
isSameNodeInfo(net.sf.saxon.om.NodeInfo other)
Deprecated.This implementation delegates toequals(Object)
, per the Saxon documentation's description of this method's behavior.net.sf.saxon.om.AxisIterator
iterateAxis(byte axisNumber)
Deprecated.net.sf.saxon.om.AxisIterator
iterateAxis(byte axisNumber, net.sf.saxon.pattern.NodeTest nodeTest)
Deprecated.This implementation callsiterateAxis(byte)
to get anAxisIterator
which is then optionally filtered usingNavigator.AxisFilter
.void
setSystemId(String systemId)
Deprecated.
-
-
-
Method Detail
-
getSystemId
public String getSystemId()
Deprecated.- Specified by:
getSystemId
in interfacenet.sf.saxon.om.NodeInfo
- Specified by:
getSystemId
in interfaceSource
-
setSystemId
public void setSystemId(String systemId)
Deprecated.- Specified by:
setSystemId
in interfaceSource
-
getStringValue
public String getStringValue()
Deprecated.- Specified by:
getStringValue
in interfacenet.sf.saxon.om.Item
- Specified by:
getStringValue
in interfacenet.sf.saxon.om.NodeInfo
- Specified by:
getStringValue
in interfacenet.sf.saxon.om.ValueRepresentation
-
getStringValueCS
public CharSequence getStringValueCS()
Deprecated.- Specified by:
getStringValueCS
in interfacenet.sf.saxon.om.Item
- Specified by:
getStringValueCS
in interfacenet.sf.saxon.om.ValueRepresentation
-
getTypedValue
public net.sf.saxon.om.SequenceIterator getTypedValue() throws net.sf.saxon.trans.XPathException
Deprecated.- Specified by:
getTypedValue
in interfacenet.sf.saxon.om.Item
- Throws:
net.sf.saxon.trans.XPathException
-
getUnderlyingNode
public Object getUnderlyingNode()
Deprecated.- Specified by:
getUnderlyingNode
in interfacenet.sf.saxon.om.VirtualNode
-
getSiblingPosition
public int getSiblingPosition()
Deprecated.- Specified by:
getSiblingPosition
in interfacenet.sf.saxon.om.SiblingCountingNode
-
atomize
public net.sf.saxon.value.Value atomize() throws net.sf.saxon.trans.XPathException
Deprecated.- Specified by:
atomize
in interfacenet.sf.saxon.om.NodeInfo
- Throws:
net.sf.saxon.trans.XPathException
-
compareOrder
public int compareOrder(net.sf.saxon.om.NodeInfo other)
Deprecated.- Specified by:
compareOrder
in interfacenet.sf.saxon.om.NodeInfo
-
copy
public void copy(net.sf.saxon.event.Receiver receiver, int whichNamespaces, boolean copyAnnotations, int locationId) throws net.sf.saxon.trans.XPathException
Deprecated.- Specified by:
copy
in interfacenet.sf.saxon.om.NodeInfo
- Throws:
net.sf.saxon.trans.XPathException
-
equals
public boolean equals(Object other)
Deprecated.This implementation considers to NodeInfo objects to be equal, if their underlying nodes are equal.
-
hashCode
public int hashCode()
Deprecated.
-
generateId
public void generateId(net.sf.saxon.om.FastStringBuffer buffer)
Deprecated.- Specified by:
generateId
in interfacenet.sf.saxon.om.NodeInfo
-
getAttributeValue
public String getAttributeValue(int fingerprint)
Deprecated.- Specified by:
getAttributeValue
in interfacenet.sf.saxon.om.NodeInfo
-
getBaseURI
public String getBaseURI()
Deprecated.- Specified by:
getBaseURI
in interfacenet.sf.saxon.om.NodeInfo
-
getColumnNumber
public int getColumnNumber()
Deprecated.- Specified by:
getColumnNumber
in interfacenet.sf.saxon.om.NodeInfo
-
getConfiguration
public net.sf.saxon.Configuration getConfiguration()
Deprecated.- Specified by:
getConfiguration
in interfacenet.sf.saxon.om.NodeInfo
-
getDeclaredNamespaces
public int[] getDeclaredNamespaces(int[] buffer)
Deprecated.- Specified by:
getDeclaredNamespaces
in interfacenet.sf.saxon.om.NodeInfo
-
getDisplayName
public String getDisplayName()
Deprecated.- Specified by:
getDisplayName
in interfacenet.sf.saxon.om.NodeInfo
-
getDocumentNumber
public int getDocumentNumber()
Deprecated.This implementation always returns 0.- Specified by:
getDocumentNumber
in interfacenet.sf.saxon.om.NodeInfo
-
getDocumentRoot
public net.sf.saxon.om.DocumentInfo getDocumentRoot()
Deprecated.- Specified by:
getDocumentRoot
in interfacenet.sf.saxon.om.NodeInfo
-
getFingerprint
public int getFingerprint()
Deprecated.- Specified by:
getFingerprint
in interfacenet.sf.saxon.om.NodeInfo
-
getLineNumber
public int getLineNumber()
Deprecated.- Specified by:
getLineNumber
in interfacenet.sf.saxon.om.NodeInfo
-
getLocalPart
public String getLocalPart()
Deprecated.- Specified by:
getLocalPart
in interfacenet.sf.saxon.om.NodeInfo
-
getNameCode
public int getNameCode()
Deprecated.- Specified by:
getNameCode
in interfacenet.sf.saxon.om.NodeInfo
-
getNamePool
public net.sf.saxon.om.NamePool getNamePool()
Deprecated.- Specified by:
getNamePool
in interfacenet.sf.saxon.om.NodeInfo
-
getNodeKind
public int getNodeKind()
Deprecated.- Specified by:
getNodeKind
in interfacenet.sf.saxon.om.NodeInfo
-
getParent
public net.sf.saxon.om.NodeInfo getParent()
Deprecated.- Specified by:
getParent
in interfacenet.sf.saxon.om.NodeInfo
-
getPrefix
public String getPrefix()
Deprecated.- Specified by:
getPrefix
in interfacenet.sf.saxon.om.NodeInfo
-
getRoot
public net.sf.saxon.om.NodeInfo getRoot()
Deprecated.- Specified by:
getRoot
in interfacenet.sf.saxon.om.NodeInfo
-
getTypeAnnotation
public int getTypeAnnotation()
Deprecated.- Specified by:
getTypeAnnotation
in interfacenet.sf.saxon.om.NodeInfo
-
getURI
public String getURI()
Deprecated.- Specified by:
getURI
in interfacenet.sf.saxon.om.NodeInfo
-
hasChildNodes
public boolean hasChildNodes()
Deprecated.- Specified by:
hasChildNodes
in interfacenet.sf.saxon.om.NodeInfo
-
isId
public boolean isId()
Deprecated.- Specified by:
isId
in interfacenet.sf.saxon.om.NodeInfo
-
isIdref
public boolean isIdref()
Deprecated.- Specified by:
isIdref
in interfacenet.sf.saxon.om.NodeInfo
-
isNilled
public boolean isNilled()
Deprecated.- Specified by:
isNilled
in interfacenet.sf.saxon.om.NodeInfo
-
isSameNodeInfo
public boolean isSameNodeInfo(net.sf.saxon.om.NodeInfo other)
Deprecated.This implementation delegates toequals(Object)
, per the Saxon documentation's description of this method's behavior.- Specified by:
isSameNodeInfo
in interfacenet.sf.saxon.om.NodeInfo
-
iterateAxis
public net.sf.saxon.om.AxisIterator iterateAxis(byte axisNumber)
Deprecated.- Specified by:
iterateAxis
in interfacenet.sf.saxon.om.NodeInfo
-
iterateAxis
public net.sf.saxon.om.AxisIterator iterateAxis(byte axisNumber, net.sf.saxon.pattern.NodeTest nodeTest)
Deprecated.This implementation callsiterateAxis(byte)
to get anAxisIterator
which is then optionally filtered usingNavigator.AxisFilter
.- Specified by:
iterateAxis
in interfacenet.sf.saxon.om.NodeInfo
-
filter
protected static net.sf.saxon.om.AxisIterator filter(net.sf.saxon.om.AxisIterator axisIterator, net.sf.saxon.pattern.NodeTest nodeTest)
Deprecated.
-
createUnsupportedOperationException
protected UnsupportedOperationException createUnsupportedOperationException(String name)
Deprecated.Used to create a customized instance of UnsupportedOperationException. The caller of this method is intended tothrow
the exception.- Parameters:
name
- Method name that is not supported.- Returns:
- A UnsupportedOperationException indicated the method is not supported by the implementation class.
-
-