Book a Demo

Author Topic: How to add value for the attributes  (Read 2645 times)

Ase4ka

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
How to add value for the attributes
« on: August 03, 2012, 12:40:45 am »
Hello!

Please help, does anybody knows how to specify values (more than 1 meaning) for the attribute, for example for an attribute type "list" i need to specify several values like "Escalated" "Not escalated", etc...
where to put these meanings?

list type was created via Settings-Code Datatypes for Java

thank you in advance

Paul Lotz

  • EA User
  • **
  • Posts: 248
  • Karma: +1/-0
    • View Profile
Re: How to add value for the attributes
« Reply #1 on: August 03, 2012, 02:54:38 am »
If I understand what you are trying to do (I'm not sure about this!), then what you can do is create an Enumeration "List" that has the values "Escalated", "NotEscalated", and so on.  (In that case do not create List as a type in Settings-Code Datatypes for Java, since this is an Enumeration, not a primitive.)  Then a class can have an attribute of type List.