Introduction

Listed below are the usual concepts for Java development, together with the way in which they can be expressed in Modelio.

Notions on a class

Java notion UML model mapping

abstract class

"Abstract" field of a class

final class

"Can be inherited" field of a class

generalization

Class generalization, or {JavaExtends} tagged value

interface implementation

Implementation link, or {JavaImplements} tagged value

imports classes

Use and reference links of its package, or {JavaImport} tagged value on the class and its package

class invariant

Constraint on class, stereotyped JavaInvariant

inner class

Contained class

non public class

[JavaBottom note type][4], or import link stereotyped JavaFileGroup

Notions on an operation

Java notion UML model mapping

public visibility

Public value in the Visibility field on an operation.

protected visibility

Protected value in the Visibility field on an operation.

private visibility

Private value in the Visibility field on an operation.

friendly visibility

No value in the Visibility field on an operation.

constructor

«create» stereotype on an operation.

finalize() method

«destroy» stereotype on an operation.

abstract

"Abstract" operation field.

static

"Class" operation field.

final

"Cannot be specialized" operation field.

synchronized

{JavaSynchronized} tagged value.

native

{JavaNative} tagged value.

exceptions generated by an operation

{JavaThrownException} tagged value. You can model the throwing of exceptions through a dependency link towards a class which derives from java.lang.Exception or towards a signal stereotyped Exception.

Notions on an attribute

Java notion UML model mapping

visibility

Same mapping process as for operations.

static

Class field of an attribute.

final

{JavaFinal} tagged value.