jd.xml.xslt.trax
Class DefaultErrorListener

java.lang.Object
  extended byjd.xml.xslt.trax.DefaultErrorListener
All Implemented Interfaces:
ErrorListener

class DefaultErrorListener
extends Object
implements ErrorListener

A default implementation of the ErrorListener interface. which dumps the errors and warnings to System.out.


Field Summary
static ErrorListener INSTANCE
           
 
Method Summary
 void error(TransformerException e)
          Receive notification of a recoverable error.
 void fatalError(TransformerException e)
          Receive notification of a non-recoverable error.
 void warning(TransformerException e)
          Receive notification of a warning.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final ErrorListener INSTANCE
Method Detail

error

public void error(TransformerException e)
Description copied from interface: ErrorListener
Receive notification of a recoverable error.

The transformer must continue to try and provide normal transformation after invoking this method. It should still be possible for the application to process the document through to the end if no other errors are encountered.

Specified by:
error in interface ErrorListener
Parameters:
e - The error information encapsulated in a transformer exception.
See Also:
TransformerException

fatalError

public void fatalError(TransformerException e)
Description copied from interface: ErrorListener
Receive notification of a non-recoverable error.

The transformer must continue to try and provide normal transformation after invoking this method. It should still be possible for the application to process the document through to the end if no other errors are encountered, but there is no guarantee that the output will be useable.

Specified by:
fatalError in interface ErrorListener
Parameters:
e - The error information encapsulated in a transformer exception.
See Also:
TransformerException

warning

public void warning(TransformerException e)
Description copied from interface: ErrorListener
Receive notification of a warning.

Transformers can use this method to report conditions that are not errors or fatal errors. The default behaviour is to take no action.

After invoking this method, the Transformer must continue with the transformation. It should still be possible for the application to process the document through to the end.

Specified by:
warning in interface ErrorListener
Parameters:
e - The warning information encapsulated in a transformer exception.
See Also:
TransformerException