the second parameter is used to indicate if you want the parameter type to be included in the list. So false say we do not want type to appear.
In this case the helper generate a call to the getter method.
To generate a list of parameters to use when calling a given method, you can try getOperationParametersName on a operation object.
Yes, you can extend the helper class and provide your own facilities. This class must be named in the repository tag in your ant build file.
For example :
<repository classname="org.andromda.core.mdr.MDRepositoryFacade" transformClassname="fr.argia.andromda.helper.AndroMDAArgiaHelper"/>
Xavier
Thorsten Lamby wrote:
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
------------------------------------------------------- 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
