One specifies a class diagram using the Java syntax complemented by
javadoc
tags.
Running the UmlGraph doclet on the specification will generate
a
Graphviz
diagram specification that can be automatically processed to
create Postscript, GIF, SVG, JPEG, fig, or Framemaker drawings.
The following is an example of a specification and the resulting UML class
diagram:
class Person {
String Name;
}
class Employee extends Person {}
class Client extends Person {}