Class Modelling

The UMLGraph class diagrams allows you to model All relationship tags appart from @extends take four arguments:
  1. The source adornments (role, multiplicity, and visibility)
  2. The relationship name
  3. The target adornments (role, multiplicity, and visibility)
  4. The target class
Arguments can be space-separated, or enclosed in quotes if they need to contain the space character. The - character is used as a placeholder to denote empty arguments. You can use the \n sequence to separate the first three adornments in separate centered lines; the \l and \r sequences can also be used to generate left and right aligned lines. You can use the < and > characters in the relationship name to enclose stereotype names. These will be automatically enclosed in guillemots. Note that a relationship's target class is not implicitly defined; it should also be specified using the Java class syntax. The following is an example of a relationship specification and the resulting UML diagram:
class Tyre {}
class Engine {}
class Body {}

/**
 * @composed 1 - 4 Tyre
 * @composed 1 - 1 Engine
 * @composed 1 - 1 Body
 */
class Car {}
UML relationship diagram