Package org.jibx.schema.validation
Class ProblemLogLister
- java.lang.Object
-
- org.jibx.schema.validation.ProblemLogLister
-
- All Implemented Interfaces:
ProblemHandler
public class ProblemLogLister extends java.lang.Object implements ProblemHandler
Handler to log problems found in validation.
-
-
Field Summary
Fields Modifier and Type Field Description private Logger
m_logger
Logger to be used.
-
Constructor Summary
Constructors Constructor Description ProblemLogLister(Logger logger)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.
-
-
-
Method Detail
-
handleUnimplemented
public void handleUnimplemented(ValidationProblem prob)
Handle unimplemented feature.- Specified by:
handleUnimplemented
in interfaceProblemHandler
- Parameters:
prob
-
-
handleWarning
public void handleWarning(ValidationProblem prob)
Handle warning.- Specified by:
handleWarning
in interfaceProblemHandler
- Parameters:
prob
-
-
handleError
public void handleError(ValidationProblem prob)
Handle error.- Specified by:
handleError
in interfaceProblemHandler
- Parameters:
prob
-
-
handleFatal
public void handleFatal(ValidationProblem prob)
Handle fatal.- Specified by:
handleFatal
in interfaceProblemHandler
- Parameters:
prob
-
-
report
public void report(java.lang.String msg)
Report progress information.- Specified by:
report
in interfaceProblemHandler
- Parameters:
msg
- progress information
-
terminate
public void terminate(java.lang.String msg)
Terminate processing.- Specified by:
terminate
in 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:
terminate
in interfaceProblemHandler
- Parameters:
msg
- message reporting why processing is being terminated.thr
- throwable with problem details
-
-