01: package de.schlund.pfixcore.oxm.bean;
02:
03: import java.util.HashMap;
04: import java.util.Map;
05:
06: import de.schlund.pfixcore.oxm.impl.annotation.MapSerializer;
07:
08: /**
09: * Test bean for MapSerializer
10: *
11: * @author Stephan Schmidt <schst@stubbles.net>
12: */
13: public class MapTestBean {
14:
15: public Map<String, String> myMap = new HashMap<String, String>();
16:
17: @MapSerializer(elementName="element")
18: public Map<String, String> annoMap = new HashMap<String, String>();
19:
20: public MapTestBean() {
21: this .myMap.put("one", "foo");
22: this .myMap.put("two", "bar");
23:
24: this .annoMap.put("one", "foo");
25: this .annoMap.put("two", "bar");
26: }
27: }
|