On Mon, 2003-06-23 at 15:40, [EMAIL PROTECTED] wrote: > I am currently using AndroMDA to model some Struts screens. Seeing that the > XXXForm and XXXPage classes have the same attributes most of the time, I > thought it might be a wise idea to create a superclass containing all the > private attributes and have the XXXForm and XXXPage classes inherit from > this class (I call it XXXAttributes). > > But when I ran the model through AndroMDA, no attributes were discovered at > all. So, I am wondering whether I only can get a list of *direct* attributes > or if there is a way to also get the inherited attributes.
I thought the whole point of private, rather than protected, scope was that it's only visible from within the class itself? That's certainly the case in java, though I don't know if UML treats it any differently (still getting to grips with it myself). At any rate, it doesn't greatly surprise me that your Form & Page subclasses can't see private methods in a superclass. If I were doing it, I'd have either made them protected (if I wanted to reference them directly) or included protected/public getters & setters so I can access them via those. Andrew. ------------------------------------------------------- This SF.Net email is sponsored by: INetU Attention Web Developers & Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php _______________________________________________ Andromda-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/andromda-user
