Skip to content

Commit

Permalink
Fix "isFinalSpecification" to "isFinalSpecialization"
Browse files Browse the repository at this point in the history
  • Loading branch information
niklauslee committed Dec 28, 2014
1 parent bb13434 commit 8e70ece
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion JavaCodeGenerator.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
4 changes: 2 additions & 2 deletions JavaReverseEngineer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down Expand Up @@ -1204,4 +1204,4 @@ define(function (require, exports, module) {

exports.analyze = analyze;

});
});
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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).
2 changes: 1 addition & 1 deletion unittests.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
});

Expand Down

0 comments on commit 8e70ece

Please sign in to comment.