Prev Next

Java Conventions

Enterprise Architect supports round trip engineering of Java - including AspectJ extensions - where these conventions are used.

Stereotypes

Stereotype

Applies To

See also

annotation

Interface

Corresponds To: An annotation type.

default

Operation

Corresponds To: The 'default' keyword.

enum

Attributes within a Class stereotyped enumeration

Corresponds To: An enumerated option, distinguished from other attributes that have no stereotype.

enumeration

Class

Corresponds To: An enumerated type.

operator

Operation

Corresponds To: An operator.

property get

Operation

Corresponds To: A 'read' property.

property set

Operation

Corresponds To: A 'write' property.

static

Class or Interface

Corresponds To: The 'static' keyword.

Tagged Values

Tag

Applies To

See also

annotations

Anything

Corresponds To: The annotations on the current code feature.

arguments

Attribute with stereotype enum

Corresponds To: The arguments that apply to this enumerated value.

attribute_name

Operation with stereotype property get or property set

Corresponds To: The name of the variable behind this property.

dynamic

Class or Interface

Corresponds To: The 'dynamic' keyword.

generic

Operation

Corresponds To: The generic parameters to this operation.

parameterList

Parameter

Corresponds To: A parameter list with the ... syntax.

throws

Operation

Corresponds To: The exceptions that are thrown by this method.

transient

Attribute

Corresponds To: 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