Package org.jibx.schema.validation
Class ProblemConsoleLister
- java.lang.Object
-
- org.jibx.schema.validation.ProblemConsoleLister
-
- All Implemented Interfaces:
ProblemHandler
public class ProblemConsoleLister extends Object implements ProblemHandler
Handler to list problems found in validation to console.
-
-
Constructor Summary
Constructors Constructor Description ProblemConsoleLister()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidhandleError(ValidationProblem prob)Handle error.voidhandleFatal(ValidationProblem prob)Handle fatal.voidhandleUnimplemented(ValidationProblem prob)Handle unimplemented feature.voidhandleWarning(ValidationProblem prob)Handle warning.voidreport(String msg)Report progress information.voidterminate(String msg)Terminate processing.voidterminate(String msg, Throwable thr)Terminate processing.
-
-
-
Method Detail
-
handleUnimplemented
public void handleUnimplemented(ValidationProblem prob)
Handle unimplemented feature.- Specified by:
handleUnimplementedin interfaceProblemHandler- Parameters:
prob- Validation Problem
-
handleWarning
public void handleWarning(ValidationProblem prob)
Handle warning.- Specified by:
handleWarningin interfaceProblemHandler- Parameters:
prob- Validation Problem
-
handleError
public void handleError(ValidationProblem prob)
Handle error.- Specified by:
handleErrorin interfaceProblemHandler- Parameters:
prob- Validation Problem
-
handleFatal
public void handleFatal(ValidationProblem prob)
Handle fatal.- Specified by:
handleFatalin interfaceProblemHandler- Parameters:
prob- Validation Problem
-
report
public void report(String msg)
Report progress information.- Specified by:
reportin interfaceProblemHandler- Parameters:
msg- progress information
-
terminate
public void terminate(String msg)
Terminate processing.- Specified by:
terminatein interfaceProblemHandler- Parameters:
msg- message reporting why processing is being terminated
-
terminate
public void terminate(String msg, Throwable thr)
Terminate processing.- Specified by:
terminatein interfaceProblemHandler- Parameters:
msg- message reporting why processing is being terminatedthr- throwable with problem details
-
-