Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Content layer
id431991466
Content column
id431991468
Content block
id431991467

You can annotate Java elements. This annotation is mapped on top of the {JavaAnnotations} tagged value of the stereotype «JavaElement». «JavaElement» is a base stereotype for all stereotypes used in Java mapping, and can be used directly or with any other stereotype derived from it. Annotation is mapped as a simple string value.


Tip
titleExample

Java source code


Code Block
languagejava
public class Test
{
@Annotation
(
id = 2,
name = "Rick"
)
public void foo(){}
}


UML Model

Java annotation usage 
Content block
id431991465

Related Pages:

Children Display
pageMapping to UML Rules