org.jibx.schema.validation
Class ProblemMultiHandler

java.lang.Object
  extended by org.jibx.schema.validation.ProblemMultiHandler
All Implemented Interfaces:
ProblemHandler

public class ProblemMultiHandler
extends java.lang.Object
implements ProblemHandler

Problem handler which delegates to any number of other handlers.


Field Summary
private  java.util.List m_handlers
          List of delegate handlers.
 
Constructor Summary
ProblemMultiHandler()
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_handlers

private java.util.List m_handlers
List of delegate handlers.

Constructor Detail

ProblemMultiHandler

public ProblemMultiHandler()
Method Detail

addHandler

public void addHandler(ProblemHandler handler)
Add handler to delegate list.

Parameters:
handler -

handleUnimplemented

public void handleUnimplemented(ValidationProblem prob)
Handle unimplemented feature.

Specified by:
handleUnimplemented in interface ProblemHandler
Parameters:
prob -

handleWarning

public void handleWarning(ValidationProblem prob)
Handle warning.

Specified by:
handleWarning in interface ProblemHandler
Parameters:
prob -

handleError

public void handleError(ValidationProblem prob)
Handle error.

Specified by:
handleError in interface ProblemHandler
Parameters:
prob -

handleFatal

public void handleFatal(ValidationProblem prob)
Handle fatal.

Specified by:
handleFatal in interface ProblemHandler
Parameters:
prob -

report

public void report(java.lang.String msg)
Report progress information.

Specified by:
report in interface ProblemHandler
Parameters:
msg - progress information

terminate

public void terminate(java.lang.String msg)
Terminate processing.

Specified by:
terminate in interface ProblemHandler
Parameters:
msg - message reporting why processing is being terminated.

terminate

public void terminate(java.lang.String msg,
                      java.lang.Throwable thr)
Terminate processing.

Specified by:
terminate in interface ProblemHandler
Parameters:
msg - message reporting why processing is being terminated.
thr - throwable with problem details


Project Web Site