Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 18:34 Go to next message
André Ribeiro is currently offline André Ribeiro
Messages: 48
Registered: January 2013
Member
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!


André Ribeiro
IST Lisbon
Portugal
Re: [Acceleo] Java Service Wrapper method with Set as argument [message #1076021 is a reply to message #1065625] Tue, 30 July 2013 14:33 Go to previous message
Stephane Begaudeau is currently offline Stephane Begaudeau
Messages: 406
Registered: April 2010
Location: Nantes (France)
Senior Member

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: Tue Sep 16 21:46:42 GMT 2014

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

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