Class AbstractNodeInfo

  • All Implemented Interfaces:
    javax.xml.transform.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 java.lang.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 throw UnsupportedOperationException. A few of the methods actually have useful implementations, such as iterateAxis(byte, NodeTest) and isSameNodeInfo(NodeInfo).
    • Field Summary

      • Fields inherited from interface net.sf.saxon.om.NodeInfo

        ALL_NAMESPACES, EMPTY_NAMESPACE_LIST, IS_DTD_TYPE, IS_NILLED, LOCAL_NAMESPACES, NO_NAMESPACES
      • Fields inherited from interface net.sf.saxon.om.ValueRepresentation

        EMPTY_VALUE_ARRAY
    • Constructor Summary

      Constructors 
      Constructor Description
      AbstractNodeInfo()
      Deprecated.
       
    • Method Summary

      All 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 java.lang.UnsupportedOperationException createUnsupportedOperationException​(java.lang.String name)
      Deprecated.
      Used to create a customized instance of UnsupportedOperationException.
      boolean equals​(java.lang.Object other)
      Deprecated.
      This implementation considers to NodeInfo objects to be equal, if their underlying nodes are equal.
      void generateId​(net.sf.saxon.om.FastStringBuffer buffer)
      Deprecated.
       
      java.lang.String getAttributeValue​(int fingerprint)
      Deprecated.
       
      java.lang.String getBaseURI()
      Deprecated.
       
      int getColumnNumber()
      Deprecated.
       
      net.sf.saxon.Configuration getConfiguration()
      Deprecated.
       
      int[] getDeclaredNamespaces​(int[] buffer)
      Deprecated.
       
      java.lang.String getDisplayName()
      Deprecated.
       
      int getDocumentNumber()
      Deprecated.
      This implementation always returns 0.
      net.sf.saxon.om.DocumentInfo getDocumentRoot()
      Deprecated.
       
      int getFingerprint()
      Deprecated.
       
      int getLineNumber()
      Deprecated.
       
      java.lang.String getLocalPart()
      Deprecated.
       
      int getNameCode()
      Deprecated.
       
      net.sf.saxon.om.NamePool getNamePool()
      Deprecated.
       
      int getNodeKind()
      Deprecated.
       
      net.sf.saxon.om.NodeInfo getParent()
      Deprecated.
       
      java.lang.String getPrefix()
      Deprecated.
       
      net.sf.saxon.om.NodeInfo getRoot()
      Deprecated.
       
      int getSiblingPosition()
      Deprecated.
       
      java.lang.String getStringValue()
      Deprecated.
       
      java.lang.CharSequence getStringValueCS()
      Deprecated.
       
      java.lang.String getSystemId()
      Deprecated.
       
      int getTypeAnnotation()
      Deprecated.
       
      net.sf.saxon.om.SequenceIterator getTypedValue()
      Deprecated.
       
      java.lang.Object getUnderlyingNode()
      Deprecated.
       
      java.lang.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 to equals(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 calls iterateAxis(byte) to get an AxisIterator which is then optionally filtered using Navigator.AxisFilter.
      void setSystemId​(java.lang.String systemId)
      Deprecated.
       
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface javax.xml.transform.Source

        isEmpty
    • Constructor Detail

      • AbstractNodeInfo

        public AbstractNodeInfo()
        Deprecated.
    • Method Detail

      • getSystemId

        public java.lang.String getSystemId()
        Deprecated.
        Specified by:
        getSystemId in interface net.sf.saxon.om.NodeInfo
        Specified by:
        getSystemId in interface javax.xml.transform.Source
      • setSystemId

        public void setSystemId​(java.lang.String systemId)
        Deprecated.
        Specified by:
        setSystemId in interface javax.xml.transform.Source
      • getStringValue

        public java.lang.String getStringValue()
        Deprecated.
        Specified by:
        getStringValue in interface net.sf.saxon.om.Item
        Specified by:
        getStringValue in interface net.sf.saxon.om.NodeInfo
        Specified by:
        getStringValue in interface net.sf.saxon.om.ValueRepresentation
      • getStringValueCS

        public java.lang.CharSequence getStringValueCS()
        Deprecated.
        Specified by:
        getStringValueCS in interface net.sf.saxon.om.Item
        Specified by:
        getStringValueCS in interface net.sf.saxon.om.ValueRepresentation
      • getTypedValue

        public net.sf.saxon.om.SequenceIterator getTypedValue()
                                                       throws net.sf.saxon.trans.XPathException
        Deprecated.
        Specified by:
        getTypedValue in interface net.sf.saxon.om.Item
        Throws:
        net.sf.saxon.trans.XPathException
      • getUnderlyingNode

        public java.lang.Object getUnderlyingNode()
        Deprecated.
        Specified by:
        getUnderlyingNode in interface net.sf.saxon.om.VirtualNode
      • getSiblingPosition

        public int getSiblingPosition()
        Deprecated.
        Specified by:
        getSiblingPosition in interface net.sf.saxon.om.SiblingCountingNode
      • atomize

        public net.sf.saxon.value.Value atomize()
                                         throws net.sf.saxon.trans.XPathException
        Deprecated.
        Specified by:
        atomize in interface net.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 interface net.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 interface net.sf.saxon.om.NodeInfo
        Throws:
        net.sf.saxon.trans.XPathException
      • equals

        public boolean equals​(java.lang.Object other)
        Deprecated.
        This implementation considers to NodeInfo objects to be equal, if their underlying nodes are equal.
        Specified by:
        equals in interface net.sf.saxon.om.NodeInfo
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Deprecated.
        Specified by:
        hashCode in interface net.sf.saxon.om.NodeInfo
        Overrides:
        hashCode in class java.lang.Object
      • generateId

        public void generateId​(net.sf.saxon.om.FastStringBuffer buffer)
        Deprecated.
        Specified by:
        generateId in interface net.sf.saxon.om.NodeInfo
      • getAttributeValue

        public java.lang.String getAttributeValue​(int fingerprint)
        Deprecated.
        Specified by:
        getAttributeValue in interface net.sf.saxon.om.NodeInfo
      • getBaseURI

        public java.lang.String getBaseURI()
        Deprecated.
        Specified by:
        getBaseURI in interface net.sf.saxon.om.NodeInfo
      • getColumnNumber

        public int getColumnNumber()
        Deprecated.
        Specified by:
        getColumnNumber in interface net.sf.saxon.om.NodeInfo
      • getConfiguration

        public net.sf.saxon.Configuration getConfiguration()
        Deprecated.
        Specified by:
        getConfiguration in interface net.sf.saxon.om.NodeInfo
      • getDeclaredNamespaces

        public int[] getDeclaredNamespaces​(int[] buffer)
        Deprecated.
        Specified by:
        getDeclaredNamespaces in interface net.sf.saxon.om.NodeInfo
      • getDisplayName

        public java.lang.String getDisplayName()
        Deprecated.
        Specified by:
        getDisplayName in interface net.sf.saxon.om.NodeInfo
      • getDocumentNumber

        public int getDocumentNumber()
        Deprecated.
        This implementation always returns 0.
        Specified by:
        getDocumentNumber in interface net.sf.saxon.om.NodeInfo
      • getDocumentRoot

        public net.sf.saxon.om.DocumentInfo getDocumentRoot()
        Deprecated.
        Specified by:
        getDocumentRoot in interface net.sf.saxon.om.NodeInfo
      • getFingerprint

        public int getFingerprint()
        Deprecated.
        Specified by:
        getFingerprint in interface net.sf.saxon.om.NodeInfo
      • getLineNumber

        public int getLineNumber()
        Deprecated.
        Specified by:
        getLineNumber in interface net.sf.saxon.om.NodeInfo
      • getLocalPart

        public java.lang.String getLocalPart()
        Deprecated.
        Specified by:
        getLocalPart in interface net.sf.saxon.om.NodeInfo
      • getNameCode

        public int getNameCode()
        Deprecated.
        Specified by:
        getNameCode in interface net.sf.saxon.om.NodeInfo
      • getNamePool

        public net.sf.saxon.om.NamePool getNamePool()
        Deprecated.
        Specified by:
        getNamePool in interface net.sf.saxon.om.NodeInfo
      • getNodeKind

        public int getNodeKind()
        Deprecated.
        Specified by:
        getNodeKind in interface net.sf.saxon.om.NodeInfo
      • getParent

        public net.sf.saxon.om.NodeInfo getParent()
        Deprecated.
        Specified by:
        getParent in interface net.sf.saxon.om.NodeInfo
      • getPrefix

        public java.lang.String getPrefix()
        Deprecated.
        Specified by:
        getPrefix in interface net.sf.saxon.om.NodeInfo
      • getRoot

        public net.sf.saxon.om.NodeInfo getRoot()
        Deprecated.
        Specified by:
        getRoot in interface net.sf.saxon.om.NodeInfo
      • getTypeAnnotation

        public int getTypeAnnotation()
        Deprecated.
        Specified by:
        getTypeAnnotation in interface net.sf.saxon.om.NodeInfo
      • getURI

        public java.lang.String getURI()
        Deprecated.
        Specified by:
        getURI in interface net.sf.saxon.om.NodeInfo
      • hasChildNodes

        public boolean hasChildNodes()
        Deprecated.
        Specified by:
        hasChildNodes in interface net.sf.saxon.om.NodeInfo
      • isId

        public boolean isId()
        Deprecated.
        Specified by:
        isId in interface net.sf.saxon.om.NodeInfo
      • isIdref

        public boolean isIdref()
        Deprecated.
        Specified by:
        isIdref in interface net.sf.saxon.om.NodeInfo
      • isNilled

        public boolean isNilled()
        Deprecated.
        Specified by:
        isNilled in interface net.sf.saxon.om.NodeInfo
      • isSameNodeInfo

        public boolean isSameNodeInfo​(net.sf.saxon.om.NodeInfo other)
        Deprecated.
        This implementation delegates to equals(Object), per the Saxon documentation's description of this method's behavior.
        Specified by:
        isSameNodeInfo in interface net.sf.saxon.om.NodeInfo
      • iterateAxis

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

        public net.sf.saxon.om.AxisIterator iterateAxis​(byte axisNumber,
                                                        net.sf.saxon.pattern.NodeTest nodeTest)
        Deprecated.
        This implementation calls iterateAxis(byte) to get an AxisIterator which is then optionally filtered using Navigator.AxisFilter.
        Specified by:
        iterateAxis in interface net.sf.saxon.om.NodeInfo
      • createUnsupportedOperationException

        protected java.lang.UnsupportedOperationException createUnsupportedOperationException​(java.lang.String name)
        Deprecated.
        Used to create a customized instance of UnsupportedOperationException. The caller of this method is intended to throw the exception.
        Parameters:
        name - Method name that is not supported.
        Returns:
        A UnsupportedOperationException indicated the method is not supported by the implementation class.