|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.dishevelled.codegen.Association
public final class Association
An association between a class or interface description and a target class or interface description. An association has a role, a cardinality, and if the cardinality is Cardinality.ZeroToMany or Cardinality.OneToMany, a collection description.
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
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.StrictlyOne
public 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" association
public 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 time
public 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 time
public 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.StrictlyOne
public 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" association
public 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 time
public 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 time
public 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 association
public 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" association| Method Detail |
|---|
public 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()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||