References:
http://www.sparxsystems.com/uml_tool_guide/sdk_for_enterprise_architect/usingthetaggedvalueconnect.htmhttp://www.sparxsystems.com/downloads/whitepapers/Working_with_the_RTF_generator.pdfA UML profile has a stereotype with a taggedValue connector to another stereotype which has 3 attributes. The relationship is 1 to many, allowing many of these structured tags. The RTF Generator can insert a valueOf field which elaborates to the tagged values with valueOf{<structured tag name>}, but this displays a comma separated list of the tagged value's stereotype and top-level object name. It does not display the 3 structured tag values. How can these nested tag values be displayed? valueOf{tagField.nestedField} just returns empty. A table of these structured values is desired. The RTF Generator document (above) only covers displaying unstructured tags, on the last page of the PDF.
For a simple example, the UML profile has a stereotype Parent with a <<taggedValue>> connector to a Child stereotype with 3 attributes f1, f2, and f3. This attribute/target role in Parent to Child is named toChild. An element in a class diagram uses the Parent stereotype is able to set the value of the Parent tag (toChild) to 3 objects with the sterotype Child, named child1, child2, and child3. All of these Child objects have values for all three tags f1, f2, and f3 which correspond to the attributes defined in the UML profile's Child stereotype.
Relating to the referenced Web page above, Parent would be collection and Child is Node and the taggedValue connector role is rootNode. Although in the case under discussion rootNode (as toChild) would be 1..*.
How can the three tags on toChild (Node) be displayed? valueOf{toChild} results in <<Child>>child1, <<Child>>child2, <<Child>>child3. valueOf{toChild.f1} is empty.
How can a table be created to display all the Child tags? The table would have headings f1, f2, and f3.
Thanks in advance.
Robert Hathaway
Solutions Architect
ADP Innovation Lab