Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: danielku15 on July 31, 2008, 05:57:29 am

Title: [Class Diagrams] Naming convention generation
Post 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
TypePrefixFromTo
String_sversion_sVersion
String[]_asentries_asEntries
Integer_inum_iNum
byte_inum_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
Title: Re: [Class Diagrams] Naming convention generation
Post by: Eve on July 31, 2008, 08:27:49 am
You could look at tranformations.  You'll have to write one yourself, but it would do the job.