net.ontopia.topicmaps.schema.impl.osl
Class SchemaValidator

java.lang.Object
  extended by net.ontopia.topicmaps.schema.impl.osl.SchemaValidator
All Implemented Interfaces:
SchemaValidatorIF

public class SchemaValidator
extends java.lang.Object
implements SchemaValidatorIF

INTERNAL: A schema validator that can be used to validate topic map constructs against an OSL schema. The schema validator is bound to a particular OSL schema.


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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

validate

public void validate(TopicIF topic)
              throws SchemaViolationException
Description copied from interface: SchemaValidatorIF
PUBLIC: Validates a topic against the schema.

Specified by:
validate in interface SchemaValidatorIF
Throws:
SchemaViolationException

validate

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

Specified by:
validate in interface SchemaValidatorIF
Throws:
SchemaViolationException

validate

public void validate(AssociationIF association)
              throws SchemaViolationException
Description copied from interface: SchemaValidatorIF
PUBLIC: Validates an association against the schema.

Specified by:
validate in interface SchemaValidatorIF
Throws:
SchemaViolationException

setValidationHandler

public void setValidationHandler(ValidationHandlerIF handler)
Description copied from interface: SchemaValidatorIF
PUBLIC: Sets the validation handler that violations of the schema will be reported to.

Specified by:
setValidationHandler in interface SchemaValidatorIF

getValidationHandler

public ValidationHandlerIF getValidationHandler()
Description copied from interface: SchemaValidatorIF
PUBLIC: Returns the validation handler that violations are currently reported to.

Specified by:
getValidationHandler in interface SchemaValidatorIF


Copyright © 2000-2009 Ontopia.