how to get DataType values in Acceleo [message #1760353] |
Wed, 26 April 2017 09:09 |
sana sana Messages: 6 Registered: April 2017 |
Junior Member |
|
|
hello,
I'm triyng to code a M2T which has a model+profile UML as input and generate java classes as output, in Acceleo.
I have a problem to manipulate a DAtaType.
iIn my profile, i have a stereotype "str" applied to a Property "P", in which there are an enumeration "enum" -->E1, E2, and a dataType "DT" -->L1:bool; L2:bool; L3:string.
In my generate.mtl file, I know how to get the enumeration Literal value; like this:
[for (sp : Stereotype | p.getAppliedStereotypes())]
[p.getValue(str,"enum").oclAsType((EnumerationLiteral).name/]
[p.getValue(str,"DT").oclAsType((DataType).name/]
[/for]
I cannot do the same thing for the dataType "DT"
I need to get the value of DT-->L1.
Can Someone help me please ?
thx
|
|
|
|
Powered by
FUDForum. Page generated in 0.09347 seconds