Page tree

MagicDraw 19.0 LTR SP3 Documentation


Java Profile

Java Profile is used to map the Java language to UML.

UML specification does not provide elements to fully cover JLS; thus, a modeling tool uses UML stereotypes to mark a UML class or interface to be a specific Java element.

Java stereotypes are provided in the Java_Profile.xml file in the profiles directory. Some stereotypes have tagged values used for mapping special Java language elements or keywords that are not mapped to standard UML properties. All Java stereotypes are derived from the «JavaElement». Another abstract stereotype, «JavaTypeElement», is used to group all Java type elements. These two stereotypes are abstract and are not used directly.

Each stereotype is used to represent an appropriate Java element:

Stereotypes.