1
Automation Interface, Add-Ins and Tools / How to access connector filelds in Code Templates?
« on: September 06, 2005, 03:48:45 am »
I have started writing my own Code Templates. 
When writing code for the 'Linked Attribute' template, I would like to access the information whether the associated Class is linked by Aggregation or not. While there are field substitution macros for the cardinality (linkCard) and several other link-related information, there doesn't seem to be one that indicates whether the association is an Aggregation or not.
However, there are field substitution macros connectorSourceAggregation and connectorDestAggregation, however, when I use them from within the 'Linked Attribute' template, they always return empty strings. Unfortunately the CTF Documentation doesn't seem to tell anything about how to use these connector-related field attributes. Am I overlooking something here?
cheers,
-markus

When writing code for the 'Linked Attribute' template, I would like to access the information whether the associated Class is linked by Aggregation or not. While there are field substitution macros for the cardinality (linkCard) and several other link-related information, there doesn't seem to be one that indicates whether the association is an Aggregation or not.
However, there are field substitution macros connectorSourceAggregation and connectorDestAggregation, however, when I use them from within the 'Linked Attribute' template, they always return empty strings. Unfortunately the CTF Documentation doesn't seem to tell anything about how to use these connector-related field attributes. Am I overlooking something here?

cheers,
-markus