You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+31-4Lines changed: 31 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
Java Extension for StarUML 2
2
2
============================
3
3
4
-
This extension for StarUML(http://staruml.io) support to generate Java code from UML model and to reverse Java code to UML model. Install this extension from Extension Manager of StarUML.
4
+
This extension for StarUML(http://staruml.io) support to generate Java code from UML model and to reverse Java code to UML model. Install this extension from Extension Manager of StarUML. It is based on Java 1.7 specification.
5
5
6
6
Java Code Generation
7
7
--------------------
@@ -102,12 +102,13 @@ Belows are the rules to convert from Java source code to UML model elements.
102
102
103
103
* converted to _UMLClass_.
104
104
* Class name to `name` property.
105
+
* Type parameters to _UMLTemplateParameter_.
105
106
* Access modifier `public`, `protected` and `private` to `visibility` property.
106
107
*`abstract` modifier to `isAbstract` property.
107
108
*`final` modifier to `isLeaf` property.
108
-
*Default constructor is generated.
109
+
*Constructors to _UMLOperation_ with stereotype `<<constructor>>`.
109
110
* All contained types (_UMLClass_, _UMLInterface_, _UMLEnumeration_) are generated as inner type definition.
110
-
*Documentation property to JavaDoc comment.
111
+
*JavaDoc comment to Documentation.
111
112
112
113
113
114
### Java Field (to UMLAttribute)
@@ -126,6 +127,7 @@ Belows are the rules to convert from Java source code to UML model elements.
126
127
*`transient` modifier to a Tag with `name="transient"` and `checked=true` .
127
128
*`volatile` modifier to a Tag with `name="volatile"` and `checked=true`.
128
129
* Initial value to `defaultValue` property.
130
+
* JavaDoc comment to Documentation.
129
131
130
132
### Java Field (to UMLAssociation)
131
133
@@ -137,16 +139,41 @@ Belows are the rules to convert from Java source code to UML model elements.
137
139
* Otherwise : converted to _UMLAttribute_, not _UMLAssociation_.
138
140
139
141
* Access modifier `public`, `protected` and `private` to `visibility` property.
140
-
142
+
* JavaDoc comment to Documentation.
141
143
142
144
### Java Method
143
145
144
146
* converted to _UMLOperation_.
147
+
* Type parameters to _UMLTemplateParameter_.
145
148
* Access modifier `public`, `protected` and `private` to `visibility` property.
149
+
*`static` modifier to `isStatic` property.
150
+
*`abstract` modifier to `isAbstract` property.
151
+
*`final` modifier to `isLeaf` property.
152
+
*`synchronized` modifier to `concurrency="concurrent"` property.
153
+
*`native` modifier to a Tag with `name="native"` and `checked=true`.
154
+
*`strictfp` modifier to a Tag with `name="strictfp"` and `checked=true`.
155
+
*`throws` clauses to `raisedExceptions` property.
156
+
* JavaDoc comment to Documentation.
146
157
147
158
### Java Interface
148
159
160
+
* converted to _UMLInterface_.
161
+
* Class name to `name` property.
162
+
* Type parameters to _UMLTemplateParameter_.
163
+
* Access modifier `public`, `protected` and `private` to `visibility` property.
164
+
* JavaDoc comment to Documentation.
165
+
149
166
### Java Enum
150
167
168
+
* converted to _UMLEnumeration_.
169
+
* Enum name to `name` property.
170
+
* Type parameters to _UMLTemplateParameter_.
171
+
* Access modifier `public`, `protected` and `private` to `visibility` property.
172
+
* Enum constants are converted to _UMLEnumerationLiteral_.
173
+
* JavaDoc comment to Documentation.
174
+
151
175
### Java AnnotationType
152
176
177
+
* converted to _UMLClass_ with stereotype `<<annotationType>>`.
178
+
* Annotation type elements to _UMLOperation_. (Default value to a Tag with `name="default"`).
0 commit comments