Creates a parallel iterator element.
Element Information
| Element class | ParallelIteratorConfig |
| Implementation class | ParallelIterator |
| Nested elements | iterator, collection, or constants |
Attributes
The dm:parallel element supports the same attributes as
iterator, and also:
| Name | Type | Required | Description |
|---|---|---|---|
| done | String | no |
Possible values are all and any. If all, then hasNext()
returns true when all nested iterators are done. If any, then hasNext()
returns true when any nested iterator is done. The default is all.
|
| repeatAll | boolean | no | If true, sets the repeat flag to true for all nested iterators. |
Examples
<!-- creates a list of objects, where each object has an int and a string value --> <dm:parallel done="any" id="building"> <dm:ints range="[1]" id="pk"/> <dm:strings id="name">Faculty Building, Bestof Hall, Sunset Towers</dm:strings> </dm:parallel>