mirror of https://github.com/dspinellis/UMLGraph
New test to check local option disabling
This commit is contained in:
parent
85e0a62c74
commit
39048e6f0f
|
|
@ -0,0 +1,17 @@
|
|||
#!/usr/local/bin/dot
|
||||
#
|
||||
# Class diagram
|
||||
# Generated by UmlGraph version 4.1 (http://www.spinellis.gr/sw/umlgraph)
|
||||
#
|
||||
|
||||
digraph G {
|
||||
edge [fontname="Helvetica",fontsize=10,labelfontname="Helvetica",labelfontsize=10];
|
||||
node [fontname="Helvetica",fontsize=10,shape=record];
|
||||
// Person1
|
||||
c44 [label="{Person1\n|~ address : String\l~ name : String\l|}", fontname="Helvetica", fontcolor="black", fontsize=10.0];
|
||||
// Person2
|
||||
c45 [label="{Person2\n||~ displayName() : String\l}", fontname="Helvetica", fontcolor="black", fontsize=10.0];
|
||||
// Person3
|
||||
c46 [label="{Person3\n|address : Address\lname : String\l|displayName() : String\l}", fontname="Helvetica", fontcolor="black", fontsize=10.0];
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,40 @@
|
|||
// $Id$
|
||||
|
||||
/**
|
||||
* Locally disable an option (test)
|
||||
*
|
||||
* @opt operations
|
||||
* @opt attributes
|
||||
* @opt types
|
||||
* @opt visibility
|
||||
* @hidden
|
||||
*/
|
||||
class UMLOptions {}
|
||||
|
||||
/**
|
||||
* @opt !operations
|
||||
*/
|
||||
class Person1 {
|
||||
String address;
|
||||
String name;
|
||||
String displayName();
|
||||
}
|
||||
|
||||
/**
|
||||
* @opt !attributes
|
||||
*/
|
||||
class Person2 {
|
||||
Address address;
|
||||
String name;
|
||||
String displayName();
|
||||
}
|
||||
|
||||
/**
|
||||
* @opt !visibility
|
||||
*/
|
||||
class Person3 {
|
||||
Address address;
|
||||
String name;
|
||||
String displayName();
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue