Author Topic: [Class Diagrams] Naming convention generation  (Read 2626 times)

danielku15

  • EA User
  • **
  • Posts: 32
  • Karma: +0/-0
  • Nobody is perfect and I'm a nobody :D
    • View Profile
[Class Diagrams] Naming convention generation
« 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
CoderLine.net - The Online Coder Resource (comming soon)

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8061
  • Karma: +118/-20
    • View Profile
Re: [Class Diagrams] Naming convention generation
« Reply #1 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.