Sparx Systems Forum

Enterprise Architect => General Board => Topic started by: Rollie on January 28, 2009, 02:18:26 pm

Title: Get Relationship type for Linked Attribute
Post by: Rollie on January 28, 2009, 02:18:26 pm
I need to be able to obtain the relationship type, aggregation or association, from a custom Linked Attribute transformation template.  Does anyone know if this is possible?
Title: Re: Get Relationship type for Linked Attribute
Post by: Eve on January 29, 2009, 08:21:28 am
No.

If you want that information you'll need to use the connector template.
Title: Re: Get Relationship type for Linked Attribute
Post by: Rollie on January 29, 2009, 08:51:42 am
Thanks Simon.  I have been working on this one all day and just before you posted found out that I instruct the Class template to call the Connector template from within the class.  I need this information for a getter of the source class.  I was going by the standard Java template which used the LinkedAttribute template and did not think about switching in a custom Connector template within the class.  Thanks again.
Title: Re: Get Relationship type for Linked Attribute
Post by: Eve on January 29, 2009, 08:58:13 am
No problems.

Just remember, to get to the connectors, you can't directly call the connector template.  You have to call a list over the connectors.
Title: Re: Get Relationship type for Linked Attribute
Post by: Rollie on January 29, 2009, 09:01:10 am
Yes. I tried calling Connectors several days ago and realized it would not work.  Tried doing the list over the connectors today and it works great.