public abstract class AbstractScopedCardinalityConstraint extends AbstractCardinalityConstraint implements ScopedConstraintIF
Modifier and Type | Field and Description |
---|---|
protected ScopeSpecification |
scope |
maximum, minimum
INFINITY
Constructor and Description |
---|
AbstractScopedCardinalityConstraint() |
Modifier and Type | Method and Description |
---|---|
ScopeSpecification |
getScopeSpecification()
INTERNAL: Returns the object containing the scope specification.
|
boolean |
matches(TMObjectIF object)
PUBLIC: Returns true if the object given is constrained by this
constraint.
|
void |
setScopeSpecification(ScopeSpecification scope)
INTERNAL: Sets the object containing the scope specification.
|
getMaximum, getMinimum, setMaximum, setMinimum
protected ScopeSpecification scope
public void setScopeSpecification(ScopeSpecification scope)
ScopedConstraintIF
setScopeSpecification
in interface ScopedConstraintIF
public ScopeSpecification getScopeSpecification()
ScopedConstraintIF
getScopeSpecification
in interface ScopedConstraintIF
public boolean matches(TMObjectIF object)
ConstraintIF
matches
in interface ConstraintIF