Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: deepakgoel on October 02, 2007, 05:44:37 pm

Title: Access parameter's tagged values through COM
Post by: deepakgoel on October 02, 2007, 05:44:37 pm
Hello,

In EA 6.5, you can assign tagged values to parameters of an operation.

How can I get the list of tagged values associated with a parameter using automation interface? I looked at the API and have come up empty so far.

Related question is how to access the stereotype associated with a parameter?

I'll appreciate any help.

Thanks,
Deepak
Title: Re: Access parameter's tagged values through COM
Post by: «Midnight» on October 02, 2007, 06:34:47 pm
Deepak,

First, try examining the MethodTag element associated with a method.

Second, the Attribute class exposes the Stereotype and StereotypeEx properties, similar to the Element class.

HTH, David
Title: Re: Access parameter's tagged values through COM
Post by: deepakgoel on October 02, 2007, 09:46:01 pm
Hi David,

Thanks for the reply. I had looked at MethodTag and looked at it again but this only gives tags for a method (not tags for its parameters).

The Attribute interface provides tagged values for an attribute (again has nothing to do with parameters of a method AFAIK).

Thanks,
--deepak
Title: Re: Access parameter's tagged values through COM
Post by: «Midnight» on October 03, 2007, 02:41:32 am
You certainly seem correct on this.

EA does allow you to add such a tagged value, which it assigns to an element type of OPERATION_PARAMETER. So it makes sense that we should be able to manipulate such an animal from the API. I think you should file a bug report on this. IMHO this is more than a request, it is a report of a missing (i.e. broken) feature.

If you've not already done so, please search my recent posts for a best practice we use to keep the community in the loop on bug reports or feature requests.

David