jade.content.schema
Interface Facet

All Known Implementing Classes:
CardinalityFacet, TypedAggregateFacet

public interface Facet
extends Serializable

Represent a generic Facet (i.e. a constraint on the possible values) that can be applied on a slot in a schema of an ontological element.

Author:
Giovanni Caire - TILAB

Method Summary
 void validate(AbsObject value, Ontology onto)
          Check whether a given value for the slot this Facet applies to is valid.
 

Method Detail

validate

public void validate(AbsObject value,
                     Ontology onto)
              throws OntologyException
Check whether a given value for the slot this Facet applies to is valid.
Parameters:
value - The value to be checked
Throws:
OntologyException - If the value is not valid