org.exolab.adaptx.xslt.util
public class DefaultObserver extends Object implements MessageObserver, ErrorObserver
Version: $Revision: 3633 $ $Date: 2003-03-01 02:38:44 -0500 (Sat, 01 Mar 2003) $
Constructor Summary | |
---|---|
DefaultObserver()
Creates a new SimpleMessageObserver which will
print messages to the console. | |
DefaultObserver(boolean allErrorsFatal)
Creates a new SimpleMessageObserver which will
print messages to the console. | |
DefaultObserver(Writer writer)
Creates a new SimpleMessageObserver which will
print messages to the console. | |
DefaultObserver(Writer writer, boolean allErrorsFatal)
Creates a new SimpleMessageObserver which will
print messages to the console. |
Method Summary | |
---|---|
void | addErrorObserver(ErrorObserver observer)
Adds the given ErrorObserver to this DefaultObserver |
void | addMessageObserver(MessageObserver observer)
Adds the given MessageObserver to this DefaultObserver |
void | receiveError(Exception exception)
Signals an error with normal level
|
void | receiveError(Exception exception, String message)
Signals an error with normal level
|
void | receiveError(Exception exception, int level)
Signals an error with the given error level
|
void | receiveError(Exception exception, String message, int level)
Signals an error with the given error level
|
void | receiveError(String message)
Signals an error message with normal level |
void | receiveError(String message, int level)
Signals an error message with the given error level |
void | receiveMessage(String message)
Notifies this observer of a new message |
void | removeAllErrorObservers()
Removes all the ErrorObservers from the cascading
ErrorObserver list
|
void | removeAllMessageObservers()
Removes all the MessageObservers from the cascading
ErrorObserver list
|
void | removeErrorObserver(ErrorObserver observer)
Removes the given ErrorObserver from the cascading
ErrorObserver list |
void | removeMessageObserver(MessageObserver observer)
Removes the given MessageObserver from the cascading
MessageObserver list |
void | setWriter(Writer writer)
Sets the Writer of this MessageObserver |
Parameters: allErrorsFatal a boolean, when true will treat all errors as fatal errors (excludes warnings).
Parameters: writer the Writer to print messages to. This writer may be null, to create a null sink.
Parameters: writer the Writer to print messages to. This writer may be null, to create a null sink. allErrorsFatal a boolean, when true will treat all errors as fatal errors (excludes warnings).
Parameters: observer the ErrorObserver to add
Parameters: observer the MessageObserver to add
Parameters: exception the Exception that caused the error
Parameters: exception the Exception that caused the error message an option message, used when additional information can be provided.
Parameters: exception the Exception that caused the error level the error level
Parameters: exception the Exception that caused the error message an option message, used when additional information can be provided. level the error level
Parameters: message the error message
Parameters: message the error message level the error level
Parameters: message the message to observe
Parameters: observer the ErrorObserver to remove
Parameters: observer the MessageObserver to remove
Parameters: writer the Writer to print messages to