diff --git a/JavaCodeGenerator.js b/JavaCodeGenerator.js index d7bf3a1..9e6684c 100644 --- a/JavaCodeGenerator.js +++ b/JavaCodeGenerator.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) { diff --git a/JavaReverseEngineer.js b/JavaReverseEngineer.js index 300280b..b9601d6 100644 --- a/JavaReverseEngineer.js +++ b/JavaReverseEngineer.js @@ -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; -}); \ No newline at end of file +}); diff --git a/README.md b/README.md index 8221a94..c6d7815 100644 --- a/README.md +++ b/README.md @@ -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`, `java.util.Set` 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). \ No newline at end of file +Licensed under the MIT license (see LICENSE file). diff --git a/unittests.js b/unittests.js index 92b5717..05d1027 100644 --- a/unittests.js +++ b/unittests.js @@ -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); }); });