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 :_Capability.
14: *
15: * <p>
16: * <pre>
17: * <code>
18: * <xs:complexType name="_Capability">
19: * <xs:sequence>
20: * <xs:element ref="Request"/>
21: * <xs:element ref="Exception"/>
22: * <xs:element minOccurs="0" ref="UserDefinedSymbolization"/>
23: * <xs:element minOccurs="0" ref="Layer"/>
24: * </xs:sequence>
25: * </xs:complexType>
26: *
27: * </code>
28: * </pre>
29: * </p>
30: *
31: * @generated
32: */
33: public class _CapabilityBinding extends AbstractComplexBinding {
34:
35: /**
36: * @generated
37: */
38: public QName getTarget() {
39: return WMSV1_1_1._Capability;
40: }
41:
42: /**
43: * <!-- begin-user-doc -->
44: * <!-- end-user-doc -->
45: *
46: * @generated modifiable
47: */
48: public Class getType() {
49: return Map.class;
50: }
51:
52: /**
53: * <!-- begin-user-doc -->
54: * <!-- end-user-doc -->
55: *
56: * @generated modifiable
57: */
58: public Object parse(ElementInstance instance, Node node,
59: Object value) throws Exception {
60: HashMap ret = new HashMap();
61: ret.put("Request", node.getChildValue("Request"));
62: ret.put("Exception", node.getChildValue("Exception"));
63: ret.put("UserDefinedSymbolization", node
64: .getChildValue("UserDefinedSymbolization"));
65: ret.put("Layer", node.getChildValue("Layer"));
66: return ret;
67: }
68:
69: }
|