com.sun.xml.bind.validator
Interface Locator

All Known Implementing Classes:
DOMLocator, SAXLocator

public interface Locator

Encapsulates how the location information is obtained.

The "get" methods are really more like the "create" methods, but unfortunately we can't rename them because of the backward compatibility.

This interface is not implemented by the generated code, so new methods can be added.

Since:
JAXB1.0

Method Summary
 javax.xml.bind.ValidationEventLocator getLocation(org.xml.sax.Locator location)
           
 javax.xml.bind.ValidationEventLocator getLocation(org.xml.sax.SAXParseException saxException)
          Get the appropriate locator information for the given error.
 

Method Detail

getLocation

javax.xml.bind.ValidationEventLocator getLocation(org.xml.sax.SAXParseException saxException)
Get the appropriate locator information for the given error.


getLocation

javax.xml.bind.ValidationEventLocator getLocation(org.xml.sax.Locator location)
Since:
2.0