public abstract class AbstractScopedTypedCardinalityConstraint extends AbstractScopedCardinalityConstraint implements TypedConstraintIF
Modifier and Type | Field and Description |
---|---|
protected TypeSpecification |
typespec |
scope
maximum, minimum
INFINITY
Constructor and Description |
---|
AbstractScopedTypedCardinalityConstraint() |
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.
|
getScopeSpecification, setScopeSpecification
getMaximum, getMinimum, setMaximum, setMinimum
protected TypeSpecification typespec
public AbstractScopedTypedCardinalityConstraint()
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
matches
in class AbstractScopedCardinalityConstraint