changes.mady.by.user Adrian adrianc
Saved on Apr 23, 2012
...
<set>
<set field="foo" value="bar" /> <set field="baz" from="foo" /> <!-- Field "baz" contains the string "bar" -->
Attributes
Name
Type
Requirements
Description
Notes
field
expression
required
The name of the field to set, the target of the assignment
from
expression, script
required if value is empty
An expression or script that returns an object or null
null
The script must be prefixed with the script language followed by a colon (":")
value
constant+expr
required if from is empty
A constant value
Default type = "java.lang.String"
default
constant, constant+expr, expression
optional
A default value - used if from evaluates to null
Expressions must be enclosed in ${}
type
constant
The Java data type of field
set-if-null
Controls if field can be set to null.
Defaults to "false"
set-if-empty
Controls if field can be set to an empty value. The meaning of "empty" depends on the Java data type.
Defaults to "true"
Final draft.