Permalink
Browse files

Fix "isFinalSpecification" to "isFinalSpecialization"

  • Loading branch information...
1 parent bb13434 commit 8e70ece7224c8c4863274dac41e1d1dc7fa6067e @niklauslee niklauslee committed Dec 28, 2014
Showing with 7 additions and 7 deletions.
  1. +1 −1 JavaCodeGenerator.js
  2. +2 −2 JavaReverseEngineer.js
  3. +3 −3 README.md
  4. +1 −1 unittests.js
@@ -194,7 +194,7 @@ define(function (require, exports, module) {
if (elem.isAbstract === true) {
modifiers.push("abstract");
}
- if (elem.isFinalSpecification === true || elem.isLeaf === true) {
+ if (elem.isFinalSpecialization === true || elem.isLeaf === true) {
modifiers.push("final");
}
if (elem.concurrency === UML.CCK_CONCURRENT) {
@@ -806,7 +806,7 @@ define(function (require, exports, module) {
// Final Class
if (_.contains(classNode.modifiers, "final")) {
- _class.isFinalSpecification = true;
+ _class.isFinalSpecialization = true;
_class.isLeaf = true;
}
@@ -1204,4 +1204,4 @@ define(function (require, exports, module) {
exports.analyze = analyze;
-});
+});
View
@@ -21,7 +21,7 @@ Belows are the rules to convert from UML model elements to Java source codes.
* converted to _Java Class_. (as a separate `.java` file)
* `visibility` to one of modifiers `public`, `protected`, `private` and none.
* `isAbstract` property to `abstract` modifier.
-* `isFinalSpecification` and `isLeaf` property to `final` modifier.
+* `isFinalSpecialization` and `isLeaf` property to `final` modifier.
* Default constructor is generated.
* All contained types (_UMLClass_, _UMLInterface_, _UMLEnumeration_) are generated as inner type definition.
* Documentation property to JavaDoc comment.
@@ -120,7 +120,7 @@ Belows are the rules to convert from Java source code to UML model elements.
* `T[]`(array), `java.util.List<T>`, `java.util.Set<T>` or its decendants: `type` property refers to `T` with multiplicity `*`.
* `T` (User-Defined Types) : `type` property refers to the `T` type.
* Otherwise : `type` property has the type name as string.
-
+
* Access modifier `public`, `protected` and `private` to `visibility` property.
* `static` modifier to `isStatic` property.
* `final` modifier to `isLeaf` and `isReadOnly` property.
@@ -181,4 +181,4 @@ Belows are the rules to convert from Java source code to UML model elements.
---
-Licensed under the MIT license (see LICENSE file).
+Licensed under the MIT license (see LICENSE file).
View
@@ -739,7 +739,7 @@ define(function (require, exports, module) {
it("can reverse Java Final Class", function () {
runs(function () {
var _class = find("ClassFinalTest");
- expect(_class.isFinalSpecification).toBe(true);
+ expect(_class.isFinalSpecialization).toBe(true);
});
});

0 comments on commit 8e70ece

Please sign in to comment.