Text File Format for Simple UML Diagrams
The syntactic format for each element parallels the Java API specification of Simple UML diagrams. This API spec is in the ../java_api directory. The comments in the API spec have further explantory details about structure and display of Simple UML diagrams.
Here is the syntax:
page: 1 package: name: <identifier> name_prefix: <string> name_suffix: <string> height: <int> width: <int> x_coord: <int> y_coord: <int> components: <element_name> ... show_as_contained: <boolean> class: name: <identifier> name_prefix: <string> name_suffix: <string> height: <int> width: <int> x_coord: <int> y_coord: <int> inherits_from: <class_name> ... attributes: <name_type_pair> ... strong_aggregates: <name_type_pair> ... weak_aggregates: <name_type_pair> ... reference_aggregates: <name_type_pair> ... union_aggregates: <name_type_pair> ... operation_attributes: <operation_signature> operation_aggregates: <operation_signature> operation: name: <identifier> name_prefix: <string> name_suffix: <string> height: <int> width: <int> x_coord: <int> y_coord: <int> inputs: <name_type_pair> ... outputs: <name_type_pair> ... page: 2
...
page: n
Here are defintions of non-terminals used above: