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.Valueatomize()Deprecated.intcompareOrder(net.sf.saxon.om.NodeInfo other)Deprecated.voidcopy(net.sf.saxon.event.Receiver receiver, int whichNamespaces, boolean copyAnnotations, int locationId)Deprecated.protected UnsupportedOperationExceptioncreateUnsupportedOperationException(String name)Deprecated.Used to create a customized instance of UnsupportedOperationException.booleanequals(Object other)Deprecated.This implementation considers to NodeInfo objects to be equal, if their underlying nodes are equal.protected static net.sf.saxon.om.AxisIteratorfilter(net.sf.saxon.om.AxisIterator axisIterator, net.sf.saxon.pattern.NodeTest nodeTest)Deprecated.voidgenerateId(net.sf.saxon.om.FastStringBuffer buffer)Deprecated.StringgetAttributeValue(int fingerprint)Deprecated.StringgetBaseURI()Deprecated.intgetColumnNumber()Deprecated.net.sf.saxon.ConfigurationgetConfiguration()Deprecated.int[]getDeclaredNamespaces(int[] buffer)Deprecated.StringgetDisplayName()Deprecated.intgetDocumentNumber()Deprecated.This implementation always returns 0.net.sf.saxon.om.DocumentInfogetDocumentRoot()Deprecated.intgetFingerprint()Deprecated.intgetLineNumber()Deprecated.StringgetLocalPart()Deprecated.intgetNameCode()Deprecated.net.sf.saxon.om.NamePoolgetNamePool()Deprecated.intgetNodeKind()Deprecated.net.sf.saxon.om.NodeInfogetParent()Deprecated.StringgetPrefix()Deprecated.net.sf.saxon.om.NodeInfogetRoot()Deprecated.intgetSiblingPosition()Deprecated.StringgetStringValue()Deprecated.CharSequencegetStringValueCS()Deprecated.StringgetSystemId()Deprecated.intgetTypeAnnotation()Deprecated.net.sf.saxon.om.SequenceIteratorgetTypedValue()Deprecated.ObjectgetUnderlyingNode()Deprecated.StringgetURI()Deprecated.booleanhasChildNodes()Deprecated.inthashCode()Deprecated.booleanisId()Deprecated.booleanisIdref()Deprecated.booleanisNilled()Deprecated.booleanisSameNodeInfo(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.AxisIteratoriterateAxis(byte axisNumber)Deprecated.net.sf.saxon.om.AxisIteratoriterateAxis(byte axisNumber, net.sf.saxon.pattern.NodeTest nodeTest)Deprecated.This implementation callsiterateAxis(byte)to get anAxisIteratorwhich is then optionally filtered usingNavigator.AxisFilter.voidsetSystemId(String systemId)Deprecated.
-
-
-
Method Detail
-
getSystemId
public String getSystemId()
Deprecated.- Specified by:
getSystemIdin interfacenet.sf.saxon.om.NodeInfo- Specified by:
getSystemIdin interfaceSource
-
setSystemId
public void setSystemId(String systemId)
Deprecated.- Specified by:
setSystemIdin interfaceSource
-
getStringValue
public String getStringValue()
Deprecated.- Specified by:
getStringValuein interfacenet.sf.saxon.om.Item- Specified by:
getStringValuein interfacenet.sf.saxon.om.NodeInfo- Specified by:
getStringValuein interfacenet.sf.saxon.om.ValueRepresentation
-
getStringValueCS
public CharSequence getStringValueCS()
Deprecated.- Specified by:
getStringValueCSin interfacenet.sf.saxon.om.Item- Specified by:
getStringValueCSin interfacenet.sf.saxon.om.ValueRepresentation
-
getTypedValue
public net.sf.saxon.om.SequenceIterator getTypedValue() throws net.sf.saxon.trans.XPathExceptionDeprecated.- Specified by:
getTypedValuein interfacenet.sf.saxon.om.Item- Throws:
net.sf.saxon.trans.XPathException
-
getUnderlyingNode
public Object getUnderlyingNode()
Deprecated.- Specified by:
getUnderlyingNodein interfacenet.sf.saxon.om.VirtualNode
-
getSiblingPosition
public int getSiblingPosition()
Deprecated.- Specified by:
getSiblingPositionin interfacenet.sf.saxon.om.SiblingCountingNode
-
atomize
public net.sf.saxon.value.Value atomize() throws net.sf.saxon.trans.XPathExceptionDeprecated.- Specified by:
atomizein interfacenet.sf.saxon.om.NodeInfo- Throws:
net.sf.saxon.trans.XPathException
-
compareOrder
public int compareOrder(net.sf.saxon.om.NodeInfo other)
Deprecated.- Specified by:
compareOrderin 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.XPathExceptionDeprecated.- Specified by:
copyin 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:
generateIdin interfacenet.sf.saxon.om.NodeInfo
-
getAttributeValue
public String getAttributeValue(int fingerprint)
Deprecated.- Specified by:
getAttributeValuein interfacenet.sf.saxon.om.NodeInfo
-
getBaseURI
public String getBaseURI()
Deprecated.- Specified by:
getBaseURIin interfacenet.sf.saxon.om.NodeInfo
-
getColumnNumber
public int getColumnNumber()
Deprecated.- Specified by:
getColumnNumberin interfacenet.sf.saxon.om.NodeInfo
-
getConfiguration
public net.sf.saxon.Configuration getConfiguration()
Deprecated.- Specified by:
getConfigurationin interfacenet.sf.saxon.om.NodeInfo
-
getDeclaredNamespaces
public int[] getDeclaredNamespaces(int[] buffer)
Deprecated.- Specified by:
getDeclaredNamespacesin interfacenet.sf.saxon.om.NodeInfo
-
getDisplayName
public String getDisplayName()
Deprecated.- Specified by:
getDisplayNamein interfacenet.sf.saxon.om.NodeInfo
-
getDocumentNumber
public int getDocumentNumber()
Deprecated.This implementation always returns 0.- Specified by:
getDocumentNumberin interfacenet.sf.saxon.om.NodeInfo
-
getDocumentRoot
public net.sf.saxon.om.DocumentInfo getDocumentRoot()
Deprecated.- Specified by:
getDocumentRootin interfacenet.sf.saxon.om.NodeInfo
-
getFingerprint
public int getFingerprint()
Deprecated.- Specified by:
getFingerprintin interfacenet.sf.saxon.om.NodeInfo
-
getLineNumber
public int getLineNumber()
Deprecated.- Specified by:
getLineNumberin interfacenet.sf.saxon.om.NodeInfo
-
getLocalPart
public String getLocalPart()
Deprecated.- Specified by:
getLocalPartin interfacenet.sf.saxon.om.NodeInfo
-
getNameCode
public int getNameCode()
Deprecated.- Specified by:
getNameCodein interfacenet.sf.saxon.om.NodeInfo
-
getNamePool
public net.sf.saxon.om.NamePool getNamePool()
Deprecated.- Specified by:
getNamePoolin interfacenet.sf.saxon.om.NodeInfo
-
getNodeKind
public int getNodeKind()
Deprecated.- Specified by:
getNodeKindin interfacenet.sf.saxon.om.NodeInfo
-
getParent
public net.sf.saxon.om.NodeInfo getParent()
Deprecated.- Specified by:
getParentin interfacenet.sf.saxon.om.NodeInfo
-
getPrefix
public String getPrefix()
Deprecated.- Specified by:
getPrefixin interfacenet.sf.saxon.om.NodeInfo
-
getRoot
public net.sf.saxon.om.NodeInfo getRoot()
Deprecated.- Specified by:
getRootin interfacenet.sf.saxon.om.NodeInfo
-
getTypeAnnotation
public int getTypeAnnotation()
Deprecated.- Specified by:
getTypeAnnotationin interfacenet.sf.saxon.om.NodeInfo
-
getURI
public String getURI()
Deprecated.- Specified by:
getURIin interfacenet.sf.saxon.om.NodeInfo
-
hasChildNodes
public boolean hasChildNodes()
Deprecated.- Specified by:
hasChildNodesin interfacenet.sf.saxon.om.NodeInfo
-
isId
public boolean isId()
Deprecated.- Specified by:
isIdin interfacenet.sf.saxon.om.NodeInfo
-
isIdref
public boolean isIdref()
Deprecated.- Specified by:
isIdrefin interfacenet.sf.saxon.om.NodeInfo
-
isNilled
public boolean isNilled()
Deprecated.- Specified by:
isNilledin 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:
isSameNodeInfoin interfacenet.sf.saxon.om.NodeInfo
-
iterateAxis
public net.sf.saxon.om.AxisIterator iterateAxis(byte axisNumber)
Deprecated.- Specified by:
iterateAxisin 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 anAxisIteratorwhich is then optionally filtered usingNavigator.AxisFilter.- Specified by:
iterateAxisin 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 tothrowthe exception.- Parameters:
name- Method name that is not supported.- Returns:
- A UnsupportedOperationException indicated the method is not supported by the implementation class.
-
-