google-code-export / umple

Automatically exported from code.google.com/p/umple
1 stars 0 forks source link

Constructor Parameters in Multi-Language Umple Files #508

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Using the following Umple file:

generate Java;
generate Ruby;
generate Php;

class Range {
  Integer start;
  Integer end;
}

java -jar umple.jar range.ump

produces code in which the constructor parameters of the languages with later 
generate directives use the syntax of the first constructor.

In the above example, the generated Ruby constructor has the signature

def initialize(int aStart, int aEnd)

instead of

def initialize(a_start, a_end)

The PHP constructor has the signature

public function __construct(int aStart, int aEnd)

instead of

public function __construct($aStart, $aEnd)

Original issue reported on code.google.com by Astronomix@gmail.com on 9 Feb 2014 at 7:52

GoogleCodeExporter commented 9 years ago

Original comment by TimothyCLethbridge on 13 Feb 2014 at 8:51

GoogleCodeExporter commented 9 years ago

Original comment by rof...@gmail.com on 8 Jul 2014 at 4:23

GoogleCodeExporter commented 9 years ago
Changes commited.

Original comment by rof...@gmail.com on 30 Jul 2014 at 5:12

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by TimothyCLethbridge on 5 Aug 2014 at 6:35