01: package org.geotools.wms.v1_1_1.bindings;
02:
03: import java.util.HashMap;
04: import java.util.Map;
05:
06: import javax.xml.namespace.QName;
07:
08: import org.geotools.xml.AbstractComplexBinding;
09: import org.geotools.xml.ElementInstance;
10: import org.geotools.xml.Node;
11:
12: /**
13: * Binding object for the type :_ContactPersonPrimary.
14: *
15: * <p>
16: * <pre>
17: * <code>
18: * <xs:complexType name="_ContactPersonPrimary">
19: * <xs:sequence>
20: * <xs:element ref="ContactPerson"/>
21: * <xs:element ref="ContactOrganization"/>
22: * </xs:sequence>
23: * </xs:complexType>
24: *
25: * </code>
26: * </pre>
27: * </p>
28: *
29: * @generated
30: */
31: public class _ContactPersonPrimaryBinding extends
32: AbstractComplexBinding {
33:
34: /**
35: * @generated
36: */
37: public QName getTarget() {
38: return WMSV1_1_1._ContactPersonPrimary;
39: }
40:
41: /**
42: * <!-- begin-user-doc -->
43: * <!-- end-user-doc -->
44: *
45: * @generated modifiable
46: */
47: public Class getType() {
48: return Map.class;
49: }
50:
51: /**
52: * <!-- begin-user-doc -->
53: * <!-- end-user-doc -->
54: *
55: * @generated modifiable
56: */
57: public Object parse(ElementInstance instance, Node node,
58: Object value) throws Exception {
59: HashMap ret = new HashMap();
60: ret.put("ContactPerson", node.getChildValue("ContactPerson"));
61: ret.put("ContactOrganization", node
62: .getChildValue("ContactOrganization"));
63: return ret;
64: }
65:
66: }
|