APIdia Launch Partner
Top Description Fields Constructors Methods
com.sun.org.apache.xerces.internal.jaxp.validation

public abstract Class ErrorHandlerAdaptor

extends Object
implements XMLErrorHandler
Class Inheritance
All Implemented Interfaces
com.sun.org.apache.xerces.internal.xni.parser.XMLErrorHandler
Imports
com.sun.org.apache.xerces.internal.xni.parser.XMLErrorHandler, .XMLParseException, org.xml.sax.ErrorHandler, .SAXException

Receives errors through Xerces XMLErrorHandler and pass them down to SAX ErrorHandler.
Author
Kohsuke Kawaguchi

Field Summary

Modifier and TypeField and Description
private boolean
hadError

set to true if there was any error.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
public void
protected abstract ErrorHandler

Returns:

always return non-null valid object.
getErrorHandler
()

Implemented by the derived class to return the actual ErrorHandler to which errors are sent.

public boolean
hadError()

returns if there was an error since the last invocation of the resetError method.

public void
reset()

resets the error flag.

public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

hadErrorback to summary
private boolean hadError

set to true if there was any error.

Constructor Detail

ErrorHandlerAdaptorback to summary
public ErrorHandlerAdaptor()

Method Detail

errorback to summary
public void error(String domain, String key, XMLParseException e)

Implements com.sun.org.apache.xerces.internal.xni.parser.XMLErrorHandler.error.

Doc from com.sun.org.apache.xerces.internal.xni.parser.XMLErrorHandler.error.

Reports an error. Errors are non-fatal and usually signify that the document is invalid with respect to its grammar(s).

fatalErrorback to summary
public void fatalError(String domain, String key, XMLParseException e)

Implements com.sun.org.apache.xerces.internal.xni.parser.XMLErrorHandler.fatalError.

Doc from com.sun.org.apache.xerces.internal.xni.parser.XMLErrorHandler.fatalError.

Report a fatal error. Fatal errors usually occur when the document is not well-formed and signifies that the parser cannot continue normal operation.

Note

The error handler should always throw an XNIException from this method. This exception can either be the same exception that is passed as a parameter to the method or a new XNI exception object. If the registered error handler fails to throw an exception, the continuing operation of the parser is undetermined.

getErrorHandlerback to summary
protected abstract ErrorHandler getErrorHandler()

Implemented by the derived class to return the actual ErrorHandler to which errors are sent.

Returns:ErrorHandler

always return non-null valid object.

hadErrorback to summary
public boolean hadError()

returns if there was an error since the last invocation of the resetError method.

resetback to summary
public void reset()

resets the error flag.

warningback to summary
public void warning(String domain, String key, XMLParseException e)

Implements com.sun.org.apache.xerces.internal.xni.parser.XMLErrorHandler.warning.

Doc from com.sun.org.apache.xerces.internal.xni.parser.XMLErrorHandler.warning.

Reports a warning. Warnings are non-fatal and can be safely ignored by most applications.