Stereotypes for Java

Overview

Modelio Java Designer defines stereotypes that enable you to designate certain objects as being concerned by the generation of Java code. In this way, a constraint concerning an operation will be used as a pre-condition if it carries the JavaPreConditions stereotype.

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

Stereotypes on a class

NameIs used to...
JavaAnnotationspecify that this class is an annotation.
JavaClassspecify that this class is a Java element.

Stereotypes on an artifact

NameIs used to...
JavaResource specify that this artifact is a Java resource.
JarFilespecify that this artifact is a jar.

Stereotypes on a component

NameIs used to...
JavaPluginspecify that this component is a Java plugin.

Stereotypes on a constraint

NameIs used to...
JavaDocInvariantdesignate a constraint as being an invariant expressed in JavaDoc. Such a constraint is only taken into account if it concerns a class.
InvariantWhen the "description note processed as Javadoc" parameter is selected, the constraint is taken into account in JavaDoc as for JavaDocInvariant.
JavaInvariantdesignate a constraint as being an invariant expressed in Java. Such a constraint is only taken into account if it concerns a class.
JavaPreConditiondesignate a constraint as being a pre-condition expressed in Java. Such a constraint is only taken into account if it concerns an operation.
JavaPostConditiondesignate a constraint as being a post-condition expressed in Java. Such a constraint is only taken into account if it concerns an operation.

Stereotypes on a datatype

NameIs used to...
JavaDataTypespecify that this datatype is a Java element.

Stereotypes on an enumeration

NameIs used to...
JavaEnumerationspecify that this enumeration is a Java element.

Stereotypes on an interface

NameIs used to...
JavaInterfacespecify that this interface is a Java element.

Stereotypes on a package

NameIs used to...
JavaPackagespecify that this package is a Java element.