JDOM
0.0.5-BETA

org.jdom2.output
Interface JDOMLocator

All Superinterfaces:
org.xml.sax.Locator
All Known Implementing Classes:
SAXTarget.SAXLocator

public interface JDOMLocator
extends org.xml.sax.Locator

An implementation of the SAX Locator interface that exposes the JDOM node being processed by SAXOutputter.

In JDOM2 this class is demoted to an interface. The information was never accurate anyway, and as an interface a specific Outputter instance can instead do 'the right thing' with the locator, if needed.

This change breaks a possible compatibility with anyonw who happened to treat the JDOMLocator to be 'settable'. This used to extend LocatorImpl class which had setter methods for the ColumnNumber, Line, PublicID, SystemID

Author:
Laurent Bihanic, Rolf Lear

Method Summary
 java.lang.Object getNode()
          Returns the JDOM node being processed by SAXOutputter.
 
Methods inherited from interface org.xml.sax.Locator
getColumnNumber, getLineNumber, getPublicId, getSystemId
 

Method Detail

getNode

java.lang.Object getNode()
Returns the JDOM node being processed by SAXOutputter.

Returns:
the JDOM node being processed by SAXOutputter.

JDOM
0.0.5-BETA

Copyright � 2012 Jason Hunter, Brett McLaughlin. All Rights Reserved.