public class AssociationClass extends Object implements TypedConstraintIF, ConstraintIF, ScopedConstraintIF
Modifier and Type | Field and Description |
---|---|
protected Collection |
roles |
protected OSLSchema |
schema |
protected ScopeSpecification |
scopespec |
protected TypeSpecification |
typespec |
Constructor and Description |
---|
AssociationClass(OSLSchema schema)
INTERNAL: Creates an association class definition belonging to the
schema.
|
Modifier and Type | Method and Description |
---|---|
void |
addRoleConstraint(AssociationRoleConstraint constraint)
INTERNAL: Adds a new role constraint.
|
Collection |
getRoleConstraints()
INTERNAL: Returns the collection of role constraints in this class
definition.
|
ScopeSpecification |
getScopeSpecification()
INTERNAL: Returns the scope constraint.
|
TypeSpecification |
getTypeSpecification()
INTERNAL: Returns the type constraint.
|
boolean |
matches(TMObjectIF object)
PUBLIC: Returns true if the object given is constrained by this
constraint.
|
void |
removeRoleConstraint(AssociationRoleConstraint constraint)
INTERNAL: Removes a role constraint from the class.
|
void |
setScopeSpecification(ScopeSpecification scopespec)
INTERNAL: Sets the scope constraint.
|
void |
setTypeSpecification(TypeSpecification typespec)
INTERNAL: Sets the type constraint.
|
protected OSLSchema schema
protected Collection roles
protected TypeSpecification typespec
protected ScopeSpecification scopespec
public AssociationClass(OSLSchema schema)
public ScopeSpecification getScopeSpecification()
getScopeSpecification
in interface ScopedConstraintIF
public void setScopeSpecification(ScopeSpecification scopespec)
setScopeSpecification
in interface ScopedConstraintIF
public void setTypeSpecification(TypeSpecification typespec)
setTypeSpecification
in interface TypedConstraintIF
public TypeSpecification getTypeSpecification()
getTypeSpecification
in interface TypedConstraintIF
public void addRoleConstraint(AssociationRoleConstraint constraint)
public Collection getRoleConstraints()
public void removeRoleConstraint(AssociationRoleConstraint constraint)
public boolean matches(TMObjectIF object)
ConstraintIF
matches
in interface ConstraintIF