01: package org.geotools.wms.v1_1_1.bindings;
02:
03: import java.net.URL;
04: import java.util.List;
05:
06: import javax.xml.namespace.QName;
07:
08: import org.geotools.data.ows.Service;
09: import org.geotools.xml.AbstractComplexBinding;
10: import org.geotools.xml.ElementInstance;
11: import org.geotools.xml.Node;
12: import org.opengis.metadata.citation.ResponsibleParty;
13:
14: /**
15: * Binding object for the type :_Service.
16: *
17: * <p>
18: * <pre>
19: * <code>
20: * <xs:complexType name="_Service">
21: * <xs:sequence>
22: * <xs:element ref="Name"/>
23: * <xs:element ref="Title"/>
24: * <xs:element minOccurs="0" ref="Abstract"/>
25: * <xs:element minOccurs="0" ref="KeywordList"/>
26: * <xs:element ref="OnlineResource"/>
27: * <xs:element minOccurs="0" ref="ContactInformation"/>
28: * <xs:element minOccurs="0" ref="Fees"/>
29: * <xs:element minOccurs="0" ref="AccessConstraints"/>
30: * </xs:sequence>
31: * </xs:complexType>
32: *
33: * </code>
34: * </pre>
35: * </p>
36: *
37: * @generated
38: */
39: public class _ServiceBinding extends AbstractComplexBinding {
40:
41: /**
42: * @generated
43: */
44: public QName getTarget() {
45: return WMSV1_1_1._Service;
46: }
47:
48: /**
49: * <!-- begin-user-doc -->
50: * <!-- end-user-doc -->
51: *
52: * @generated modifiable
53: */
54: public Class getType() {
55: return Service.class;
56: }
57:
58: /**
59: * <!-- begin-user-doc -->
60: * <!-- end-user-doc -->
61: *
62: * @generated modifiable
63: */
64: public Object parse(ElementInstance instance, Node node,
65: Object value) throws Exception {
66: Service ret = new Service();
67:
68: ret.setContactInformation((ResponsibleParty) node
69: .getChildValue("ContactInformation"));
70: ret
71: .setKeywordList((String[]) node
72: .getChildValue("KeywordList"));
73:
74: ret.set_abstract((String) node.getChildValue("Abstract"));
75: ret.setName((String) node.getChildValue("Name"));
76: ret.setTitle((String) node.getChildValue("Title"));
77: ret.setOnlineResource((URL) node
78: .getChildValue("OnlineResource"));
79:
80: return ret;
81:
82: }
83:
84: }
|