Looping (Non Connector)
When you want to retrieve the children elements from a querying model element / diagram, write a loop element.
<IterationBlock>
Retrieve elements from project / model element / diagram. By iterating over project and model element, a list of model element will be returned. By iterating over diagram, a list of diagram element will be returned. The following example show the use of <IterationBlock> in a template.
<Property property="name"/>
<ParagraphBreak/>
</IterationBlock>
Here is the outcome of the example above.
Account
AccountManager
Transaction
AccountController
The following table lists the available attributes of <IterationBlock>.
|
||||||||||||||||||||||||||||||||||||
Attributes of <IterationBlock> |
<ForEach>
Retrieve model elements from a model element's property. The following example show the use of <ForEach> in a template.
<Property property="name"/>
<ParagraphBreak/>
</ForEach>
Here is the outcome of the example above.
ORM Persistable
The following table lists the available attributes of <ForEach>.
|
||||||||||||
Attributes of <ForEach> |
<ForEachSubDiagram>
Retrieve sub-diagram(s) from a model element. For example, retrieve sub-sequence-diagrams from a controller class. Note that you can only use <ForEachSubDiagram> to retrieve sub-diagram(s) of model element. If you want to retrieve diagrams from project, use <ForEachDiagram> instead.
The following table lists the available attributes of <ForEachSubDiagram>.
|
||||||||||||
Attributes of <ForEachSubDiagram> |
<ForEachDiagram>
Retrieve diagram(s) from project. Like other for-each elements, you can specify the type of diagram to retrieve. For example, retrieve all class diagrams from project. Note that you can only use <ForEachDiagram> to retrieve diagram from project. If you want to retrieve sub-diagrams from model element, use <ForEachSubDiagram> instead.
The following table lists the available attributes of <ForEachDiagram>.
|
|||||||||||||||
Attributes of <ForEachDiagram> |
<ForEachOwnerDiagram>
Retrieve the diagram(s) that owns a specific model element. For example, class diagram "Domain Diagram" and "Security" both contain class "Login" (same model element), by applying <ForEachOwnerDiagram> on the "Login" class, diagram "Domain Diagram" and "Security" will be returned.
The following table lists the available attributes of <ForEachOwnerDiagram>.
|
||||||||||||
Attributes of <ForEachOwnerDiagram> |
Related Resources
The following resources may help you to learn more about the topic discussed in this page.
3. Text and Property | Table of Contents | 5. Looping (Connector) |