<add-to-collection>
Purpose/Function
Invoke the add
method on the java.util.Collection
object, which should be dereferenced from the environment.
Attributes
NAME |
TYPE |
DEFAULT VALUE |
DESCRIPTION |
---|---|---|---|
collection |
|
(required) |
collection to which to add value |
See also note below.
Elements
See note below.
ReturnValues
None.
NOTE:
This class subclasses <assign>
, so the latter's attributes (excepting name and global) may be applied; the default value for configured here is true
. Child elements also function as they do for <assign>
.
Examples
... <add-to-collection collection="${nested}" long="4082934"/> <add-to-collection collection="${nested}" object="${sublist}"/> <add-to-collection collection="${nested}"> <map> <map-entry key="a" boolean="true"/> </map> </add-to-collection> ...