Book a Demo

Author Topic: Code generation of Attribute Constraints EA 7.5  (Read 2882 times)

arce

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Code generation of Attribute Constraints EA 7.5
« on: April 28, 2009, 08:30:29 pm »
Is there any Field Substitution Macro to access constraints related to attributes of a Class? "attConstraintName" for example?

I need to generate code from a Class Diagram that includes each OCL expression created in the Class Attributes dialog -> Constraints tab.

Adding a "%constraintName%" in the scope of an "Attribute" Code Generation Template for Java doesn't work. I suppose that is because the "%constraintName%" macro is valid only for "Class" scope.

Maybe I have to use another way to do this.

Any suggestion?

Thank you!!

P.D: I'm using EA 7.5 Corporate Edition. Is a limitation of the license?

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Code generation of Attribute Constraints EA 7.
« Reply #1 on: April 29, 2009, 07:56:22 am »
Attribute constrains are not currently accessible from the code templates.