Skip to main content



      Home
Home » Modeling » M2T (model-to-text transformation) » [Acceleo] Java Service Wrapper method with Set as argument
[Acceleo] Java Service Wrapper method with Set as argument [message #1065625] Wed, 26 June 2013 14:34 Go to next message
Eclipse UserFriend
Hello everyone,

I need to create this method in my java service wrapper:
public Set<String> getJointAssociationName(List<Class> lst)
{
...
}

Then, I don't know how to declare it in the respective module.
I've tried several ways but it keeps returning that the result is invalid.

The call of the method in my service model is the following:
[query public getJointAssociationName(lst : Set(Class)) : Set(String) = 
	invoke('xismobile.pim.uml2.gen.android.services.Services', 'getJointAssociationName(java.util.List)', Sequence{Set{lst}})
/]


I have several doubts in the part 'getJointAssociationName(java.util.List)', Sequence{Set{lst}}).
Can anyone help me?

Thanks in advance!
Re: [Acceleo] Java Service Wrapper method with Set as argument [message #1076021 is a reply to message #1065625] Tue, 30 July 2013 10:33 Go to previous message
Eclipse UserFriend
Hi,

From the signature of your Java method, you need a List<Class> which translate in OCL to a Sequence(Class).

Regards,

Stephane Begaudeau, Obeo

--
Twitter: @sbegaudeau
Google+: +stephane.begaudeau
Blog: http://stephanebegaudeau.tumblr.com | Eclipse Java Development Tools Tips and Tricks
Previous Topic:[acceleo]Export .mtl files
Next Topic:Acceleo query no cache
Goto Forum:
  


Current Time: Mon Nov 03 14:29:16 EST 2025

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

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

Back to the top