01: package org.geotools.wms.v1_1_1.bindings;
02:
03: import java.util.ArrayList;
04: import java.util.List;
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 :_HTTP.
14: *
15: * <p>
16: * <pre>
17: * <code>
18: * <xs:complexType name="_HTTP">
19: * <xs:choice maxOccurs="unbounded">
20: * <xs:element ref="Get"/>
21: * <xs:element ref="Post"/>
22: * </xs:choice>
23: * </xs:complexType>
24: *
25: * </code>
26: * </pre>
27: * </p>
28: *
29: * @generated
30: */
31: public class _HTTPBinding extends AbstractComplexBinding {
32:
33: /**
34: * @generated
35: */
36: public QName getTarget() {
37: return WMSV1_1_1._HTTP;
38: }
39:
40: /**
41: * <!-- begin-user-doc -->
42: * <!-- end-user-doc -->
43: *
44: * @generated modifiable
45: */
46: public Class getType() {
47: return List.class;
48: }
49:
50: /**
51: * <!-- begin-user-doc -->
52: * <!-- end-user-doc -->
53: *
54: * @generated modifiable
55: */
56: public Object parse(ElementInstance instance, Node node,
57: Object value) throws Exception {
58: ArrayList ret = new ArrayList();
59: if (node.getChildValue("Get") != null) {
60: ret.add(node.getChildValue("Get"));
61: }
62: if (node.getChildValue("Post") != null) {
63: ret.add(node.getChildValue("Post"));
64: }
65:
66: return ret;
67: }
68:
69: }
|