Class SAXTarget.SAXLocator

  • All Implemented Interfaces:
    JDOMLocator, org.xml.sax.Locator
    Enclosing class:
    SAXTarget

    public static final class SAXTarget.SAXLocator
    extends java.lang.Object
    implements JDOMLocator
    A locator specific to the SAXOutputter process.
    Author:
    Rolf Lear
    • Constructor Summary

      Constructors 
      Constructor Description
      SAXLocator​(java.lang.String publicid, java.lang.String systemid)
      Creates a SAXLocator which implements JDOMLocator
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getColumnNumber()  
      int getLineNumber()  
      java.lang.Object getNode()
      Returns the JDOM node being processed by SAXOutputter.
      java.lang.String getPublicId()  
      java.lang.String getSystemId()  
      void setNode​(java.lang.Object node)
      Set the location on this SAXLocator
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SAXLocator

        public SAXLocator​(java.lang.String publicid,
                          java.lang.String systemid)
        Creates a SAXLocator which implements JDOMLocator
        Parameters:
        publicid - This Locator's SystemID
        systemid - This Locator's PublicID
    • Method Detail

      • getColumnNumber

        public int getColumnNumber()
        Specified by:
        getColumnNumber in interface org.xml.sax.Locator
      • getLineNumber

        public int getLineNumber()
        Specified by:
        getLineNumber in interface org.xml.sax.Locator
      • getPublicId

        public java.lang.String getPublicId()
        Specified by:
        getPublicId in interface org.xml.sax.Locator
      • getSystemId

        public java.lang.String getSystemId()
        Specified by:
        getSystemId in interface org.xml.sax.Locator
      • getNode

        public java.lang.Object getNode()
        Description copied from interface: JDOMLocator
        Returns the JDOM node being processed by SAXOutputter.
        Specified by:
        getNode in interface JDOMLocator
        Returns:
        the JDOM node being processed by SAXOutputter.
      • setNode

        public void setNode​(java.lang.Object node)
        Set the location on this SAXLocator
        Parameters:
        node - The location to set.