public class TypedAggregateFacet extends Object implements Facet
Modifier and Type | Field and Description |
---|---|
private ObjectSchema |
type |
Constructor and Description |
---|
TypedAggregateFacet(ObjectSchema s)
Construct a
TypedAggregateFacet that forces
the elements in an AbsAggregate to be instances of a given
schema |
Modifier and Type | Method and Description |
---|---|
ObjectSchema |
getType()
Get the schema associated to this facet
|
void |
validate(AbsObject value,
Ontology onto)
Check whether a given value for the slot this Facet applies
to is valid.
|
private ObjectSchema type
public TypedAggregateFacet(ObjectSchema s)
TypedAggregateFacet
that forces
the elements in an AbsAggregate to be instances of a given
schemapublic ObjectSchema getType()
public void validate(AbsObject value, Ontology onto) throws OntologyException
validate
in interface Facet
value
- The value to be checkedOntologyException
- If the value is not valid