org.wsmo.validator
Interface Validator
- All Known Subinterfaces:
- WsmlValidator
public interface Validator
An interface representing validator for WSMO entities.
The validator may perform specific model checks to ensure that the entity definition is
compliant with the respective WSML variant
- Since:
- 0.4.0
- Version:
- $Revision: 1946 $ $Date: 2007-04-02 15:13:28 +0300 (Mon, 02 Apr 2007) $
- Author:
- not attributable
isValid
boolean isValid(TopEntity te,
List<ValidationError> errorMessages,
List<ValidationWarning> warningMessages)
- 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,...)errorMessages
- a collection where the validation specific error messages will be added (if any)warningMessages
- a collection where the validation specific warning messages will be added (if any)
- Returns:
- valid/invalid
- See Also:
Ontology
Copyright © 2004-2008 Ontotext Lab.. All Rights Reserved.