java.util.List types or arrays. A list can include any other
type including another list or array type.
Handling of multi-dimensional arrays has not been considered. Such properties
are probably best defined with a custom org.oddjob.arooa.ArooaValue.
| elementType | The required element type. |
| merge | If the element is a list or array the values are merged into this list. |
| unique | Ensures the list contains only unique elements. |
| values | Any values. |
| Example 1 | A simple list of things. |
| Example 2 | A Merged list. |
| Configured By | ELEMENT |
| Access | READ_WRITE |
| Required | No. Elements will be left being what they want to be. |
The required element type. If this is specified all elements of the array will attempt to be converted to this type.
| Configured By | ATTRIBUTE |
| Access | READ_WRITE |
| Required | No, defaults to not merging. |
If the element is a list or array the values are merged into this list.
| Configured By | ATTRIBUTE |
| Access | READ_WRITE |
| Required | No. |
Ensures the list contains only unique elements.
| Configured By | ELEMENT |
| Access | READ_WRITE |
| Required | No. |
Any values.
A simple list of things.
<list id="list">
<values>
<value value="Hello World"/>
<value value="Goodbye World"/>
<list>
<values>
<value value="I'm in another list"/>
</values>
</list>
</values>
</list>
A Merged list. This list merges a plain value, a sub list and and array which is Oddjobs command line arguments.
<oddjob id="this">
<job>
<sequential>
<jobs>
<variables id="vars">
<aList>
<list merge="true">
<values>
<value value="apples"/>
<list>
<values>
<value value="oranges"/>
<value value="bananas"/>
</values>
</list>
<value value="${this.args}"/>
</values>
</list>
</aList>
</variables>
<foreach>
<values>
<value value="${vars.aList}"/>
</values>
<configuration>
<xml>
<foreach id="loop">
<job>
<echo>${loop.current}</echo>
</job>
</foreach>
</xml>
</configuration>
</foreach>
</jobs>
</sequential>
</job>
</oddjob>