org.apache.crimson.tree
Interface ParseContext


public interface ParseContext

This interface is used during parsing of XML content to encapsulate information about the location of the parsing event being reported. It is used to report diagnostics for application level problems that relate to the data which was successfuly parsed, and to resolve relative URIs.

Author:
David Brownell

Method Summary
 org.xml.sax.ErrorHandler getErrorHandler()
          Returns an error handler that may be used to report problems of various types: warnings, recoverable errors, fatal errors.
 Locale getLocale()
          Returns the preferred locale for diagnostic messsages to be reported through the error handler.
 org.xml.sax.Locator getLocator()
          Returns a locator object which reports where the parse event was detected.
 

Method Detail

getErrorHandler

public org.xml.sax.ErrorHandler getErrorHandler()
Returns an error handler that may be used to report problems of various types: warnings, recoverable errors, fatal errors.


getLocale

public Locale getLocale()
Returns the preferred locale for diagnostic messsages to be reported through the error handler. If this locale is not supported by the appropriate message catalog, it is suggested that messages include some sort of diagnostic identifier which is the same in all locales.


getLocator

public org.xml.sax.Locator getLocator()
Returns a locator object which reports where the parse event was detected. The systemId is the base URI to be used when resolving relative URIs, and other information is used in diagnostics.