Sparx Systems Forum

Enterprise Architect => General Board => Topic started by: Jeanluc on April 14, 2005, 06:41:53 am

Title: Private getter/setter
Post by: Jeanluc on April 14, 2005, 06:41:53 am
Hi,

When I generate getter/setter property , the default scope is public. Is it possible to set private in default ?

Regards,

Jean-Luc !
Title: Re: Private getter/setter
Post by: mikewhit on April 14, 2005, 08:27:15 am
I thought usually the point of a getter/setter was to be a public interface ...? but don't let this stop you asking the question !

I can imagine you might want to manage access to an attribute even among private functions/methods.
Title: Re: Private getter/setter
Post by: Jeanluc on April 14, 2005, 09:53:13 am
If I need to generate private getter/setter, it's to manage delphi property access.  But perhaps is it a better method to generate delphi property ?

Title: Re: Private getter/setter
Post by: Eve on April 14, 2005, 03:13:18 pm
No, there isn't any way to set the default scope for properties to anything other than public.

Simon