net.ontopia.topicmaps.schema.core
Interface SchemaValidatorIF

All Known Implementing Classes:
SchemaValidator

public interface SchemaValidatorIF

PUBLIC: Schema validators can validate topic map objects against a schema. Violations of the schema are reported to a separate error handler object.


Method Summary
 ValidationHandlerIF getValidationHandler()
          PUBLIC: Returns the validation handler that violations are currently reported to.
 void setValidationHandler(ValidationHandlerIF handler)
          PUBLIC: Sets the validation handler that violations of the schema will be reported to.
 void validate(AssociationIF association)
          PUBLIC: Validates an association against the schema.
 void validate(TopicIF topic)
          PUBLIC: Validates a topic against the schema.
 void validate(TopicMapIF topicmap)
          PUBLIC: Validates a topic map against the schema.
 

Method Detail

validate

void validate(TopicIF topic)
              throws SchemaViolationException
PUBLIC: Validates a topic against the schema.

Throws:
SchemaViolationException

validate

void validate(TopicMapIF topicmap)
              throws SchemaViolationException
PUBLIC: Validates a topic map against the schema. The startValidation and endValidation methods of the ValidationHandlerIF interface are called before and after validation.

Throws:
SchemaViolationException

validate

void validate(AssociationIF association)
              throws SchemaViolationException
PUBLIC: Validates an association against the schema.

Throws:
SchemaViolationException

setValidationHandler

void setValidationHandler(ValidationHandlerIF handler)
PUBLIC: Sets the validation handler that violations of the schema will be reported to.


getValidationHandler

ValidationHandlerIF getValidationHandler()
PUBLIC: Returns the validation handler that violations are currently reported to.



Copyright © 2000-2012 Ontopia.