public abstract class AbstractTypedCardinalityConstraint extends AbstractCardinalityConstraint implements TypedConstraintIF
Modifier and Type | Field and Description |
---|---|
protected TypeSpecification |
typespec |
maximum, minimum
INFINITY
Constructor and Description |
---|
AbstractTypedCardinalityConstraint() |
Modifier and Type | Method and Description |
---|---|
TypeSpecification |
getTypeSpecification()
INTERNAL: Returns the object specifying the allowed types.
|
boolean |
matches(TMObjectIF object)
PUBLIC: Returns true if the object given is constrained by this
constraint.
|
void |
setTypeSpecification(TypeSpecification typespec)
INTERNAL: Sets the object specifying the allowed types.
|
getMaximum, getMinimum, setMaximum, setMinimum
protected TypeSpecification typespec
public void setTypeSpecification(TypeSpecification typespec)
TypedConstraintIF
setTypeSpecification
in interface TypedConstraintIF
public TypeSpecification getTypeSpecification()
TypedConstraintIF
getTypeSpecification
in interface TypedConstraintIF
public boolean matches(TMObjectIF object)
ConstraintIF
matches
in interface ConstraintIF