Package org.jibx.schema.validation
Class ProblemMultiHandler
- java.lang.Object
-
- 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
Fields Modifier and Type Field Description private java.util.Listm_handlersList of delegate handlers.
-
Constructor Summary
Constructors Constructor Description ProblemMultiHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddHandler(ProblemHandler handler)Add handler to delegate list.voidhandleError(ValidationProblem prob)Handle error.voidhandleFatal(ValidationProblem prob)Handle fatal.voidhandleUnimplemented(ValidationProblem prob)Handle unimplemented feature.voidhandleWarning(ValidationProblem prob)Handle warning.voidreport(java.lang.String msg)Report progress information.voidterminate(java.lang.String msg)Terminate processing.voidterminate(java.lang.String msg, java.lang.Throwable thr)Terminate processing.
-
-
-
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:
handleUnimplementedin interfaceProblemHandler- Parameters:
prob-
-
handleWarning
public void handleWarning(ValidationProblem prob)
Handle warning.- Specified by:
handleWarningin interfaceProblemHandler- Parameters:
prob-
-
handleError
public void handleError(ValidationProblem prob)
Handle error.- Specified by:
handleErrorin interfaceProblemHandler- Parameters:
prob-
-
handleFatal
public void handleFatal(ValidationProblem prob)
Handle fatal.- Specified by:
handleFatalin interfaceProblemHandler- Parameters:
prob-
-
report
public void report(java.lang.String msg)
Report progress information.- Specified by:
reportin interfaceProblemHandler- Parameters:
msg- progress information
-
terminate
public void terminate(java.lang.String msg)
Terminate processing.- Specified by:
terminatein interfaceProblemHandler- 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:
terminatein interfaceProblemHandler- Parameters:
msg- message reporting why processing is being terminated.thr- throwable with problem details
-
-