Book a Demo

Author Topic: Access parameter's tagged values through COM  (Read 3149 times)

deepakgoel

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Access parameter's tagged values through COM
« 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

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Access parameter's tagged values through COM
« Reply #1 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
No, you can't have it!

deepakgoel

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Access parameter's tagged values through COM
« Reply #2 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

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Access parameter's tagged values through COM
« Reply #3 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
No, you can't have it!