|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.ObjectJADE_SL.schema.facets.CardinalityFacet
This facet forces the elements in an AbsAggregate to be instances of a given schema.
| Field Summary | |
private int |
cardMax
|
private int |
cardMin
|
| 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 |
| Field Detail |
private int cardMin
private int cardMax
| 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 bound| Method Detail |
public void validate(AbsObject value,
Ontology onto)
throws OntologyException
validate in interface Facetvalue - 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 | ||||||||||