Overview of type and accessor generation
Generating default accessors
The {type} tagged value can be used in a model, attribute, association end or parameter to designate the class to use when generating the declaration and/or accessors.
To avoid having to create a tagged value for each attribute, association end or
parameter, Objecteering C# Developer is informed of default generations by
packages with defined names. These reference the class to be used in the
absence of the {type} tagged value. These packages are found in the "DefaultTranslations"
package of the "CsTypes" package.
|
The
... package name |
generates
by default ... |
|
SimpleAttribute |
the declaration and the accessors for an attribute sized 1. |
|
MultipleAttribute |
the declaration and the accessors for an attribute sized *. |
|
FiniteAttribute |
the declaration and the accessors for an attribute with the size n>1. |
|
OptionalSimpleAssociation |
the declaration and the accessors for an 0-1 association. |
|
MandatorySimpleAssociation |
the declaration and the accessors for a 1-1 association. |
|
OptionalMultipleAssociation |
the declaration and accessors for a 0-* association. |
|
MandatoryMultipleAssociation |
the declaration and accessors for a 1-* association. |
|
FiniteAssociation |
the declaration and the accessors for a relation n-m, where m>1. |
|
SimpleIOParameter |
the declaration for a parameter sized 1. |
|
MultipleIOParameter |
the declaration for a parameter sized *. |
|
FinitelOParameter |
the declaration for a parameter sized n>1. |
|
SimpleReturnParameter |
the declaration for a return parameter sized 1. |
|
MultipleReturnParameter |
the declaration for a return parameter sized *. |
|
FiniteReturnParameter |
the declaration for a return parameter sized n>1. |
Each of these packages references the class used by default in the case dealt
with by the package. Modifying this referencing is a simple means of modifying
the default behavior of Objecteering C# Developer.
Classes which customize types and accessors in the CsTypes package
|
The ...
class |
is used
to ... |
|
simpleAssociation |
generate the declaration and accessors for an association with a simple multiplicity. |
|
ArrayMultipleAssociation |
generate the declaration and accessors on the basis of a table for an association with mutliple multiplicity. |
|
ArrayFiniteAssociation |
generate the declaration and accessors on the basis of a table for an association with finite multiplicity. |
|
StackMultipleAssociation |
generate the declaration and accessors on the Stack class basis for an association with multiple multiplicity. |
|
StackFiniteAssociation |
generate the declaration and accessors on the Stack class basis for an association with finite multiplicity. |
|
HashtableMultipleAssociation |
generate the declaration and accessors on the Hashtable class basis for an association with multiple multiplicity. |
|
HashtableFiniteAssociation |
generate the declaration and accessors on the Hashtable class basis for an association with finite multiplicity. |
|
ArrayListMultipleAssociation |
generate the declaration and accessors on the ArrayList class basis for an association with multiple multiplicity. |
|
ArrayListFiniteAssociation |
generate the declaration and accessors on the ArrayList class basis for an association with finite multiplicity. |
|
QueueMultipleAssociation |
generate the declaration and accessors on the Queue class basis for an association with multiple multiplicity. |
|
QueueListFiniteAssociation |
generate the declaration and accessors on the Queue class basis for an association with finite multiplicity. |
|
SortedListMultipleAssociation |
generate the declaration and accessors on the SortedList class basis for an association with multiple multiplicity. |
|
SortedListFiniteAssociation |
generate the declaration and accessors on the SortedList class basis for an association with finite multiplicity. |
|
simpleAttribute |
generate the declaration and accessors for an attribute with a simple multiplicity. |
|
ArrayMultipleAttribute |
generate the declaration and accessors on the basis of a table for an attribute with multiple multiplicity. |
|
ArrayFiniteAttribute |
generate the declaration and accessors on the basis of a table for an attribute with finite multiplicity. |
|
StackMultipleAttribute |
generate the declaration and accessors on the Stack class basis for an attribute with multiple multiplicity. |
|
StackFiniteAttribute |
generate the declaration and accessors on the Stack class basis for an attribute with finite multiplicity. |
|
HashtableMultipleAttribute |
generate the declaration and accessors on the Hashtable class basis for an attribute with multiple multiplicity. |
|
HashtableFiniteAttribute |
generate the declaration and accessors on the Hashtable class basis for an attribute with finite multiplicity. |
|
ArrayListMultipleAttribute |
generate the declaration and accessors on the ArrayList class basis for an attribute with multiple multiplicity. |
|
ArrayListFiniteAttribute |
generate the declaration and accessors on the ArrayList class basis for an attribute with finite multiplicity. |
|
QueueMultipleAttribute |
generate the declaration and accessors on the Queue class basis for an attribute with multiple multiplicity. |
|
QueueListFiniteAttribute |
generate the declaration and accessors on the Queue class basis for an attribute with finite multiplicity. |
|
SortedListMultipleAttribute |
generate the declaration and accessors on the SortedList class basis for an attribute with multiple multiplicity. |
|
SortedListFiniteAttribute |
generate the declaration and accessors on the SortedList class basis for an attribute with finite multiplicity. |
|
SimpleIOParameter |
generate the declaration of a parameter with simple multiplicity. |
|
ArrayIOParameter |
generate the declaration on the basis of a table for a parameter with finite or multiple multiplicity. |
|
StackIOParameter |
generate the declaration on the Stack class basis for a parameter with finite or multiple multiplicity. |
|
HashtableIOParameter |
generate the declaration on the Hashtable class basis for a parameter with finite or multiple multiplicity. |
|
ArrayListIOParameter |
generate the declaration and accessors on the ArrayList class basis for a parameter with finite or multiple multiplicity. |
|
QueueIOParameter |
generate the declaration and accessors on the Queue class basis for a parameter with finite or multiple multiplicity. |
|
SortedListIOParameter |
generate the declaration and accessors on the SortedList class basis for a parameter with finite or multiple multiplicity. |
|
SimpleReturnParameter |
generate the declaration of a return parameter with simple multiplicity. |
|
ArrayReturnParameter |
generate the declaration on the basis of a table for a parameter with finite or multiple multiplicity. |
|
StackReturnParameter |
generate the declaration on the Stack class basis for a return parameter with finite or multiple multiplicity. |
|
HashtableReturnParameter |
generate the declaration on the Hashtable class basis for a return parameter with finite or multiple multiplicity. |
|
ArrayListReturnParameter |
generate the declaration on the ArrayList class basis for a return parameter with finite or multiple multiplicity. |
|
QueueReturnParameter |
generate the declaration on the Queue class basis for a return parameter with finite or multiple multiplicity. |
|
SortedListReturnParameter |
generate the declaration on the SortedList class basis for a return parameter with finite or multiple multiplicity. |
The following subjects will be covered later:
· Simple multiplicity for 0-1 or 1-1 type multiplicities
· Multiple multiplicity for the n-* type multiplicity
· Finite multiplicity for the n-m and m>1 type multiplicities