How pass string array[] as argument of a java service wrapper in acceleo ? [message #1786826] |
Sun, 13 May 2018 10:43  |
Eclipse User |
|
|
|
Hi guys,
i want to write a java service for doing some thing with a String array[] and i dont know how write proper query for passing String array as argument ?
This is my java service :
package modeldriven.java.services;
public class Service2 {
public String join(String [] sequence){
String output="";
for (int i = 0; i < sequence.length; i++) {
output+=sequence[i];
}
return output;
}
}
and this is the query that generated automatically for calling that service:
[comment encoding = Cp1256 /]
[module generate('http://www.MyMetaModel.com')/]
[query public join(arg0 : String[]) : String
= invoke('modeldriven.java.services.Service2', 'join()', Sequence{arg0})
/]
this query gives some errors like
Invalid Type: String[]
and
Incomplete reference to variable declaration in variable expression: (arg0)
Whats the problem ?
Thanks in advance
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03766 seconds