Book a Demo

Author Topic: Transformation of Java Classes from Domain Model  (Read 3034 times)

Ross

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Transformation of Java Classes from Domain Model
« on: May 28, 2009, 09:36:50 am »
I'm attempting to transform a java class from my domain model. My domain model contains platform indepent classes containing publicly accessible attributes. I.e. The Platform Independent Model (PIM).  When I transform the classes to a Platform Specific Model (PSM) in Java, the class member variables become private and accessor and mutator methods are created.

Two Issues:
1) I have the set the "Use Is for Boolean property Get()" value under Options/Source Code Engineering. (Default language specified has been set to Java). However after transforming the classes using the /Project/Transformations/Transform Current Package option, the getter methods are not prefixed with "is" (Although the "is" prefix does appear in the generated code). (Note that I have not created the methods using the Property option on the Attribute dialog box. This is purposeful since these are only getter/setter methods to be created during the transformation..and not to be included in the domain model). How do I ensure that the tranformed methods that appear in the EA operation dialog box are also prefixed with "is"?

2) When generating the code from the resulting transformed class above, the return type appears as "<unknown>". This should be returning the class member variable. How do I correct this?

E.g.
      public boolean getisCoopMember(){
            return <unknown>;
      }