public class AssociationEnd extends Object
Constructor and Description |
---|
AssociationEnd(String role)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
getMultiplicity()
Returns the cardinality of the relation.
|
String |
getRole()
Returns the role of this entity relatively to this association.
|
EntityType |
getType()
Returns the type of this entity.
|
boolean |
isToMany()
Returns true if the cardinality says that this is a one to many or many
to many relation.
|
void |
setMultiplicity(String multiplicity)
Sets the cardinality of the relation.
|
void |
setType(EntityType type)
Sets the type of this entity.
|
public AssociationEnd(String role)
role
- The name of the role.public String getMultiplicity()
public String getRole()
public EntityType getType()
public boolean isToMany()
public void setMultiplicity(String multiplicity)
multiplicity
- The cardinality of the relation.public void setType(EntityType type)
type
- The type of this entity.Copyright © 2005–2015. All rights reserved.