01: package org.geotools.wms.v1_1_1.bindings;
02:
03: import javax.xml.namespace.QName;
04:
05: import org.geotools.data.ows.OperationType;
06: import org.geotools.data.ows.WMSRequest;
07: import org.geotools.data.wms.WMSOperationType;
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 :_Request.
14: *
15: * <p>
16: * <pre>
17: * <code>
18: * <xs:complexType name="_Request">
19: * <xs:sequence>
20: * <xs:element ref="GetCapabilities"/>
21: * <xs:element ref="GetMap"/>
22: * <xs:element minOccurs="0" ref="GetFeatureInfo"/>
23: * <xs:element minOccurs="0" ref="DescribeLayer"/>
24: * <xs:element minOccurs="0" ref="GetLegendGraphic"/>
25: * <xs:element minOccurs="0" ref="GetStyles"/>
26: * <xs:element minOccurs="0" ref="PutStyles"/>
27: * </xs:sequence>
28: * </xs:complexType>
29: *
30: * </code>
31: * </pre>
32: * </p>
33: *
34: * @generated
35: */
36: public class _RequestBinding extends AbstractComplexBinding {
37:
38: /**
39: * @generated
40: */
41: public QName getTarget() {
42: return WMSV1_1_1._Request;
43: }
44:
45: /**
46: * <!-- begin-user-doc -->
47: * <!-- end-user-doc -->
48: *
49: * @generated modifiable
50: */
51: public Class getType() {
52: return WMSRequest.class;
53: }
54:
55: /**
56: * <!-- begin-user-doc -->
57: * <!-- end-user-doc -->
58: *
59: * @generated modifiable
60: */
61: public Object parse(ElementInstance instance, Node node,
62: Object value) throws Exception {
63: WMSRequest ret = new WMSRequest();
64: ret.setGetCapabilities((OperationType) node
65: .getChildValue("GetCapabilities"));
66: ret.setDescribeLayer((OperationType) node
67: .getChildValue("DescribeLayer"));
68: ret.setGetFeatureInfo((OperationType) node
69: .getChildValue("GetFeatureInfo"));
70: ret.setGetLegendGraphic((OperationType) node
71: .getChildValue("GetLegendGraphic"));
72: ret.setGetMap((OperationType) node.getChildValue("GetMap"));
73: ret.setGetStyles((OperationType) node
74: .getChildValue("GetStyles"));
75: ret.setPutStyles((OperationType) node
76: .getChildValue("PutStyles"));
77: return ret;
78: }
79:
80: }
|