You can use domain modeling class diagrams to create implements
relationships between Java classes
and interfaces.
Before you begin
You cannot create an implements relationship in the following
situations:
- Between a class and an interface if such a relationship already
exists between the two
- If the source class is in a named package and the target interface
is in a default package
- If both the source class and the target interface are in default
packages but in different projects or plug-ins
You must have a domain modeling class diagram with Java classes and interfaces open.
About this task
To create an implements relationship between a Java class and a Java interface,
complete the following steps:
Procedure
- In the Palette, click Implements.
- In the diagram editor, click a Java class,
drag it to a Java interface, and release the
mouse button.
What to do next
Tip: You can also use the modeling assistant
to create implements relationships.