|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jade.content.schema.facets.CardinalityFacet
This facet forces an AbsAggregate to contain a number of elements that is comprised between a given min and a given max.
Constructor Summary | |
CardinalityFacet(int cardMin,
int cardMax)
Construct a CardinalityFacet that forces
the number of elements in an AbsAggregate to be within
a given range |
Method Summary | |
void |
validate(AbsObject value,
Ontology onto)
Check that the number of elements in an AbsAggregate is within a given range |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CardinalityFacet(int cardMin, int cardMax)
CardinalityFacet
that forces
the number of elements in an AbsAggregate to be within
a given range
cardMin
- The range lower boundcardMax
- The range upper boundMethod Detail |
public void validate(AbsObject value, Ontology onto) throws OntologyException
validate
in interface Facet
value
- The value to be checked
OntologyException
- If the value is not valid
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |