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