Book a Demo

Author Topic: Generalization Set - API?  (Read 4198 times)

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Generalization Set - API?
« on: May 16, 2016, 05:09:29 pm »
Before I submit a feature request, I just wanted to confirm there's no way to retrieve Generalization Set information via the API?

I want to use a shapescript to just put out the generalization set name (without the stereotype name).  There doesn't seem to be any way to do it.

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

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: Generalization Set - API?
« Reply #1 on: May 17, 2016, 08:19:14 am »
By SQL. Have a look in t_xref where Behavior='generalizationSet'
The Sparx Team
[email protected]

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Generalization Set - API?
« Reply #2 on: May 17, 2016, 09:30:56 am »
By SQL. Have a look in t_xref where Behavior='generalizationSet'
Thanks KP,

I already knew that.  I was asking about the API so I could get at it via a shapescript.  I don't want to have to write an add-in to return a value to the shapescript, if there's something coming down the line.

In particular, the generalization set name is ALREADY returned in one of the labels.  But:
1. It's joined like a "Siamese twin" to the stereotype - without an intervening space (so text wrap is problematic)
2. You can't suppress the stereotype in the label.

I'd just like a shapescript connector property that returned just the Generalization Set name.

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