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 5d84c65 commit 50ed63b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion CppCodeGenerator.js
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ define(function (require, exports, module) {


var finalModifier = "";
if (elem.isFinalSpecification === true || elem.isLeaf === true) {
if (elem.isFinalSpecialization === true || elem.isLeaf === true) {
finalModifier = " final ";
}
var templatePart = cppCodeGen.getTemplateParameter(elem);
Expand Down
26 changes: 13 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Cpp Extension for StarUML 2
Cpp Extension for StarUML 2
============================
This extension for StarUML(http://staruml.io) support to generate Cpp code from UML model.

Expand All @@ -11,7 +11,7 @@ This extension for StarUML(http://staruml.io) support to generate Cpp code from

* converted to _Cpp Class_. (as a separate `.h` file)
* `visibility` to one of modifiers `public`, `protected`, `private`. If visibility is not setted, consider as `protected`.
* `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.
* TemplateParameter to _Cpp Template_.
Expand Down Expand Up @@ -54,10 +54,10 @@ This extension for StarUML(http://staruml.io) support to generate Cpp code from
| Tuesday |
| Saturday |

converts
converts

```c
/* Test header @ toori67
/* Test header @ toori67
* This is Test
* also test
* also test again
Expand Down Expand Up @@ -109,9 +109,9 @@ Belows are the rules to convert from C++ source code to UML model elements.
* Class name to `name` property.
* Type parameters to _UMLTemplateParameter_.
* Access modifier `public`, `protected` and `private` to `visibility` property.
* `abstract` modifier to `isAbstract` property.
* `abstract` modifier to `isAbstract` property.
* Constructors to _UMLOperation_ with stereotype `<<constructor>>`.
* All contained types (_UMLClass_, _UMLInterface_, _UMLEnumeration_) are generated as inner type definition.
* All contained types (_UMLClass_, _UMLInterface_, _UMLEnumeration_) are generated as inner type definition.


### C++ Field (to UMLAttribute)
Expand All @@ -123,9 +123,9 @@ Belows are the rules to convert from C++ source code to UML model elements.
* `T[]`(array) 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.
* `static` modifier to `isStatic` property.
* Initial value to `defaultValue` property.

### C++ Field (to UMLAssociation)
Expand All @@ -137,24 +137,24 @@ Belows are the rules to convert from C++ source code to UML model elements.
* `T` (User-Defined Types) : `reference` property refers to the `T` type.
* Otherwise : converted to _UMLAttribute_, not _UMLAssociation_.

* Access modifier `public`, `protected` and `private` to `visibility` property.
* Access modifier `public`, `protected` and `private` to `visibility` property.

### C++ Method

* converted to _UMLOperation_.
* Type parameters to _UMLTemplateParameter_.
* Access modifier `public`, `protected` and `private` to `visibility` property.
* `static` modifier to `isStatic` property.
* `abstract` modifier to `isAbstract` property.
* `abstract` modifier to `isAbstract` property.


### C++ Enum

* converted to _UMLEnumeration_.
* Enum name to `name` property.
* Type parameters to _UMLTemplateParameter_.
* Access modifier `public`, `protected` and `private` to `visibility` property.
* Access modifier `public`, `protected` and `private` to `visibility` property.

---

Licensed under the MIT license (see LICENSE file).

0 comments on commit 50ed63b

Please sign in to comment.