standard.attribute Java Attribute, javaattributeproperty Java Attribute Property

Warning the following fields appear only for attributes belonging to java elements.
07 attribute 1

Keys:

1 A real-time preview of the generated code.
2 The UML name field is used to modify the UML name of the Attribute, i.e. the name that appears in the model browser.
3 The Alias tick-box is used to indicate that the Attribute will use an alias for the generated file. This can be useful if the UML name of the Attribute is not compatible with the java naming rules. When checked, a new field used to enter the alias name appears on the right.
4 The Visibility buttons are used to indicate the visibility of the Attribute.
5 The Modifiers tick-boxes are used to indicate the modifiers which will be generated in the Attribute signature.
6 The Manual type tick-box makes you enter a manual type expression to be used as-is for the Attribute.
7 The Value type field is used to select a type for the Attribute. [1]
8 The Qualified tick-box is checked to indicate the attribute’s type is to be generated with a qualified name.
9 The Template field is used to enter a template parameter to be added to the value type definition.
10 The Cardinalities fields are used to set the Attribute’s cardinalities, min and max.
11 The Collection drop-list is used to select a collection. If the selected collection is a Map, a new field used to select a Map key appears.
12 The Map key field is used to select a type to be used as key if the selected collection is a map.[1]
13 The Initial value buttons are used to indicate if an initial value is to be generated for the Attribute:
  • If the None button is checked, no initial value is added.

  • If the New button is checked, the initial value will be automatically generated based on the defined Value type/Collection.

  • If the Custom button is checked, a new field used to enter the initial value appears on the right to enter the value.

14 The Get assessor buttons are used to indicate if a automethodGetter exists for the Attribute and with which visibility.
15 The Set assessor buttons are used to indicate if a automethodSetter exists for the Attribute and with which visibility.
16 The Annotations field is used to enter a Java Annotation content for the Attribute.
17 The Javadoc field is used to enter a javadoc content for the Attribute.
18 The Java Property tick-box is used to transform the Attribute into an javaattributeproperty Attribute Property.[2]
19 The No code field is used to indicate that the Attribute will not be generated.

1. This is an assisted field, you can either enter the type’s name and press Ctrl+space for auto-completion or click on the field and then click on the wanted element in the model.
2. With properties, get/set accessors are automatically added at generation and not represented in the model itself as operations.