Customizing attribute accessors
Introduction
Each class that parameterizes accessors for a class must contain a method named "declare", used to generate the declaration of the corresponding Java attribute. The methods are used to generate accessors in access or modify mode. For finite or multiple attributes, one of them must generate an accessor named "card", which returns an integer containing the attribute's current multiplicity.
Customizing the attributes of the defaultSimpleAttribute class
|
The ... attribute |
is used to customize ... |
|
declare |
the declaration of the Java attribute. |
|
get |
the access to the Java attribute. |
|
set |
the modification of the Java attribute. |
Customizing the attributes of the vectorMultipleAttribute class
|
The ... attribute |
is used to customize ... |
|
declare |
the declaration of the Java attribute. |
|
get |
the access to an element with the given index. |
|
set |
the substitution of the element with a given index. |
|
append |
the addition of an element. |
|
erase_by_element |
the deletion of a given element. |
|
erase_by_index |
the deletion of the element with the given index. |
|
card |
the calculation of the number of elements. |
Customizing the attributes of the vectorFiniteAttribute class
|
The ... attribute |
is used to customize ... |
|
get |
the access to an element with the given index. |
|
set |
the substitution of the element with a given index. |
|
append |
the addition of an element. |
|
erase_by_element |
the deletion of a given element. |
|
erase_by_index |
the deletion of the element with the given index. |
|
card |
the calculation of the number of elements. |
Customizing the attributes of the arrayFiniteAttribute class
|
The ... attribute |
is used to customize ... |
|
declare |
the declaration of the attribute. |
|
get |
the access to an element with the 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. |
Customizing the attributes of the stackMultipleAttribute class
|
The ... attribute |
is used to customize ... |
|
declare |
the declaration of the attribute. |
|
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 attributes of the stackFiniteAttribute class
|
The ... attribute |
is used to customize ... |
|
declare |
the declaration of the attribute. |
|
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 attributes of the hashtableMultipleAttribute class
|
The ... attribute |
is used to customize ... |
|
declare |
the declaration of the attribute. |
|
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. |