<objs><obj id="myId" type="my.class.Type" hint="map">...</obj><objs>
All map or dictionary like classes in Java are derived from
java.util.Map.
This class can be used to store a set of key/value pairs.
The general structure looks like this:
<obj id="myMap" type="java.util.HashMap" hint="map"> <item> <key type="java.lang.String">firstkey</key> <value type="java.lang.String">firstValue</value> </item> <item> <key type="java.lang.String">secondkey</key> <value type="java.lang.String">secondValue</value> </item> </obj>
<obj id="myMap" type="java.util.HashMap" hint="map" keytype="java.lang.String" valuetype="string"> <item> <key>firstkey</key> <value>firstValue</value> </item> <item> <key>secondkey</key> <value>secondValue</value> </item> </obj>
To specify an empty map just use an empty xml tag:
<obj id="myMap" type="hashmap" hint="map" keytype="string" valuetype="string" />
<obj id="myMap" type="hashmap" hint="map" keytype="string" valuetype="string">!NULL!</obj>