Supported Elements for Classes to Java Code

The UML to Java code generator supports the following elements in a structure of classes.

UML element Status Description
Aggregation An aggregation is a kind of association with a meaning of containment. It can be:
  • Directed or bidirectional
  • Public, protected, or private
Association An association is a relation between two classes. It can be:
  • Directed or bidirectional
  • Public, protected, or private
Class Element for which a Java file is generated.

A class contains a list of methods and attributes

Classifier Behavior A behavior can be a statemachine, an activity, or an opaque behavior. The behavior can be in a class itself and attached to an operation.
Composition A composition means that the root class is composed in another class. It can be:
  • Directed or bidirectional
  • Public, protected, or private
Enumeration Element for which a java file is generated. Data type used to define a collection of constants.
Flow Property A flow property is a member of an interface block referenced by a proxy port and representing a data transmitted by that port.
Generalization A class can inherit from another class
Interface Element for which a java file is generated. An Interface declares a list of methods to be implemented.
Interface Block Element describing elements transmitted through a proxy port element.
Interface Realization Relation describing the realization of an interface by a class
Operation There are two ways to use the operation element:
  • Member of a class representing a method.
  • Member of an interface or an interface block
Property There are two different purposes for the interface element:
  • A property can be a member of a class representing an attribute. It can be public, protected, or private.
  • A property can be a member of an interface referenced by a port and representing a data transmitted by that port.