public class ExceptionValidationHandler extends Object implements ValidationHandlerIF
| Constructor and Description |
|---|
ExceptionValidationHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
endValidation()
PUBLIC: Called after the validation of an entire topic map.
|
void |
startValidation()
PUBLIC: Called before the validation of an entire topic map
begins.
|
void |
violation(String message,
TMObjectIF container,
Object offender,
ConstraintIF constraint)
PUBLIC: Called when violations of the schema are discovered.
|
public void violation(String message, TMObjectIF container, Object offender, ConstraintIF constraint) throws SchemaViolationException
ValidationHandlerIFviolation in interface ValidationHandlerIFmessage - A message describing the nature of the violation.container - The container of the offending object.offender - The object that violated the schema.constraint - The constraint that was violated.SchemaViolationException - Implementations may throw this
exception if they wish to halt validation.public void startValidation()
ValidationHandlerIFstartValidation in interface ValidationHandlerIFpublic void endValidation()
ValidationHandlerIFendValidation in interface ValidationHandlerIF