Book a Demo

Author Topic: Tagged Value types - BitField  (Read 5175 times)

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Tagged Value types - BitField
« on: September 19, 2009, 10:28:08 pm »
I think it would be really useful to create the equivalent of a BitField type for Tagged values - an extension of the Enum where more than one of the Enumeration Literals can be specified for the value itself.

As an example,I'd like to be able to create a Tagged value called CRUD_Access whose values can be any combination of the values: C, R, U, D.

The definition might look like:
Type=BitField;
Values=C,R,U,D;
Default=R,U;

Thoughts? Votes?
Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Tagged Value types - BitField
« Reply #1 on: September 20, 2009, 12:05:19 am »
Certainly there should be the ability to use enumerations (not the EA or UML data type interpretation) for tagged values. The concept of a bit field (i.e. something that can be OR'ed together) could be an option for enumerations (or another tagged value type).
No, you can't have it!

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Tagged Value types - BitField
« Reply #2 on: September 21, 2009, 03:54:45 pm »
Gets my vote.

Geert