Author Topic: Hide attribute type  (Read 3188 times)

Dani

  • EA User
  • **
  • Posts: 36
  • Karma: +0/-0
    • View Profile
Hide attribute type
« on: October 06, 2004, 07:50:44 am »
In a class diagram, is it possible to hide the attribute type ? The reason I ask is because I am using a stereotyped class to show enumerations. Each enumerated value is entered as an "attribute". I am not particularly interested in showing the attribute types as these are decided by the compiler and I have no control over them.

Bruno.Cossi

  • EA User
  • **
  • Posts: 803
  • Karma: +0/-0
    • View Profile
Re: Hide attribute type
« Reply #1 on: October 06, 2004, 08:40:07 am »
Hi,

bot sure if you can hide the attribute types on a selected class, but for your specific example, I do not see a reason why would you enter the attribute types on the <<enumeration>> stereotyped class at all. It might be better simply to remove the types from the attribute definition rather than hiding it.

Bruno

Dani

  • EA User
  • **
  • Posts: 36
  • Karma: +0/-0
    • View Profile
Re: Hide attribute type
« Reply #2 on: October 06, 2004, 09:13:45 am »
Bruno,

Thanks a lot, that does it.

The confusion came because when I click "New" to enter a new attribute the type defaults to "int". Basically I just have to remember to leave the type field blank.

Thanks again.