public class ProblemMultiHandler extends java.lang.Object implements ProblemHandler
Modifier and Type | Field and Description |
---|---|
private java.util.List |
m_handlers
List of delegate handlers.
|
Constructor and Description |
---|
ProblemMultiHandler() |
Modifier and Type | Method and Description |
---|---|
void |
addHandler(ProblemHandler handler)
Add handler to delegate list.
|
void |
handleError(ValidationProblem prob)
Handle error.
|
void |
handleFatal(ValidationProblem prob)
Handle fatal.
|
void |
handleUnimplemented(ValidationProblem prob)
Handle unimplemented feature.
|
void |
handleWarning(ValidationProblem prob)
Handle warning.
|
void |
report(java.lang.String msg)
Report progress information.
|
void |
terminate(java.lang.String msg)
Terminate processing.
|
void |
terminate(java.lang.String msg,
java.lang.Throwable thr)
Terminate processing.
|
public void addHandler(ProblemHandler handler)
handler
- public void handleUnimplemented(ValidationProblem prob)
handleUnimplemented
in interface ProblemHandler
prob
- public void handleWarning(ValidationProblem prob)
handleWarning
in interface ProblemHandler
prob
- public void handleError(ValidationProblem prob)
handleError
in interface ProblemHandler
prob
- public void handleFatal(ValidationProblem prob)
handleFatal
in interface ProblemHandler
prob
- public void report(java.lang.String msg)
report
in interface ProblemHandler
msg
- progress informationpublic void terminate(java.lang.String msg)
terminate
in interface ProblemHandler
msg
- message reporting why processing is being terminated.public void terminate(java.lang.String msg, java.lang.Throwable thr)
terminate
in interface ProblemHandler
msg
- message reporting why processing is being terminated.thr
- throwable with problem details