Top Description Methods
org.jdom2.output

public Interface JDOMLocator

extends Locator
Known Direct Implementers
org.jdom2.output.support.SAXTarget.SAXLocator
Imports
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 anyone 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

Authors
Laurent Bihanic, Rolf Lear

Method Summary

Modifier and TypeMethod and Description
public Object

Returns:

the JDOM node being processed by SAXOutputter.
getNode
()

Returns the JDOM node being processed by SAXOutputter.

Inherited from org.xml.sax.Locator:
getColumnNumbergetLineNumbergetPublicIdgetSystemId

Method Detail

getNodeback to summary
public Object getNode()

Returns the JDOM node being processed by SAXOutputter.

Returns:Object

the JDOM node being processed by SAXOutputter.