Author Topic: Access to element->advanced->Parent in SDK  (Read 4158 times)

Chris Tatem

  • EA User
  • **
  • Posts: 30
  • Karma: +0/-0
    • View Profile
Access to element->advanced->Parent in SDK
« on: April 24, 2013, 12:36:32 am »
I am trying to access the value/type of a relation that I can see from a model element that is in a diagram.  If I right click on that element->advanced-Parent, I get a dialog "Set Parents and Interfaces."  In this dialog there is a list of Relations under the heading Type Details.  There is also a check box that says to "Accept classifier if not in model."

I have elements that have a 'row' there, but through the SDK I can't seem to find this information... the row values are:
Classifier: normalizedString
Type: generalizes
Owned: No
Package: <none>
So I assume (and confirmed) that normalizedString is not an element in my model.

This got populated via an import of a WSDL, and the element is stereotyped as <XSDtopLevelElement> if that matters (I have removed the stereotype and the parent relation remains). The XSDtopLevelElement properties (double click on the element) show 'normalizedString' as the XSD elment type.

I've tried things like connectors (there are none), RelationSets, classifierType/Name all to no avail.  Any ideas?  (Note: I can't seem to find this from EA using the the UML view of the elements properties either...)

cwt

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Access to element->advanced->Parent in S
« Reply #1 on: April 24, 2013, 01:03:02 am »
The Advanced Parent elements are those connected through Element.Connectors where the connector is a Generalization or a Realization.

q.
« Last Edit: April 24, 2013, 01:05:57 am by qwerty »

Chris Tatem

  • EA User
  • **
  • Posts: 30
  • Karma: +0/-0
    • View Profile
Re: Access to element->advanced->Parent in SDK
« Reply #2 on: April 24, 2013, 02:06:05 am »
This seems to be true if the Generalization/Realization is an actual Element, if it's not an element, there don't appear to be "real" connectors (as Elements).  This happens when the "Accept classifier if not in model" is checked/set.

Curious as to where that string (in my example normalizedString) is stored.  In both cases, that string (classifier name) appears in the element on the diagram - so it's there somewhere!

cwt



qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Access to element->advanced->Parent in SDK
« Reply #3 on: April 24, 2013, 04:48:12 am »
Check the genlinks property of the element.

q.

Chris Tatem

  • EA User
  • **
  • Posts: 30
  • Karma: +0/-0
    • View Profile
Re: Access to element->advanced->Parent in SDK
« Reply #4 on: April 25, 2013, 02:49:01 am »
That's it!  Thank you.

Chris