[Index]

value


A simple value. This is the most commonly used type.

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.


Property Summary

value The value.

Example Summary

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.

Property Detail

value

Configured ByATTRIBUTE
AccessREAD_WRITE
RequiredNo.

The value.


Examples

Example 1

A value that is a constant string value.

<value value="apple"/>

Example 2

A value that is a reference to a property.

<value value="${vars.fruit}"/>

Example 3

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


(c) Rob Gordon 2005 - 2017