I would expect public getter and setters.

Since I understand one of the bad practices people are trying to avoid id to access attributtes directly ( SomeClass.Atribute).

Im I wrong?

Diego Bendlin
PricewaterhouseCoopers - Advisory
Asunción - Paraguay
Phone  : +595  21 445-003 ext. 1314
Mobile : +595 991 744-220




Jan Heise <[EMAIL PROTECTED]>

15/03/2005 09:37

       
        To:        Diego Bendlin/PY/ABAS/[EMAIL PROTECTED]
        cc:        "'Andromda User'" <andromda-user@lists.sourceforge.net>
        Subject:        Re: [Andromda-user] ValueObjects



Hi Diego,

I don't know if I understand your question correctly, but
my generated ValueObjects all have private attributes that are accessed
by mutators that have the visibility I modeled on the attributes.

I think this is also the pattern that's followed for code generation.

How is your code different from that? What would you expect?


Jan
Am 15.03.2005 um 14:11 schrieb [EMAIL PROTECTED]:

>
> Chad,
>
> You are not answerin g my question, I understand the modeling
> constrain of AndroMDA regarding the generation of ValueObject.
>
> The question was, why is code genereted that way? are you followin
> some kind of pattern?
>
> Isn't it more natural to have private attributes acceced by public
> mutators (getter and setters)?
>
> Vielen Dank!
>
> Diego Bendlin
>  PricewaterhouseCoopers - Advisory
>  Asunción - Paraguay
>  Phone  : +595  21 445-003 ext. 1314
>  Mobile : +595 991 744-220
>
> <image.tiff>
>
>
>
>
> Chad Brandon <[EMAIL PROTECTED]>
> Sent by: [EMAIL PROTECTED]
>
> 14/03/2005 14:46
>
>        
>         To:        Diego Bendlin/PY/ABAS/[EMAIL PROTECTED]
>         cc:       [EMAIL PROTECTED]
>         Subject:        Re: [Andromda-user] ValueObjects
>
>
>
> [EMAIL PROTECTED] wrote:
>
>  >
>  > Hello,
>  >
>  > I have a question, is Value Object generation in AndroMDA based on
>  > some pattern?
>  > Why are getter and setter method generated with the same visibility
>  > than attributes?
>  >
>  Because the attributes themselves are always private...the visibiltiy
>  reflects the getter and setter visibility.
>
>  > Thanks a Lot!
>  >  
>  > *Diego Bendlin*
>  > PricewaterhouseCoopers - Advisory
>  > Asunción - Paraguay
>  > Phone  : +595  21 445-003 ext. 1314
>  > Mobile : +595 991 744-220
>  >
>  >
>  > _________________________________________________________________
>  > The information transmitted is intended only for the person or
> entity
>  > to which it is addressed and may contain confidential and/or
>  > privileged material. Any review, retransmission, dissemination or
>  > other use of, or taking of any action in reliance upon, this
>  > information by persons or entities other than the intended recipient
>  > is prohibited. If you received this in error, please contact the
>  > sender and delete the material from any computer.
>
>
>
>
>  -------------------------------------------------------
>  SF email is sponsored by - The IT Product Guide
>  Read honest & candid reviews on hundreds of IT Products from real
> users.
>  Discover which products truly live up to the hype. Start reading now.
>  http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
>  _______________________________________________

>  Andromda-user mailing list
>  Andromda-user@lists.sourceforge.net
>  https://lists.sourceforge.net/lists/listinfo/andromda-user
>
>
>
> _________________________________________________________________
> The information transmitted is intended only for the person or entity
> to which it is addressed and may contain confidential and/or
> privileged material. Any review, retransmission, dissemination or
> other use of, or taking of any action in reliance upon, this
> information by persons or entities other than the intended recipient
> is prohibited. If you received this in error, please contact the
> sender and delete the material from any computer.



_________________________________________________________________
The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.

Reply via email to