Please note : This help page is not for the latest version of Enterprise Architect. The latest help can be found here.
Java Conventions
Enterprise Architect supports round trip engineering of Java - including AspectJ extensions - where the following conventions are used.
Stereotypes
Stereotype |
Applies To |
Corresponds To |
---|---|---|
annotation |
Interface |
An annotation type.
|
enum |
Attributes within a Class stereotyped enumeration |
An enumerated option, distinguished from other attributes that have no stereotype.
|
enumeration |
Class |
An enum type.
|
operator |
Operation |
An operator.
|
property get |
Operation |
A read property.
|
property set |
Operation |
A write property.
|
static |
Class or Interface |
The static keyword.
|
Tagged Values
Tag |
Applies To |
Corresponds To |
---|---|---|
annotations |
Anything |
The annotations on the current code feature.
|
arguments |
Attribute with stereotype enum |
The arguments that apply to this enumerated value.
|
attribute_name |
Operation with stereotype property get or property set |
The name of the variable behind this property.
|
dynamic |
Class or Interface |
The dynamic keyword.
|
generic |
Operation |
The generic parameters to this operation.
|
parameterList |
Parameter |
A parameter list with the ... syntax.
|
throws |
Operation |
The exceptions that are thrown by this method.
|
transient |
Attribute |
The transient keyword.
|
Other Conventions
· | Package statements are generated when the current Package is not a namespace root |
· | The Const property of an attribute or operation corresponds to the final keyword |
· | The Transient property of an attribute corresponds to the volatile keyword |
· | The Fixed property of a parameter corresponds to the final keyword |
Learn more