public class CardinalityFacet extends java.lang.Object implements Facet
Constructor and Description |
---|
CardinalityFacet(int cardMin,
int cardMax)
Construct a
CardinalityFacet that forces
the number of elements in an AbsAggregate to be within
a given range |
Modifier and Type | Method and Description |
---|---|
int |
getCardMax() |
int |
getCardMin() |
void |
validate(AbsObject value,
Ontology onto)
Check that
the number of elements in an AbsAggregate is within
a given range
|
public CardinalityFacet(int cardMin, int cardMax)
CardinalityFacet
that forces
the number of elements in an AbsAggregate to be within
a given rangecardMin
- The range lower boundcardMax
- The range upper boundpublic int getCardMin()
public int getCardMax()
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