Book a Demo

Author Topic: Difference between <<Property>> and <<property>>    (Read 5863 times)

Tryst

  • EA User
  • **
  • Posts: 41
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Difference between <<Property>> and <<property>>  
« on: December 14, 2007, 03:49:24 am »
Hi all,

on a Class in the diagram I have the two. One from when I set the 'stereotype' dropdown box to 'Property' for an attribute and the other attribute had the 'Property' set through the radio button.

On the diagram they show up differently on below the attrbutes  and the other below the methods/operations.

Hope you can clarify this for me.

Thanks
« Last Edit: December 14, 2007, 07:58:29 am by Tryst »
Tryst

hellish

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Difference between <<Property>> an
« Reply #1 on: January 24, 2008, 07:42:04 am »
I don't know what you mean exactly, but small letters are usually used by programmers for naming private properties of a class and first capital letters are used for public properties of a class.
Maybe that is the case in your situation.

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Difference between <<Property>> an
« Reply #2 on: January 24, 2008, 08:45:41 am »
Tryst,

I think you are trying to do two different things.

The drop-down allows you to put a stereotype on your attribute. This is a common thing in UML modeling, and «property» is a 'standard' stereotype for just that reason.

The check box - I think that's what you meant - is not there to provide a stereotype. It is there to get EA to create and insert the appropriate get and set methods so that your class will generate correctly. Notice that checking the box brings up a language-specific dialog box. This is so that EA can set things up correctly.

There are some settings in Tools | Options | Source Code Engineering that will affect how the methods are named and such. Take a look and play around.

HTH, David
No, you can't have it!