Book a Demo

Author Topic: Transformation template - JAVA  (Read 2909 times)

Szakika

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Transformation template - JAVA
« on: April 15, 2013, 09:11:14 pm »
Hi,

i want to generate java code and i need " character. How can I escape the " character in this tempate:

[size=10]$attName=$parameter1
$propertyName=$attName
$propertyName=%REMOVE_PREFIX($propertyName,genOptPropertyPrefix)%
%if genOptGenCapitalisedProperties=="T"%
$propertyName=%CONVERT_NAME($propertyName, "camel case", "pascal case")%
%endIf%

js.key($attName).value($attName);
[/size]

Result example:
js.key("id").value(id);

Thanks
Szakika

Nabil

  • EA User
  • **
  • Posts: 149
  • Karma: +5/-2
    • View Profile
    • View My LinkedIn Profile Here
Re: Transformation template - JAVA
« Reply #1 on: April 15, 2013, 09:36:07 pm »
use %qt%

Code: [Select]
$temp=%qt%+%attName%+%qt%
// js.key($temp).value(%attName%)


Result:
private int ID// js.key("ID").value(ID);
Nabil