list

Description

A list provides a way of setting properties that are either 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.

Properties

NameDescriptionRequired
values The elements of the list. No.
merge If the element is a list or array the values are merged into this list. No.
unique Ensures the list contains only unique elements. No.

Elements

values

Required: No.

Any values.

merge

Required: No, defaults to false.

If true then sub lists are merged in with this list..

elementType

Required: No.

The element type.

Example

 <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>
 


(c) Rob Gordon 2005 - 2009