|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.dishevelled.codegen.Attribute
public final class Attribute
An attribute on a class or interface description. An attribute has a role, a cardinality, and if the cardinality is Cardinality.ZeroToMany or Cardinality.OneToMany, a collection description.
| Constructor Summary | |
|---|---|
Attribute(String name,
String roleName,
Cardinality cardinality)
Create a new attribute with the specified name, role name, and cardinality. |
|
Attribute(String name,
String roleName,
Cardinality cardinality,
boolean bound)
Create a new attribute with the specified name, role name, cardinality, and bound flag. |
|
Attribute(String name,
String roleName,
Cardinality cardinality,
boolean indexed,
boolean unique,
boolean ordered,
boolean sorted)
Create a new attribute with the specified name, role name, and cardinality and choose a collection description that satisfies the specified boolean parameters. |
|
Attribute(String name,
String roleName,
Cardinality cardinality,
boolean bound,
boolean indexed,
boolean unique,
boolean ordered,
boolean sorted)
Create a new attribute with the specified name, role name, cardinality, and bound flag and choose a collection description that satisfies the specified boolean parameters. |
|
Attribute(String lower,
String mixed,
String upper,
String description,
Role role,
Cardinality cardinality,
CollectionDescription collectionDescription)
Create a new attribute from the specified parameters. |
|
Attribute(String lower,
String mixed,
String upper,
String description,
Role role,
Cardinality cardinality,
CollectionDescription collectionDescription,
boolean bound)
Create a new attribute from the specified parameters. |
|
| Method Summary | |
|---|---|
Cardinality |
getCardinality()
Return the cardinality for this attribute. |
CollectionDescription |
getCollectionDescription()
Return the collection description for this attribute. |
String |
getDescription()
Return the description for this attribute. |
String |
getLower()
Return the lowercase name for this attribute. |
String |
getMixed()
Return the mixed-case name for this attribute. |
Role |
getRole()
Return the role for this attribute. |
String |
getUpper()
Return the uppercase name for this attribute. |
boolean |
isBound()
Return true if this is a "bound" attribute. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Attribute(String name,
String roleName,
Cardinality cardinality)
name - attribute nameroleName - role namecardinality - cardinality, must not be null and must be one
of Cardinality.ZeroToOne or Cardinality.StrictlyOne
public Attribute(String name,
String roleName,
Cardinality cardinality,
boolean bound)
name - attribute nameroleName - role namecardinality - cardinality, must not be null and must be one
of Cardinality.ZeroToOne or Cardinality.StrictlyOnebound - true if this is a "bound" attribute
public Attribute(String name,
String roleName,
Cardinality cardinality,
boolean indexed,
boolean unique,
boolean ordered,
boolean sorted)
name - attribute nameroleName - 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 Attribute(String name,
String roleName,
Cardinality cardinality,
boolean bound,
boolean indexed,
boolean unique,
boolean ordered,
boolean sorted)
name - attribute nameroleName - role namecardinality - cardinality, must not be nullbound - true if this is a "bound" attributeindexed - 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 Attribute(String lower,
String mixed,
String upper,
String description,
Role role,
Cardinality cardinality,
CollectionDescription collectionDescription)
lower - lowercase name for this attributemixed - mixed-case name for this attributeupper - uppercase name for this attributedescription - description for this attributerole - role for this attribute, must not be nullcardinality - cardinality for this attribute, must not be nullcollectionDescription - collection description for this attribute
public Attribute(String lower,
String mixed,
String upper,
String description,
Role role,
Cardinality cardinality,
CollectionDescription collectionDescription,
boolean bound)
lower - lowercase name for this attributemixed - mixed-case name for this attributeupper - uppercase name for this attributedescription - description for this attributerole - role for this attribute, must not be nullcardinality - cardinality for this attribute, must not be nullcollectionDescription - collection description for this attributebound - true if this is a "bound" attribute| Method Detail |
|---|
public String getLower()
public String getMixed()
public String getUpper()
public String getDescription()
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 | ||||||||