Author Topic: mdgtype,meta class, base class  (Read 5308 times)

Viking

  • EA User
  • **
  • Posts: 453
  • Karma: +2/-2
    • View Profile
mdgtype,meta class, base class
« on: February 16, 2017, 02:13:35 am »
Hello,
(1) does anybody know how to find out the mdgtype of a diagram (without db-query)?
(2) does anybody know how to find out the metaclass of a element (without db-query)t?
(3) could some point me to a description of base clase (see UML types. Not the base class for inheritance)?
Many thanks in advance, V.

« Last Edit: February 16, 2017, 05:22:21 pm by Viking »

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +54/-3
    • View Profile
Re: mdgtype,meta class, base class
« Reply #1 on: February 17, 2017, 08:53:44 am »
(1) does anybody know how to find out the mdgtype of a diagram (without db-query)?
Scripting. Try inspecting the EA.Diagram.MetaType value

Quote
(2) does anybody know how to find out the metaclass of a element (without db-query)t?
Scripting. Try inspecting the EA.Element.MetaType value

Quote
(3) could some point me to a description of base clase (see UML types. Not the base class for inheritance)?
Sorry, don't understand the question.
The Sparx Team
[email protected]

Viking

  • EA User
  • **
  • Posts: 453
  • Karma: +2/-2
    • View Profile
Re: mdgtype,meta class, base class
« Reply #2 on: February 17, 2017, 05:58:47 pm »
(1) does anybody know how to find out the mdgtype of a diagram (without db-query)?
Scripting. Try inspecting the EA.Diagram.MetaType value
Quote
(2) does anybody know how to find out the metaclass of a element (without db-query)t?
Scripting. Try inspecting the EA.Element.MetaType value
Quote
(3) could some point me to a description of base clase (see UML types. Not the base class for inheritance)?
Sorry, don't understand the question.
Many thanks.

Wouldn't it be helpful showing these information ([1] and [2]) in the properties-sheet?

To [3]: with base-class I am talking about Project > Settings > UML types (the term base class in the document is also used for decribing inheritance. Or does base class for Sterotypes has something to doe with inheritance?).

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8607
  • Karma: +257/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: mdgtype,meta class, base class
« Reply #3 on: February 17, 2017, 06:19:08 pm »
Hi Viking,

If you are talking about the "base class" in the stereotype page of the UML types dialog, it is misnamed.  It should be captioned: "Metaclass to which to apply this stereotype".   You can define more than one stereotype with the same name and apply each to a different metaclass.  You may even note that you can apply it to "<All>", but not to "<Shapes>" or "<Lines>".

I don't believe it has anything (directly) to do with inheritance - since you can apply the "<All>" value.

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

Viking

  • EA User
  • **
  • Posts: 453
  • Karma: +2/-2
    • View Profile
Re: mdgtype,meta class, base class
« Reply #4 on: February 19, 2017, 10:53:40 pm »
Hi Viking,

If you are talking about the "base class" in the stereotype page of the UML types dialog, it is misnamed.  It should be captioned: "Metaclass to which to apply this stereotype".   You can define more than one stereotype with the same name and apply each to a different metaclass.  You may even note that you can apply it to "<All>", but not to "<Shapes>" or "<Lines>".
I don't believe it has anything (directly) to do with inheritance - since you can apply the "<All>" value.
HTH,
Paolo

Hi Paolo, thank you very much.

For my opinion the manuals are to short for this domain.

V