Package jade.content.schema.facets
Class TypedAggregateFacet
- java.lang.Object
-
- jade.content.schema.facets.TypedAggregateFacet
-
- All Implemented Interfaces:
Facet,Serializable,Serializable
public class TypedAggregateFacet extends Object implements Facet
This facet forces the elements in an AbsAggregate to be compliant to a given schema.- Author:
- Giovanni Caire - TILAB
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TypedAggregateFacet(ObjectSchema s)Construct aTypedAggregateFacetthat forces the elements in an AbsAggregate to be instances of a given schema
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectSchemagetType()Get the schema associated to this facetvoidvalidate(AbsObject value, Ontology onto)Check whether a given value for the slot this Facet applies to is valid.
-
-
-
Constructor Detail
-
TypedAggregateFacet
public TypedAggregateFacet(ObjectSchema s)
Construct aTypedAggregateFacetthat forces the elements in an AbsAggregate to be instances of a given schema
-
-
Method Detail
-
getType
public ObjectSchema getType()
Get the schema associated to this facet
-
validate
public void validate(AbsObject value, Ontology onto) throws OntologyException
Check whether a given value for the slot this Facet applies to is valid.- Specified by:
validatein interfaceFacet- Parameters:
value- The value to be checked- Throws:
OntologyException- If the value is not valid
-
-