org.wsmo.validator
Interface WsmlValidator

All Superinterfaces:
Validator

public interface WsmlValidator
extends Validator

Extends the interface of wsmo-api with necessary properties needed during implementation (might be merged with wsmo-api later).

Checks only for standard datatypes.

  Created on Aug 18, 2005
  Committed by $Author: holgerlausen $
  $Source: /cvsroot/wsmo4j/wsmo-api/org/wsmo/validator/WsmlValidator.java,v $,
 

Version:
$Revision: 1.4 $ $Date: 2005/09/23 12:06:32 $
Author:
Holger Lausen (holger.lausen@deri.org)
See Also:
Validator

Method Summary
 java.lang.String determineVariant(TopEntity te, java.util.List errorMessages)
          Determines the Variant of a topEntity
 boolean isValid(TopEntity te, java.lang.String variant, java.util.List errorMessages)
          Checks whether a WSMO element definition is valid.
 
Methods inherited from interface org.wsmo.validator.Validator
isValid
 

Method Detail

isValid

boolean isValid(TopEntity te,
                java.lang.String variant,
                java.util.List errorMessages)
Checks whether a WSMO element definition is valid. The notion of "validity" is dependent only on the specific Validator implementation (f.e. a validity check may be whether a definition is compliant with a specific WSML variant)

Parameters:
te - the TopEntity to be validated (ontology, mediator, goal,...)
variant - the Variant for which should be checked
errorMessages - a collection where the validation specific error messages will be added (if any)
Returns:
valid/invalid
See Also:
Ontology

determineVariant

java.lang.String determineVariant(TopEntity te,
                                  java.util.List errorMessages)
Determines the Variant of a topEntity

Parameters:
te - topEntity to be checked.
Returns:
The IRI of variant that te is in, null if not valid wsml full