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é RibeiroFriend
Messages: 55
Registered: January 2013
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('', '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
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 BegaudeauFriend
Messages: 450
Registered: April 2010
Location: Nantes (France)
Senior Member


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


Stephane Begaudeau, Obeo

Twitter: @sbegaudeau
Google+: +stephane.begaudeau
Blog: | Eclipse Java Development Tools Tips and Tricks

Previous Topic:[Acceleo] Access to siblings of resource roots
Next Topic:[XPAND] How to run the sample project?
Goto Forum:

Current Time: Sun Apr 22 16:28:58 GMT 2018

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

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