public final class Association extends Object
Constructor and Description |
---|
Association(ClassDescription cd,
String roleName,
Cardinality cardinality)
Create a new association with the specified class description, role name,
and cardinality.
|
Association(ClassDescription cd,
String roleName,
Cardinality cardinality,
boolean bound)
Create a new association with the specified class description, role name,
cardinality, and bound flag.
|
Association(ClassDescription cd,
String roleName,
Cardinality cardinality,
boolean indexed,
boolean unique,
boolean ordered,
boolean sorted)
Create a new association with the specified class description, role name, and
cardinality and choose a collection description that satisfies the
specified boolean parameters.
|
Association(ClassDescription cd,
String roleName,
Cardinality cardinality,
boolean bound,
boolean indexed,
boolean unique,
boolean ordered,
boolean sorted)
Create a new association with the specified class description, role name,
cardinality, and bound flag and choose a collection description that satisfies the
specified boolean parameters.
|
Association(InterfaceDescription id,
String roleName,
Cardinality cardinality)
Create a new association with the specified interface description, role name,
and cardinality.
|
Association(InterfaceDescription id,
String roleName,
Cardinality cardinality,
boolean bound)
Create a new association with the specified interface description, role name,
and cardinality.
|
Association(InterfaceDescription id,
String roleName,
Cardinality cardinality,
boolean indexed,
boolean unique,
boolean ordered,
boolean sorted)
Create a new association with the specified interface description, role name, and
cardinality and choose a collection description that satisfies the
specified boolean parameters.
|
Association(InterfaceDescription id,
String roleName,
Cardinality cardinality,
boolean bound,
boolean indexed,
boolean unique,
boolean ordered,
boolean sorted)
Create a new association with the specified interface description, role name, and
cardinality and choose a collection description that satisfies the
specified boolean parameters.
|
Association(String lower,
String mixed,
String upper,
String description,
Role role,
Cardinality cardinality,
CollectionDescription collectionDescription)
Create a new association from the specified parameters.
|
Association(String lower,
String mixed,
String upper,
String description,
Role role,
Cardinality cardinality,
CollectionDescription collectionDescription,
boolean bound)
Create a new association from the specified parameters.
|
Modifier and Type | Method and Description |
---|---|
Cardinality |
getCardinality()
Return the cardinality for this association.
|
CollectionDescription |
getCollectionDescription()
Return the collection description for this association.
|
String |
getDescription()
Return the description for this association.
|
String |
getLower()
Return the lowercase name for this association.
|
String |
getMixed()
Return the mixed-case name for this association.
|
String |
getPackageName()
Return the package name for this association.
|
Role |
getRole()
Return the role for this association.
|
String |
getUpper()
Return the uppercase name for this association.
|
boolean |
isBound()
Return true if this is a "bound" association.
|
public Association(ClassDescription cd, String roleName, Cardinality cardinality)
cd
- class description, must not be nullroleName
- role namecardinality
- cardinality, must not be null and must be one
of Cardinality.ZeroToOne or Cardinality.StrictlyOnepublic Association(ClassDescription cd, String roleName, Cardinality cardinality, boolean bound)
cd
- class description, must not be nullroleName
- role namecardinality
- cardinality, must not be null and must be one
of Cardinality.ZeroToOne or Cardinality.StrictlyOnebound
- true if this is a "bound" associationpublic Association(ClassDescription cd, String roleName, Cardinality cardinality, boolean indexed, boolean unique, boolean ordered, boolean sorted)
cd
- class description, must not be nullroleName
- role namecardinality
- cardinality, must not be nullindexed
- true if the collection should be indexedunique
- true if the collection should not allow duplicate elementsordered
- true if the collection should iterate over elements in insertion-ordersorted
- true if the collection should iterate over elements in ascending element order,
sorted according to the natural ordering of its elements (see Comparable), or by a Comparator
provided at creation timepublic Association(ClassDescription cd, String roleName, Cardinality cardinality, boolean bound, boolean indexed, boolean unique, boolean ordered, boolean sorted)
cd
- class description, must not be nullroleName
- role namecardinality
- cardinality, must not be nullbound
- true if this is a "bound" associationindexed
- true if the collection should be indexedunique
- true if the collection should not allow duplicate elementsordered
- true if the collection should iterate over elements in insertion-ordersorted
- true if the collection should iterate over elements in ascending element order,
sorted according to the natural ordering of its elements (see Comparable), or by a Comparator
provided at creation timepublic Association(InterfaceDescription id, String roleName, Cardinality cardinality)
id
- interface description, must not be nullroleName
- role namecardinality
- cardinality, must not be null and must be one
of Cardinality.ZeroToOne or Cardinality.StrictlyOnepublic Association(InterfaceDescription id, String roleName, Cardinality cardinality, boolean bound)
id
- interface description, must not be nullroleName
- role namecardinality
- cardinality, must not be null and must be one
of Cardinality.ZeroToOne or Cardinality.StrictlyOnebound
- true if this is a "bound" associationpublic Association(InterfaceDescription id, String roleName, Cardinality cardinality, boolean indexed, boolean unique, boolean ordered, boolean sorted)
id
- interface description, must not be nullroleName
- role namecardinality
- cardinality, must not be nullindexed
- true if the collection should be indexedunique
- true if the collection should not allow duplicate elementsordered
- true if the collection should iterate over elements in insertion-ordersorted
- true if the collection should iterate over elements in ascending element order,
sorted according to the natural ordering of its elements (see Comparable), or by a Comparator
provided at creation timepublic Association(InterfaceDescription id, String roleName, Cardinality cardinality, boolean bound, boolean indexed, boolean unique, boolean ordered, boolean sorted)
id
- interface description, must not be nullroleName
- role namecardinality
- cardinality, must not be nullbound
- true if this is a "bound" associationindexed
- true if the collection should be indexedunique
- true if the collection should not allow duplicate elementsordered
- true if the collection should iterate over elements in insertion-ordersorted
- true if the collection should iterate over elements in ascending element order,
sorted according to the natural ordering of its elements (see Comparable), or by a Comparator
provided at creation timepublic Association(String lower, String mixed, String upper, String description, Role role, Cardinality cardinality, CollectionDescription collectionDescription)
lower
- lowercase name for this associationmixed
- mixed-case name for this associationupper
- uppercase name for this associationdescription
- description for this associationrole
- role for this association, must not be nullcardinality
- cardinality for this association, must not be nullcollectionDescription
- collection description for this associationpublic Association(String lower, String mixed, String upper, String description, Role role, Cardinality cardinality, CollectionDescription collectionDescription, boolean bound)
lower
- lowercase name for this associationmixed
- mixed-case name for this associationupper
- uppercase name for this associationdescription
- description for this associationrole
- role for this association, must not be nullcardinality
- cardinality for this association, must not be nullcollectionDescription
- collection description for this associationbound
- true if this is a "bound" associationpublic String getLower()
public String getMixed()
public String getUpper()
public String getDescription()
public String getPackageName()
public Role getRole()
public Cardinality getCardinality()
public CollectionDescription getCollectionDescription()
public boolean isBound()
Copyright (c) 2004-2013 held jointly by the individual authors. Licensed under the GNU Lesser General Public License (LGPL).