|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.dishevelled.codegen.ClassDescription
public final class ClassDescription
A description of the attributes and associations for a class.
| Constructor Summary | |
|---|---|
ClassDescription(String packageName,
String name)
Create a new class description with the specified package name and name. |
|
ClassDescription(String packageName,
String name,
String author,
String version,
String description)
Create a new class description from the specified parameters. |
|
ClassDescription(String packageName,
String lower,
String mixed,
String upper,
String author,
String version,
String description)
Create a new class description from the specified parameters. |
|
ClassDescription(String packageName,
String lower,
String mixed,
String upper,
String author,
String version,
String description,
Set<ClassDescription> specializes,
Set<InterfaceDescription> realizes,
Set<Attribute> attributes,
Set<Association> associations)
Create a new class description from the specified parameters. |
|
| Method Summary | |
|---|---|
boolean |
addAssociation(Association association)
Add the specified association to the set of associations for this class description. |
boolean |
addAttribute(Attribute attribute)
Add the specified attribute to the set of attributes for this class description. |
boolean |
addRealizes(InterfaceDescription realizes)
Add the specified interface description to the set of interfaces this class description realizes. |
boolean |
addSpecializes(ClassDescription specializes)
Add the specified class description to the set of classes this class description specializes. |
boolean |
associate(Association association)
Add the specified association to the set of associations for this class description. |
boolean |
associate(ClassDescription cd,
Cardinality cardinality)
Add a new association to the set of associations for this class description to the specified class with the specified cardinality. |
boolean |
associate(ClassDescription cd,
Cardinality cardinality,
boolean bound)
Add a new association to the set of associations for this class description to the specified class with the specified cardinality and bound flag. |
boolean |
associate(ClassDescription cd,
Cardinality cardinality,
boolean indexed,
boolean unique,
boolean ordered,
boolean sorted)
Add a new association to the set of associations for this class description to the specified class with the specified parameters. |
boolean |
associate(ClassDescription cd,
Cardinality cardinality,
boolean bound,
boolean indexed,
boolean unique,
boolean ordered,
boolean sorted)
Add a new association to the set of associations for this class description to the specified class with the specified parameters. |
boolean |
associate(ClassDescription cd,
String roleName,
Cardinality cardinality)
Add a new association to the set of attributes for this class description to the specified class with the specified role name and cardinality. |
boolean |
associate(ClassDescription cd,
String roleName,
Cardinality cardinality,
boolean bound)
Add a new association to the set of attributes for this class description to the specified class with the specified role name, cardinality, and bound flag. |
boolean |
associate(ClassDescription cd,
String roleName,
Cardinality cardinality,
boolean indexed,
boolean unique,
boolean ordered,
boolean sorted)
Add a new association to the set of associations for this class description to the specified class with the specified parameters. |
boolean |
associate(ClassDescription cd,
String roleName,
Cardinality cardinality,
boolean bound,
boolean indexed,
boolean unique,
boolean ordered,
boolean sorted)
Add a new association to the set of associations for this class description to the specified class with the specified parameters. |
boolean |
associate(InterfaceDescription id,
Cardinality cardinality)
Add a new association to the set of associations for this class description to the specified interface with the specified cardinality. |
boolean |
associate(InterfaceDescription id,
Cardinality cardinality,
boolean bound)
Add a new association to the set of associations for this class description to the specified interface with the specified cardinality and bound flag. |
boolean |
associate(InterfaceDescription id,
Cardinality cardinality,
boolean indexed,
boolean unique,
boolean ordered,
boolean sorted)
Add a new association to the set of associations for this class description to the specified interface with the specified parameters. |
boolean |
associate(InterfaceDescription id,
Cardinality cardinality,
boolean bound,
boolean indexed,
boolean unique,
boolean ordered,
boolean sorted)
Add a new association to the set of associations for this class description to the specified interface with the specified parameters. |
boolean |
associate(InterfaceDescription id,
String roleName,
Cardinality cardinality)
Add a new association to the set of attributes for this class description to the specified interface with the specified role name and cardinality. |
boolean |
associate(InterfaceDescription id,
String roleName,
Cardinality cardinality,
boolean bound)
Add a new association to the set of attributes for this class description to the specified interface with the specified role name, cardinality, and bound flag. |
boolean |
associate(InterfaceDescription id,
String roleName,
Cardinality cardinality,
boolean indexed,
boolean unique,
boolean ordered,
boolean sorted)
Add a new association to the set of associations for this class description to the specified interface with the specified parameters. |
boolean |
associate(InterfaceDescription id,
String roleName,
Cardinality cardinality,
boolean bound,
boolean indexed,
boolean unique,
boolean ordered,
boolean sorted)
Add a new association to the set of associations for this class description to the specified interface with the specified parameters. |
boolean |
attribute(Attribute attribute)
Add the specified attribute to the set of attributes for this class description. |
boolean |
attribute(String name,
String roleName,
Cardinality cardinality)
Add a new attribute to the set of attributes for this class description with the specified name, role name, and cardinality. |
boolean |
attribute(String name,
String roleName,
Cardinality cardinality,
boolean bound)
Add a new attribute to the set of attributes for this class description with the specified name, role name, cardinality, and bound flag. |
boolean |
attribute(String name,
String roleName,
Cardinality cardinality,
boolean indexed,
boolean unique,
boolean ordered,
boolean sorted)
Add a new attribute to the set of attributes for this class description with the specified parameters. |
boolean |
attribute(String name,
String roleName,
Cardinality cardinality,
boolean bound,
boolean indexed,
boolean unique,
boolean ordered,
boolean sorted)
Add a new attribute to the set of attributes for this class description with the specified parameters. |
Set<Association> |
getAssociations()
Return an unmodifiable set of associations for this class description. |
Set<Attribute> |
getAttributes()
Return an unmodifiable set of attributes for this class description. |
String |
getAuthor()
Return the author for this class description. |
String |
getDescription()
Return the description for this class description. |
String |
getLower()
Return the lowercase name for this class description. |
String |
getMixed()
Return the mixed-case name for this class description. |
String |
getPackageName()
Return the package name for this class description. |
Set<InterfaceDescription> |
getRealizes()
Return an unmodifiable set of interfaces this class description realizes. |
Set<ClassDescription> |
getSpecializes()
Return an unmodifiable set of classes this class description specializes. |
String |
getUpper()
Return the uppercase name for this class description. |
String |
getVersion()
Return the version for this class description. |
boolean |
realizes(InterfaceDescription realizes)
Add the specified interface description to the set of interfaces this class description realizes. |
boolean |
specializes(ClassDescription specializes)
Add the specified class description to the set of classes this class description specializes. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ClassDescription(String packageName,
String name)
packageName - package name for this class descriptionname - name of this class description
public ClassDescription(String packageName,
String name,
String author,
String version,
String description)
packageName - package name for this class descriptionname - name of this class descriptionauthor - author for this class descriptionversion - version for this class descriptiondescription - description for this class description
public ClassDescription(String packageName,
String lower,
String mixed,
String upper,
String author,
String version,
String description)
packageName - package name for this class descriptionlower - lowercase name for this class descriptionmixed - mixed-case name for this class descriptionupper - uppercase name for this class descriptionauthor - author for this class descriptionversion - version for this class descriptiondescription - description for this class description
public ClassDescription(String packageName,
String lower,
String mixed,
String upper,
String author,
String version,
String description,
Set<ClassDescription> specializes,
Set<InterfaceDescription> realizes,
Set<Attribute> attributes,
Set<Association> associations)
The classes this class description specializes in specializes are copied defensively
into this class.
The interfaces this class description realizes in realizes are copied defensively
into this class.
The attributes in attributes are copied defensively
into this class.
The associations in associations are copied defensively
into this class.
packageName - package name for this class descriptionlower - lowercase name for this class descriptionmixed - mixed-case name for this class descriptionupper - uppercase name for this class descriptionauthor - author for this class descriptionversion - version for this class descriptiondescription - description for this class descriptionspecializes - set of classes this class description specializes, must not be nullrealizes - set of interfaces this class description realizes, must not be nullattributes - set of attributes, must not be nullassociations - set of associations, must not be null| Method Detail |
|---|
public String getPackageName()
public String getLower()
public String getMixed()
public String getUpper()
public String getAuthor()
public String getVersion()
public String getDescription()
public Set<ClassDescription> getSpecializes()
public boolean addSpecializes(ClassDescription specializes)
true if the set of classes this class description
specializes changed as a result of this call.
specializes - class description to add, must not be null
true if the set of classes this class description specializes
changed as a result of this callpublic boolean specializes(ClassDescription specializes)
true if the set of classes this class description
specializes changed as a result of this call.
specializes - class description to add, must not be null
true if the set of classes this class description specializes
changed as a result of this callpublic Set<InterfaceDescription> getRealizes()
public boolean addRealizes(InterfaceDescription realizes)
true if the set of interfaces this
class description realizes changed as a result of this call.
realizes - interface description to add, must not be null
true if the set of interfaces this class description realizes
changed as a result of this callpublic boolean realizes(InterfaceDescription realizes)
true if the set of interfaces this
class description realizes changed as a result of this call.
realizes - interface description to add, must not be null
true if the set of interfaces this class description realizes
changed as a result of this callpublic Set<Attribute> getAttributes()
public boolean addAttribute(Attribute attribute)
true if the set
of attributes changed as a result of this call.
attribute - attribute to add, must not be null
true if the set of attributes
changed as a result of this callpublic boolean attribute(Attribute attribute)
true if the set
of attributes changed as a result of this call.
attribute - attribute to add, must not be null
true if the set of attributes
changed as a result of this call
public boolean attribute(String name,
String roleName,
Cardinality cardinality)
true if
the set of attributes changed as a result of this call.
name - attribute nameroleName - role namecardinality - cardinality, must not be null and must be
one of Cardinality.ZeroToOne or Cardinality.StrictlyOne
true if the set of attributes
changed as a result of this call
public boolean attribute(String name,
String roleName,
Cardinality cardinality,
boolean bound)
true if
the set of attributes changed as a result of this call.
name - attribute nameroleName - role namecardinality - cardinality, must not be null and must be
one of Cardinality.ZeroToOne or Cardinality.StrictlyOnebound - true if the attribute is to be a "bound" attribute
true if the set of attributes
changed as a result of this call
public boolean attribute(String name,
String roleName,
Cardinality cardinality,
boolean indexed,
boolean unique,
boolean ordered,
boolean sorted)
true if the set of attributes changed as
a result of this call.
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
true if the set of attributes
changed as a result of this call
public boolean attribute(String name,
String roleName,
Cardinality cardinality,
boolean bound,
boolean indexed,
boolean unique,
boolean ordered,
boolean sorted)
true if the set of attributes changed as
a result of this call.
name - attribute nameroleName - role namecardinality - cardinality, must not be nullbound - true if the attribute is to be 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
true if the set of attributes
changed as a result of this callpublic Set<Association> getAssociations()
public boolean addAssociation(Association association)
true if the set
of associations changed as a result of this call.
association - association to add, must not be null
true if the set of associations
changed as a result of this callpublic boolean associate(Association association)
true if the set
of associations changed as a result of this call.
association - association to add, must not be null
true if the set of associations
changed as a result of this call
public boolean associate(ClassDescription cd,
Cardinality cardinality)
true if the set of associations changed as a result of
this call.
cd - class description, must not be nullcardinality - cardinality, must not be null and must be
one of Cardinality.ZeroToOne or Cardinality.StrictlyOne
true if the set of associations
changed as a result of this call
public boolean associate(ClassDescription cd,
Cardinality cardinality,
boolean bound)
true if the set of associations changed as a result of
this call.
cd - class description, must not be nullcardinality - cardinality, must not be null and must be
one of Cardinality.ZeroToOne or Cardinality.StrictlyOnebound - true if the association is to be a "bound" association
true if the set of associations
changed as a result of this call
public boolean associate(ClassDescription cd,
String roleName,
Cardinality cardinality)
true if the set of associations changed as a result of
this call.
cd - class description, must not be nullroleName - role namecardinality - cardinality, must not be null and must be
one of Cardinality.ZeroToOne or Cardinality.StrictlyOne
true if the set of associations
changed as a result of this call
public boolean associate(ClassDescription cd,
String roleName,
Cardinality cardinality,
boolean bound)
true if the set of associations changed as a result of
this call.
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 the association is to be a "bound" association
true if the set of associations
changed as a result of this call
public boolean associate(ClassDescription cd,
Cardinality cardinality,
boolean indexed,
boolean unique,
boolean ordered,
boolean sorted)
cd - class description, must not be nullcardinality - 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
true if the set of associations
changed as a result of this call
public boolean associate(ClassDescription cd,
Cardinality cardinality,
boolean bound,
boolean indexed,
boolean unique,
boolean ordered,
boolean sorted)
cd - class description, must not be nullcardinality - cardinality, must not be nullbound - true if the assocation is to be 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
true if the set of associations
changed as a result of this call
public boolean associate(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
true if the set of associations
changed as a result of this call
public boolean associate(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 the association is to be 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
true if the set of associations
changed as a result of this call
public boolean associate(InterfaceDescription id,
Cardinality cardinality)
true if the set of associations changed as a result of
this call.
id - interface description, must not be nullcardinality - cardinality, must not be null and must be
one of Cardinality.ZeroToOne or Cardinality.StrictlyOne
true if the set of associations
changed as a result of this call
public boolean associate(InterfaceDescription id,
Cardinality cardinality,
boolean bound)
true if the set of associations changed as a result of
this call.
id - interface description, must not be nullcardinality - cardinality, must not be null and must be
one of Cardinality.ZeroToOne or Cardinality.StrictlyOnebound - true if the assocation is to be a "bound" association
true if the set of associations
changed as a result of this call
public boolean associate(InterfaceDescription id,
String roleName,
Cardinality cardinality)
true if the set of associations changed as a result of
this call.
id - interface description, must not be nullroleName - role namecardinality - cardinality, must not be null and must be
one of Cardinality.ZeroToOne or Cardinality.StrictlyOne
true if the set of associations
changed as a result of this call
public boolean associate(InterfaceDescription id,
String roleName,
Cardinality cardinality,
boolean bound)
true if the set of associations changed as a result of
this call.
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 the association is to be a "bound" association
true if the set of associations
changed as a result of this call
public boolean associate(InterfaceDescription id,
Cardinality cardinality,
boolean indexed,
boolean unique,
boolean ordered,
boolean sorted)
id - interface description, must not be nullcardinality - 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
true if the set of associations
changed as a result of this call
public boolean associate(InterfaceDescription id,
Cardinality cardinality,
boolean bound,
boolean indexed,
boolean unique,
boolean ordered,
boolean sorted)
id - interface description, must not be nullcardinality - cardinality, must not be nullbound - true if the association is to be 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
true if the set of associations
changed as a result of this call
public boolean associate(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
true if the set of associations
changed as a result of this call
public boolean associate(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 the association is to be 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
true if the set of associations
changed as a result of this call
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||