Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » [Acceleo] Testing for superclass and Interfaces
[Acceleo] Testing for superclass and Interfaces [message #1419327] Mon, 08 September 2014 12:40 Go to next message
Johannes Müller is currently offline Johannes MüllerFriend
Messages: 4
Registered: July 2014
Junior Member
Hello everyone. I was wondering how I have to write my if-condition in Acceleo to check if a Class Element in my UML-Modell has a superclass or if it is implementing any Interfaces.

I have already tried by myself, but the result always ended up being the same: Ending up in the branch for having a superclass even when it didn't. I'm honestly at a loss on how to proceed.
Re: [Acceleo] Testing for superclass and Interfaces [message #1435428 is a reply to message #1419327] Wed, 01 October 2014 13:25 Go to previous messageGo to next message
Stephane Begaudeau is currently offline Stephane BegaudeauFriend
Messages: 458
Registered: April 2010
Location: Nantes (France)
Senior Member

Hi,

[if (aClass.general.size() > 0)]extends[/if] and [if (not aClass.clientDependency->filter(Realization)->isEmpty()))]implements[/if].

Regards,

Stephane Begaudeau, Obeo
Re: [Acceleo] Testing for superclass and Interfaces [message #1451014 is a reply to message #1435428] Thu, 23 October 2014 07:47 Go to previous message
Johannes Müller is currently offline Johannes MüllerFriend
Messages: 4
Registered: July 2014
Junior Member
Thanks for the help. This was the last problem I had.
Previous Topic:[Acceleo] UML profile not accessible
Next Topic:[Acceleo] Any tutorials on generating java domain classes?
Goto Forum:
  


Current Time: Sat Feb 24 12:51:21 GMT 2024

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

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

Back to the top