Package org.jibx.schema.validation
Class ProblemMultiHandler
java.lang.Object
org.jibx.schema.validation.ProblemMultiHandler
- All Implemented Interfaces:
ProblemHandler
Problem handler which delegates to any number of other handlers.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addHandler
(ProblemHandler handler) Add handler to delegate list.void
handleError
(ValidationProblem prob) Handle error.void
handleFatal
(ValidationProblem prob) Handle fatal.void
Handle unimplemented feature.void
Handle warning.void
Report progress information.void
Terminate processing.void
Terminate processing.
-
Field Details
-
m_handlers
List of delegate handlers.
-
-
Constructor Details
-
ProblemMultiHandler
public ProblemMultiHandler()
-
-
Method Details
-
addHandler
Add handler to delegate list.- Parameters:
handler
-
-
handleUnimplemented
Handle unimplemented feature.- Specified by:
handleUnimplemented
in interfaceProblemHandler
- Parameters:
prob
-
-
handleWarning
Handle warning.- Specified by:
handleWarning
in interfaceProblemHandler
- Parameters:
prob
-
-
handleError
Handle error.- Specified by:
handleError
in interfaceProblemHandler
- Parameters:
prob
-
-
handleFatal
Handle fatal.- Specified by:
handleFatal
in interfaceProblemHandler
- Parameters:
prob
-
-
report
Report progress information.- Specified by:
report
in interfaceProblemHandler
- Parameters:
msg
- progress information
-
terminate
Terminate processing.- Specified by:
terminate
in interfaceProblemHandler
- Parameters:
msg
- message reporting why processing is being terminated.
-
terminate
Terminate processing.- Specified by:
terminate
in interfaceProblemHandler
- Parameters:
msg
- message reporting why processing is being terminated.thr
- throwable with problem details
-