Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: danielku15 on July 31, 2008, 05:57:29 am
-
Hi.
I've imported a lot of classes which I want to convert to a different language. Now I want to change the attributes and method names to a special format:
Constants should be written uppercase.
Fields should get a prefix, defined by type
Type | Prefix | From | To |
String | _s | version | _sVersion |
String[] | _as | entries | _asEntries |
Integer | _i | num | _iNum |
byte | _i | num | _iNum |
Methods and Classes should start with a capital letter.
Parameters should also get a prefix (without an underscore _ )
Is there already a solution to change the classdata or do I have to write an own one?
Greets Daniel
-
You could look at tranformations. You'll have to write one yourself, but it would do the job.