Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - Paolo F Cantoni

Pages: 1 ... 74 75 [76]
1126
StereotypeEx is described in the Element automation help as: Read/Write. Returns all the applied stereotypes of the element in a comma-separated list .  Unfortunately, this is NOT true as it is always empty. ???  
To get the list of stereotypes you need: GetStereotypeList (), described (interestingly) as: Returns a comma-separated list of stereotypes allied to this element.

Has anybody used StereotypeEx to set the additional Stereotypes (I'm not yet doing so - since my current focus is on emitting the model, not modifying it).

The reason I'm asking is that although undocumented in the Help file,  Attributes and Methods also have StereotypeEx attributes.  Since you can't set these multiple attributes via the UI, I'm interested in setting and retrieving these via automation.

Perhaps a kind Sparxian will fill us in with the facts of the case?

Cheerz,
Paolo

Apparently, with this post, I'm deemed a GURU!  (500 posts...)  (It's amazing what a series of complaints and questions will get you...)
 


1127
When is an inner class not an inner class?
When it's connected to the parent class by a nesting relationship!

Create a class, create another class, link the first to the second via a nesting relationship.  Try to generate code for the "nested" (inner) class.  The UI will (correctly) tell you: "Generation of code for inner classes is only supported through generating the outer class"

Generate code for the outer calls, and the inner class is generated... So far so good.

The problem is that if you get a list of inner elements via the automation interface, this inner class is not listed.

Now, before I report this as a bug, can anyone confirm that (in their view) the nested class should be treated as a more normally created inner class.

Also, even for normal inner classes, they are exposed both as a class of their own and as an inner class.  As I'm emitting this information under my control, do people think I should repeat the class information or make the inner class a link to the other copy of the class.

(Recall that if we accept the nesting relationship, the linked class may be in an entirely different part of the model and may not be in the set of classes to be emitted)

Also, since it is possible to nest a class in more than one parent what does that do to things?

Cheerz,
Paolo

1128
Automation Interface, Add-Ins and Tools / Feature linked Note - How
« on: August 13, 2005, 09:47:45 pm »
I can get hold of the Note, and I can get hold of the Note Link with Automation, but I can't see how to get hold of the fact that the note may or may not be linked to an element feature.

Has anybody figured out how to do it?

Cheerz,
Paolo

1129
Hi,

In the automation interface, how can I get access to the Class parameters or arguments?  I can detect if they exist by using the Subtype, but I can't see how to get at them...

I'm talking about the properties available as ClassParameter and classArgument in the CTF.

Thanx,
Paolo

1130
As I'm mentioned in other posts, I'm working on emitting my conceptual models as an XML file from EA (initially via CTF and now) by the Automation Interface.

From my perusal and the (limited) experience so far, it seems pretty straight forward.  However, cautious soul that I am, I'm asking if there are any known "gotchas" or weirdness in traversing and collecting the model for emission?

This will save a lot of time diagnosing problems that aren't caused by my code.  Because of the Cantoni  Effect - if there's a bug in a particular area, I'll expose it within 5 minutes (makes me a GREAT tester ;D) (just ask the Sparxians ;)) - if the gotchas are there, I'll hit them.

With gratitude in advance ,
Paolo

1131
HI,

A (admittedly quick) perusal of the EA Help and a search of this forum doesn't show how to access inner classes via the Automation Interface.  I can get them OK with the CTF, but I'm now moving on to the AI.

Can anyone help?

Cheerz.
Paolo

1132
Is there any way to emit the list of Tagged Values for an element as name-value pairs using CTF (other than explicitly handling each known one via the Tagged Value macros?  ???

Cheerz,
Paolo

Pages: 1 ... 74 75 [76]