Hi Francois, You can just do this: #set ($superclass = $currentclass.generalization)
If you take a look at these javadocs, you'll see that ClassifierFacade inherits from GeneralizationFacade: http://www.andromda.org/docs/andromda-metafacades-uml/apidocs/index.html Chad ----- Original Message ----- From: "Fran�ois Eric" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, June 16, 2004 3:46 PM Subject: [Andromda-user] Generalization > Hi, > > I'm trying to get the superclasses of one of my classes in velocity > using andromda 3 and don't understand how. Here is a snippet of my code: > > #set ($generalizations = $currentclass.generalizations) > #if (!$generalizations.isEmpty()) > Generalization: $generalizations.get(0) > #end > > I can then see that the element returned is a > GeneralizationFacadeLogicImpl object. How do I get the class associated > with this generalization element? I have looked in the javadoc and > can't find a method that would help me out. > > Thanks, > > Francois > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference > Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer > Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA > REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND > _______________________________________________ > Andromda-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/andromda-user ------------------------------------------------------- This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND _______________________________________________ Andromda-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/andromda-user
