com.sun.xml.tree
Interface ParseContext


public abstract 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.


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

Method Detail

getErrorHandler

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

getLocale

public java.util.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 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.


Submit Feedback to xml-feedback@java.sun.com
Copyright © 1998-1999 Sun Microsystems, Inc. All Rights Reserved.

Sun Microsystems, Inc.
901 San Antonio Road
Palo Alto, California, 94303, U.S.A.