Note types for Java

Overview

Modelio Java Designer notes are used to complete the UML model with texts expressed in Java syntax. Usually, the internal processing of a UML method is entered in Java in a “JavaCode” type note associated to a method’s implementation.

Note: Certain notes can be added to certain model elements directly through the “Java” tab. For more information, please see “Java Designer property view”.

Type of notes on a class

The ... type of noteLabelIs used to...
JavaHeaderHeaderinsert a text before declaring the class.
JavaMembersMembersinsert a text in the class body.
JavaBottomBottominsert a text after declaring the class.
JavadocJavadocadd a comment to be used by javadoc.
JavaTopTopinsert a comment before the java file's package instruction.
JavaAnnotationAnnotationsspecify the annotations added to the class.

Type of notes on an operation

The ... type of noteLabelIs used to...
JavadocJavadocadd a comment which will be used by javadoc.
JavaCodeCodeprovide Java code for implementing the operation.
JavaSuperSuperinsert Java code before the pre-condition (especially for calling the builder of the parent class).
JavaReturnedReturn codeinsert Java code after the post-condition (especially for instructing the method return).
JavaAnnotationAnnotationsspecify the annotations added to the operation.

Type of notes on an attribute

The ... type of noteLabelIs used to...
JavaInitValueCommentComment on the initial valueadd a comment about the attribute.
JavadocJavadocadd a comment to be used by javadoc.
JavaAnnotationAnnotationsspecify the annotations added to the attribute.

Type of notes on an association end

The ... type of noteLabelIs used to...
JavaAnnotationAnnotationsspecify the annotations added to the association.
JavadocJavadocadd a comment to be used by javadoc.
JavaInitValueInitial valueset initialization for the association.
JavaInitValueCommentComment on the initial valueadd a comment after the initialization of a navigable association.

Type of notes on a package

The ... type of noteLabelIs used to...
JavaAnnotationAnnotationsspecify the annotations added to the package.

Type of notes on a datatype

The ... type of noteLabelIs used to...
JavadocJavadocadd a comment to be used by javadoc.
JavaHeaderHeaderinsert a text before declaring the class.
JavaMembersMembersinsert a text in the class body.

Type of notes on a dependency

The ... type of noteLabelIs used to...
SeeJavadocSee Javadoccontain the format of a @see annotation.

Type of notes on an element import

The ... type of noteLabelIs used to...
JavadocJavadocadd a comment to be used by javadoc.

Type of notes on an enumeration

The ... type of noteLabelIs used to...
JavaAnnotationAnnotationsspecify the annotations added to the enumeration.
JavaCodeCodespecify the Java code to add in the enumeration.
JavadocJavadocadd a comment to be used by javadoc.

Type of notes on an enumeration literal

The ... type of noteLabelIs used to...
JavaAnnotationAnnotationsspecify the annotations added to the enumeration literal.
JavaCodeCodeadd Java code to this literal.
JavadocJavadocadd a comment to be used by javadoc.

Type of notes on an interface

The ... type of noteLabelIs used to...
JavaAnnotationAnnotationsspecify the annotations added to the interface.
JavaBottomBottominsert a text after declaring the interface.
JavadocJavadocadd a comment to be used by javadoc.
JavaHeaderHeaderinsert a text before declaring the interface.
JavaMembersMembersinsert a text in the interface body.
JavaTopTopinsert a comment before the Java file's package instruction.

Type of notes on a jar file

The ... type of noteLabelIs used to...
AntTargetAnt targetallow custom targets to be added in the generated ant file.

Type of notes on a parameter

The ... type of noteLabelIs used to...
JavaAnnotationAnnotationsspecify the annotations added to the parameter.
JavadocJavadocadd a comment to be used by javadoc.