The <put> tag writes a key-value pair into a map. The information on the key and value can be passed within the tag with the key and value attributes or with the child elements <key> and <value>. With the help of the child tags <key> and <value>, multiple key-value pairs can be written in one map.
Attribute name |
Usage |
Attribute values |
Default value |
Description |
key |
optional |
|
|
Specifies the key of a pair. |
value |
optional |
|
|
Specifies the value of a pair. |
Example code:
<parameter name="SizesMap">
<value>
<hashMap>
<put>
<key type="" value="Height">
<value type="" value="120">
</put>
<put>
<key type="String" value="Width">
<value type="Integer" value="40">
</put>
<put>
<key type="String" value="Depth">
<value type="Integer" value="10">
</put>
</hashMap>
</value>
</parameter>