Book a Demo

Author Topic: Classes cannot be moved "under" an inter  (Read 3491 times)

El Bini

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Classes cannot be moved "under" an inter
« on: May 15, 2012, 05:58:37 am »
Version 9.2; build 921:

Classes cannot be moved "under" an interface. Generally speaking Interface doesn't support nested classifier.
According to the UML meta-model (formal/2011-08-06, verion 2.4.1) this is allowed (see meta-class "Interface (from Interfaces)", association "nestedClassifier").
« Last Edit: May 15, 2012, 05:59:14 am by tbinias »

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Classes cannot be moved "under" an inter
« Reply #1 on: May 15, 2012, 07:23:16 am »
What are you doing? There's no problem nesting a class into an interface.

q.

El Bini

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: DataTypes cannot be moved "under" an inter
« Reply #2 on: May 15, 2012, 03:17:28 pm »
Sorry, my mistake!
It does work with classes but not with data types.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Classes cannot be moved "under" an inter
« Reply #3 on: May 15, 2012, 11:02:20 pm »
So what is a Data Type then?

q.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Classes cannot be moved "under" an inter
« Reply #4 on: May 16, 2012, 03:19:50 pm »
From the UML (2.4.1) specs:

Quote
7.3.11 DataType (from Kernel)
A data type is a type whose instances are identified only by their value. A DataType may contain attributes to support the
modeling of structured data types.
A typical use of data types would be to represent programming language primitive types or CORBA basic types. For
example, integer and string types are often treated as data types.

And indeed EA tells me "The requested move is not supported" when I try to move a datatype under another element. I would ask Sparx support about this, because it looks like a bug to me.

Geert