Customizing association accessors
Introduction
Each class that parameterizes the accessors for an association must contain an operation named "declare", used to generate the declaration of the corresponding C# field. The operations are used to generate accessors in read-only or read-write mode.
For associations, one of them must generate an accessor named "card"
returning an integer containing the association's current multiplicity.
Customizing the methods of the "simpleAssociation" class
|
The ...
method |
is used
to customize ... |
|
declare |
the declaration of the C# field. |
|
get |
the access to the C# field. |
|
set |
the modification of the C# field. |
|
card |
the calculation of the number of elements. |
Customizing the methods of the "arrayFiniteAssociation" class
|
The ...
method |
is used
to customize ... |
|
declare |
the declaration of the C# field. |
|
get |
the access to an element with a given index. |
|
get_all |
the access to all the elements. |
|
set |
the modification of the element with the given index. |
|
set_all |
the modification of all the elements. |
|
card |
the calculation of the number of elements. |
Customizing the methods of the "stackMultipleAssociation" class
|
The ...
method |
is used
to customize ... |
|
declare |
the declaration of the C# field. |
|
get |
the access to the element on top of the stack. |
|
append |
the addition of an element. |
|
erase |
the deletion of an element on top of the stack. |
|
card |
the calculation of the number of elements. |
Customizing the methods of the "stackFiniteAssociation" class
|
The ...
method |
is used
to customize ... |
|
declare |
the declaration of the C# field. |
|
get |
the access of the element on top of the stack. |
|
append |
the addition of an element. |
|
erase |
the deletion of an element on top of the stack. |
|
card |
the calculation of the number of elements. |
Customizing the methods of the "hashtableMultipleAssociation" class
|
The ...
method |
is used
to customize ... |
|
declare |
the declaration of the field. |
|
get |
the access to an element from its key. |
|
append |
the adding of an element with its key. |
|
erase_by_key |
the deletion of an element from its key. |
|
card |
the calculation of the number of elements. |
Customizing the methods of the "hashtableFiniteAssociation" class
|
The ...
method |
is used
to customize ... |
|
declare |
the declaration of the field. |
|
get |
the access to an element from its key. |
|
append |
the addition of an element with its key. |
|
erase_by_key |
the deletion of an element from its key. |
|
card |
the calculation of the number of elements. |