public class AssociationRoleConstraint extends AbstractTypedCardinalityConstraint
Modifier and Type | Field and Description |
---|---|
protected AssociationClass |
parent |
protected Collection |
players |
typespec
maximum, minimum
INFINITY
Constructor and Description |
---|
AssociationRoleConstraint(AssociationClass parent)
INTERNAL: Creates an association role constraint belonging to an
association class.
|
Modifier and Type | Method and Description |
---|---|
void |
addPlayerType(TypeSpecification typespec)
INTERNAL: Add a new type to the allowed types of role players.
|
Collection |
getPlayerTypes()
INTERNAL: Returns the set of allowed types of topics playing this role.
|
void |
removePlayerType(TypeSpecification typespec)
INTERNAL: Removes an topic player type from the set of allowed
player types.
|
getTypeSpecification, matches, setTypeSpecification
getMaximum, getMinimum, setMaximum, setMinimum
protected AssociationClass parent
protected Collection players
public AssociationRoleConstraint(AssociationClass parent)
public Collection getPlayerTypes()
public void removePlayerType(TypeSpecification typespec)
public void addPlayerType(TypeSpecification typespec)