Yes, thanks.
It worked fine.

Am I right, that $transform.getAttributesAsList($super, false, false) NOT
returns the attribute names
like "id, name, ..." for the superclass, but the getter methods? Is this a
bug or did I made a mistake?
Reading the documentation I thought, a list of attribute names like shown
above should be returned.
Now I built the string for the superclass attributes to pass in super(...);
on my own using #foreach and
so on, but I think it would be better to use a method of the transform
object.
Is it possible to expand those functionality with own Java classes or can I
only use macros?



> Hi,
> in our template we use :
> 
> 
> #set ($super = $transform.getGeneralization($class))
> #if($super)
> public class ${class.name} extends $super.name
> #else
> public class ${class.name}
> #end
> 
> 
> Hope that help.
> 
> Xavier
> 
> 
> Herve Tchepannou wrote:
> 
> >How can I get the superclass from a template?
> >is there something like $class.superclass?
> >
> >
> >
> >-------------------------------------------------------
> >This SF.net email is sponsored by: SF.net Giveback Program.
> >Does SourceForge.net help you be more productive?  Does it
> >help you create better code?  SHARE THE LOVE, and help us help
> >YOU!  Click Here: http://sourceforge.net/donate/
> >_______________________________________________
> >Andromda-user mailing list
> >[EMAIL PROTECTED]
> >https://lists.sourceforge.net/lists/listinfo/andromda-user
> >
> >
> >  
> >
> 
> 
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: SF.net Giveback Program.
> Does SourceForge.net help you be more productive?  Does it
> help you create better code?  SHARE THE LOVE, and help us help
> YOU!  Click Here: http://sourceforge.net/donate/
> _______________________________________________
> Andromda-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/andromda-user
> 

-- 
Neu bei GMX: Preissenkung f�r MMS-Versand und FreeMMS!

Ideal f�r alle, die gerne MMS verschicken:
25 FreeMMS/Monat mit GMX TopMail.
http://www.gmx.net/de/cgi/produktemail

+++ GMX - die erste Adresse f�r Mail, Message, More! +++



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
Andromda-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/andromda-user

Reply via email to