Tagged value types for Java

Overview

The tagged values provided by Modelio Java Designer are designed to let you adapt Java semantics to a UML model, in order to generate all Java notions accurately. For example, the notion of native method in Java does not exist in UML. A {JavaNative} tagged value on a UML operation enables you to specify this on a model.

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

Tagged values on a class

NameLabelParametersRole
JavaStaticStatic N/A Used to declare the embedded class as being static.
JavaExtendsExtendsname of the parent classInherits non-modeled classes.
JavaImplementsImplementsnames of implemented interfacesImplements non-modeled interfaces.
JavaImportImportsnames of the imported classes and packagesImports non-modeled packages and classes.
JavaExternExternN/AIndicates a class for which code must not be generated.
nocodeN/APrevents this class from being generated. No Java file is generated for this class.
persistenceN/ASpecifies that the class is persistent.

Tagged values on a package

NameLabelParametersRole
JavaImportImportsnames of the imported classes and packagesImports non-modeled packages and classes.
JavaExternExternN/AIndicates a package for which code must not be generated from its classes.
nocodeN/APrevents this package from being generated. No Java file is generated for this package.

Tagged values on an operation

NameLabelParametersRole
JavaStrictStrictN/ARepresentation of the Java keyword "strictfp" for the generated operation.
JavaSynchronizedSynchronizedN/ARepresentation of the Java "synchronized" keyword meant for the multi-threading.
JavaNativeNativeN/ARepresentation of the "native" Java keyword for the methods written in languages other than Java.
JavaThrownExceptionThrown exceptionsname of the exceptions that may be calledLists the exceptions the operation can generate.
JavaTemplateParametersTemplate parametersTemplate parametersSpecifies template parameters for a generic operation.
nocodeN/APrevents this operation from being generated.

Tagged values on an attribute

NameLabelParametersRole
JavaWrapperUse wrapped typeN/AUses the Wrapper class as base type (for example, Integer for int).
typeA collection interfaceIndicates a class other than the default class for the generations related to the attribute. The {type} tagged value can be used together with the {JavaImplementationType} tagged value to define a personalized collection.
JavaTypeExprManual type expressiontext for specifying the attribute's Java typeGeneration of the types that cannot be represented in Modelio (ex : int [ ] [ ]). **_Note_**: Setting an attribute's multiplicity to * leads to errors!.
JavaFinalFinalN/ARepresentation of the Java "final" keyword.
JavaVolatileVolatileN/ARepresentation of the Java "volatile" keyword.
JavaTransientTransientN/ARepresentation of the Java "transient" keyword.
JavaFullNameGenerate full nameN/AAllows the generation of the complete name of the class, datatype or enumeration used.
JavaImplementationTypeCollection implementation typeA collection typeSpecifies the concrete collection to use in a Java5Types context. The {type} tagged value can be used together with the {JavaImplementationType} tagged value to define a personalized collection.
JavaBindBindBound types on the attributeSpecifies the types bound by a generic attribute.
JavaArrayDimensionArray DimensionIntegerSpecifies the number of dimensions of an array.
nocodeN/APrevents this attribute from being generated.
persistenceN/ASpecifies that the attribute is persistent.

Tagged values on a navigable association end

NameLabelParametersRole
typeA collection interfaceIndicates a class other than the default class for the generations related to the association. Specifies the exposed collection interface to use in a Java generation context.
JavaFinalFinalN/ARepresentation of the Java "final" keyword.
JavaVolatileVolatileN/ARepresentation of the Java "volatile" keyword.
JavaTransientTransientN/ARepresentation of the Java "transient" keyword.
JavaTypeExprManual type expressiontext for specifying the attribute's Java typeSpecifies the concrete collection to use in a Java5Types context. The {type} tagged value can be used together with the {JavaImplementationType} tagged value to define a personalized collection.
JavaFullNameGenerate full nameN/AAllows the generation of the complete name of the class, datatype or enumerate used.
JavaImplementationTypeCollection implementation typeA collection typeSpecifies the concrete collection to use in a Java5Types context.
JavaBindBindBound types on the associationSpecifies the types bound by a generic association.
JavaArrayDimensionArray DimensionIntegerSpecifies the number of dimensions of an array.
nocodeN/APrevents this association from being generated.
orderedN/ASpecifies that the association is ordered.
qualifierN/AUsed to define the association more finely.

Tagged values on a parameter

NameLabelParametersRole
JavaWrapperUse wrapped typeN/AUses Wrapper as its base type (for example, Integer instead of int).
JavaTypeExprManual type expressiontext for specifying the parameter's Java typeGeneration of the types that cannot be represented in Modelio (ex: in [ ] [ ]). **Note:** Setting a parameter's multiplicity to * leads to errors!
JavaFullNameGenerate full nameN/AAllows the generation of the complete name of the class, datatype or enumerate used.
typename of the class for generating the parameter declarationIndicates a class other than the default class to generate a parameter declaration.
JavaFinalFinalN/AGenerates the "final" keyword before a parameter.
JavaBindBindBound types to the associationSpecifies the types bound by a generic parameter.
JavaVarArgsIs a VarArgN/ASpecifies that this parameter is a VarArg parameter, as defined by Java 5.
JavaArrayDimensionArray DimensionIntegerSpecifies the number of dimensions of an array.

Tagged values on a datatype

NameLabelParametersRole
JavaExtendsExtendsname of the mother classInherits non-modeled classes.
JavaExternExternN/AIndicates a class for which code must not be generated.
JavaImportImportsnames of the imported classes and packagesImports non-modeled packages and classes.
JavaStaticStaticJavaStaticUsed to declare the datatype as being static.
persistenceN/ASpecifies that the datatype is persistent.

Tagged values on a generalization

NameLabelParametersRole
JavaFullNameGenerate full nameN/AAllows the generation of the complete name of the class, datatype or enumerate used.
JavaNoCodeDo not generateN/APrevents this generalization from being generated.
JavaBindBindBound types on the generalizationSpecifies the types bound by a generic attribute.

Tagged values on an element import

NameLabelParametersRole
JavaFullNameGenerate full nameN/AAllows the generation of the complete name of the class, datatype or enumerate used.

Tagged values on an enumeration

NameLabelParametersRole
JavaImplementsImplementsname of the parent enumerationImplements non-modeled interfaces.
JavaImportImportsname of the class to importImports non-modeled packages and classes.
JavaStaticStaticN/AUsed to declare the embedded enumeration as being static.

Tagged values on an enumeration literal

NameLabelParametersRole
JavaArgumentsArgumentsParameter definitionsParameters to be passed to the constructor of the enumeration when a constant is created.

Tagged values on a feature

NameLabelParametersRole
JavaNoInitValueNo initial valueN/AIndicates that this feature will not have a default value.

Tagged values on an interface

NameLabelParametersRole
JavaExtendsExtendsname of the parent interfaceInherits non-modeled interfaces.
JavaExternExternN/AIndicates a class for which code must not be generated.
JavaImportImportsname of the classes to importImports non-modeled packaged and classes.
JavaStaticStaticN/AUsed to declare the embedded interface as being static.

Tagged values on an interface realization

NameLabelParametersRole
JavaBindBindtype to insert in the genericSpecifies the types bound by a generic attribute.
JavaFullNameGenerate full nameN/AAllows the generation of the complete name of the class, datatype or enumerate used.
JavaNoCodeDo not generateN/APrevents this realization from being generated.

Tagged values on a Java annotation

NameLabelParametersRole
JavaDocumentedAnnotationDocumented AnnotationN/AIndicates that annotations are to be documented by javadoc and similar tools by default.
JavaInheritedAnnotationInherited AnnotationN/AIndicates that the annotation type is automatically inherited.
JavaRetentionAnnotationRetention AnnotationN/AIndicates how long annotations with the annotated type are to be retained.
JavaTargetAnnotationTarget AnnotationN/AIndicates the kinds of program element to which the annotation type applies.

Tagged values on a Java component

NameLabelParametersRole
GenerationPathGeneration Pathcomplete path where files are generatedGeneration path for Java elements contained in this component.

Tagged values on a model element

NameLabelParametersRole
JavaNoCodeDo not generateN/APrevents this element from being generated.

Tagged values on a template parameter

NameLabelParametersRole
JavaExtendsExtendsname of the parent template parameterInherits non-modeled classes.