A value can be:
The ValueType value is expected to be an org.oddjob.arooa.ArooaValue
. This ensures
that references to other types aren't converted until the ValueType
itself is converted. Because of this, simple values will be wrapped
as an org.oddjob.arooa.types.ArooaObject
by the automatic internal conversion. For
normal use this is entirely transparent. An example below demonstrates
this.
value | The value. |
Example 1 | A value that is a constant string value. |
Example 2 | A value that is a reference to a property. |
Example 3 | Examining the internals of a value in Oddjob. |
Configured By | ATTRIBUTE |
Access | READ_WRITE |
Required | No. |
The value.
A value that is a constant string value.
<value value="apple"/>
A value that is a reference to a property.
<value value="${vars.fruit}"/>
Examining the internals of a value in Oddjob.
<oddjob> <job> <sequential> <jobs> <variables id="vars"> <fruit> <value value="apple"/> </fruit> </variables> <echo>${vars.fruit} ${vars.fruit.class} ${vars.fruit.value} ${vars.fruit.value.class} ${vars.fruit.value.value} ${vars.fruit.value.value.class}</echo> </jobs> </sequential> </job> </oddjob>The output is:
apple class org.oddjob.arooa.types.ValueType apple class org.oddjob.arooa.types.ArooaObject apple class java.lang.String