Package jade.content.schema
Interface Facet
-
- All Superinterfaces:
Serializable,Serializable
- All Known Implementing Classes:
CardinalityFacet,DefaultValueFacet,DocumentationFacet,JavaTypeFacet,PermittedValuesFacet,RegexFacet,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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidvalidate(AbsObject value, Ontology onto)Check whether a given value for the slot this Facet applies to is valid.
-
-
-
Method Detail
-
validate
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
-
-