net.ontopia.topicmaps.schema.core
Interface ValidationHandlerIF

All Known Implementing Classes:
ExceptionValidationHandler, HTMLValidationHandler, TextValidationHandler

public interface ValidationHandlerIF

PUBLIC: Schema validator objects report errors through this interface.


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(java.lang.String message, TMObjectIF container, java.lang.Object offender, ConstraintIF constraint)
          PUBLIC: Called when violations of the schema are discovered.
 

Method Detail

startValidation

void startValidation()
PUBLIC: Called before the validation of an entire topic map begins. When single topics or associations are validated this method is not called.


violation

void violation(java.lang.String message,
               TMObjectIF container,
               java.lang.Object offender,
               ConstraintIF constraint)
               throws SchemaViolationException
PUBLIC: Called when violations of the schema are discovered.

Parameters:
message - A message describing the nature of the violation.
offender - The object that violated the schema.
container - The container of the offending object.
constraint - The constraint that was violated.
Throws:
SchemaViolationException - Implementations may throw this exception if they wish to halt validation.

endValidation

void endValidation()
PUBLIC: Called after the validation of an entire topic map. When single topics or associations are validated this method is not called.



Copyright © 2000-2012 Ontopia.