org.deri.wsmo4j.validator
Class WsmlFlightValidator

java.lang.Object
  extended by org.deri.wsmo4j.validator.WsmlFullValidator
      extended by org.deri.wsmo4j.validator.WsmlRuleValidator
          extended by org.deri.wsmo4j.validator.WsmlFlightValidator
All Implemented Interfaces:
org.wsmo.validator.Validator

public class WsmlFlightValidator
extends WsmlRuleValidator

Checks an ontology for wsml-flight validity.

  Created on Aug 18, 2005
  Committed by $Author: morcen $
  $Source$,
 

Version:
$Revision: 1946 $ $Date: 2007-04-02 15:13:28 +0300 (Mon, 02 Apr 2007) $
Author:
Holger Lausen (holger.lausen@deri.org), nathalie.steinmetz@deri.org

Field Summary
 
Fields inherited from class org.deri.wsmo4j.validator.WsmlFullValidator
constants, errors, leFactory, leSerializer, warnings
 
Constructor Summary
WsmlFlightValidator(org.wsmo.factory.LogicalExpressionFactory leFactory)
           
 
Method Summary
 boolean isValid(org.omwg.logicalexpression.LogicalExpression logExpr, List<org.wsmo.validator.ValidationError> errorMessages, List<org.wsmo.validator.ValidationWarning> warningMessages)
           
 void setErrors(List<org.wsmo.validator.ValidationError> errors)
           
 void setWarnings(List<org.wsmo.validator.ValidationWarning> warnings)
           
protected  void visitAxiom(org.omwg.ontology.Axiom axiom)
          Checks if an axiom is valid to wsml-flight.
protected  void visitConcept(org.omwg.ontology.Concept concept)
          Checks if a concept is valid to wsml-flight.
protected  void visitInstance(org.omwg.ontology.Instance instance)
          Checks if an instance is valid to wsml-flight.
protected  void visitRelation(org.omwg.ontology.Relation relation)
          Checks if a relation is valid to wsml-flight.
protected  void visitRelationInstance(org.omwg.ontology.RelationInstance relationInstance)
          Checks if a relation instance is valid to wsml-flight.
 
Methods inherited from class org.deri.wsmo4j.validator.WsmlFullValidator
addError, addError, addWarning, getErrors, isValid
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WsmlFlightValidator

public WsmlFlightValidator(org.wsmo.factory.LogicalExpressionFactory leFactory)
Method Detail

visitAxiom

protected void visitAxiom(org.omwg.ontology.Axiom axiom)
Checks if an axiom is valid to wsml-flight.

Overrides:
visitAxiom in class WsmlRuleValidator
See Also:
WsmlRuleValidator.visitAxiom(org.omwg.ontology.Axiom)

visitConcept

protected void visitConcept(org.omwg.ontology.Concept concept)
Checks if a concept is valid to wsml-flight.

Overrides:
visitConcept in class WsmlRuleValidator
See Also:
WsmlRuleValidator.visitConcept(org.omwg.ontology.Concept)

visitInstance

protected void visitInstance(org.omwg.ontology.Instance instance)
Checks if an instance is valid to wsml-flight.

Overrides:
visitInstance in class WsmlRuleValidator
See Also:
WsmlRuleValidator.visitInstance(org.omwg.ontology.Instance)

visitRelation

protected void visitRelation(org.omwg.ontology.Relation relation)
Checks if a relation is valid to wsml-flight.

Overrides:
visitRelation in class WsmlRuleValidator
See Also:
WsmlRuleValidator.visitRelation(org.omwg.ontology.Relation)

visitRelationInstance

protected void visitRelationInstance(org.omwg.ontology.RelationInstance relationInstance)
                              throws org.wsmo.common.exception.SynchronisationException,
                                     org.wsmo.common.exception.InvalidModelException
Checks if a relation instance is valid to wsml-flight.

Overrides:
visitRelationInstance in class WsmlRuleValidator
Throws:
org.wsmo.common.exception.InvalidModelException
org.wsmo.common.exception.SynchronisationException
See Also:
WsmlRuleValidator.visitRelationInstance(org.omwg.ontology.RelationInstance)

isValid

public boolean isValid(org.omwg.logicalexpression.LogicalExpression logExpr,
                       List<org.wsmo.validator.ValidationError> errorMessages,
                       List<org.wsmo.validator.ValidationWarning> warningMessages)
Overrides:
isValid in class WsmlRuleValidator

setErrors

public void setErrors(List<org.wsmo.validator.ValidationError> errors)

setWarnings

public void setWarnings(List<org.wsmo.validator.ValidationWarning> warnings)


Copyright © 2004-2008 Ontotext Lab.. All Rights Reserved.