dm:list

Creates a container element.

Element Information

Element class CollectionContainerIteratorConfig
Implementation class CollectionContainerIterator
Nested elements iterator, collection, or constants

Attributes

The dm:list element supports the same attributes as iterator, and also:

Name Type Required Description
doneStringno 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.
repeatAllbooleanno 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:list done="any" name="building">
      <dm:ints range="[1]" name="pk"/>
      <dm:strings name="name">Faculty Building, Bestof Hall, Sunset Towers</dm:strings>
    </dm:values>