|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.ontopia.topicmaps.schema.utils.ExceptionValidationHandler
public class ExceptionValidationHandler
PUBLIC: Validation handler implementation which throws an exception on every schema violation.
| Constructor Summary | |
|---|---|
ExceptionValidationHandler()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ExceptionValidationHandler()
| Method Detail |
|---|
public void violation(String message,
TMObjectIF container,
Object offender,
ConstraintIF constraint)
throws SchemaViolationException
ValidationHandlerIF
violation 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()
ValidationHandlerIF
startValidation in interface ValidationHandlerIFpublic void endValidation()
ValidationHandlerIF
endValidation in interface ValidationHandlerIF
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||