01: package org.geotools.ml.bindings;
02:
03: import java.util.List;
04:
05: import javax.xml.namespace.QName;
06:
07: import org.geotools.xml.AbstractSimpleBinding;
08: import org.geotools.xml.InstanceComponent;
09:
10: /**
11: * Strategy object for the type http://mails/refractions/net:bodyType.
12: *
13: * <p>
14: * <pre>
15: * <code>
16: * <xsd:simpleType name="bodyType">
17: * <xsd:restriction base="xsd:string"/>
18: * </xsd:simpleType>
19: *
20: * </code>
21: * </pre>
22: * </p>
23: *
24: * @generated
25: */
26: public class MLBodyTypeBinding extends AbstractSimpleBinding {
27:
28: /**
29: * @generated
30: */
31: public QName getTarget() {
32: return ML.BODYTYPE;
33: }
34:
35: public Class getType() {
36: return String.class;
37: }
38:
39: /**
40: * <!-- begin-user-doc -->
41: * <!-- end-user-doc -->
42: *
43: * @generated modifiable
44: */
45: public Object parse(InstanceComponent instance, Object value)
46: throws Exception {
47:
48: //just a string
49: return value;
50: }
51: }
|