<put-all>

Purpose/Function

Invoke the putAll method on the java.util.Map object, which should be dereferenced from the environment (this flattens the second map into the first). If the child element or dereferenced object to be passed as the parameter to this method is not a java.util.Map, an exception will be thrown.

Attributes

NAME

TYPE

DEFAULT VALUE

DESCRIPTION

map

java.util.Map

required

map to which to add entries

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

...
<put-all map="${flat}" object="${submap}"/>
<put-all map="${flat}">
	<map>
		<map-entry key="g" string="string-value"/>		
	</map>
</put-all>
...
  • No labels