[Uml-devel] Friend permissions between classes

Oliver Kellogg Oliver.Kellogg at t-online.de
Wed Aug 6 13:47:07 UTC 2003


Jonathan Riddell wrote:
> > > This is a first tender preparation for a big *Widget/
> > > *WidgetData cleanup where the WidgetData classes only
> > > serve as the base classes for the Widget classes, but
> > > there would not exist any WidgetData objects - only
> > > Widget objects.
>
> Parse error on sentence.  
>
> The WidgetData classes are base classes but there would not exist any
> WidgetData classes

I didn't explain well. You guessed correctly that I meant to say,
the Widget classes should inherit from the WidgetData classes.
By "WidgetData objects" I meant to say _instances_ of the
WidgetData classes.

> Do you mean it's a two step move where WidgetData classes are base
> classes then are got rid of altogether?

The argument data type at loadFromXMI/saveToXMI and clipboard
methods could perhaps continue to be WidgetData, but the actual
arguments supplied on their invocation would also be Widget objects
(um, instances.)
Other than that, the WidgetData types could practically disappear
from the code.

Oliver





More information about the umbrello-devel mailing list