Skip to main content



      Home
Home » Newcomers » Newcomers » how to get DataType values in Acceleo
how to get DataType values in Acceleo [message #1760353] Wed, 26 April 2017 05:09 Go to next message
Eclipse UserFriend
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
Re: how to get DataType values in Acceleo [message #1760378 is a reply to message #1760353] Wed, 26 April 2017 10:11 Go to previous message
Eclipse UserFriend
The Acceleo home page has a link to the forum you should use for asking questions about Acceleo: https://www.eclipse.org/acceleo/
Previous Topic:Check for Updates
Next Topic:Problem installing/updating GNU ARM plugin
Goto Forum:
  


Current Time: Tue Jul 08 16:49:58 EDT 2025

Powered by FUDForum. Page generated in 0.11403 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top