01: /*
02: * GeoTools - OpenSource mapping toolkit
03: * http://geotools.org
04: * (C) 2002-2006, GeoTools Project Managment Committee (PMC)
05: *
06: * This library is free software; you can redistribute it and/or
07: * modify it under the terms of the GNU Lesser General Public
08: * License as published by the Free Software Foundation;
09: * version 2.1 of the License.
10: *
11: * This library is distributed in the hope that it will be useful,
12: * but WITHOUT ANY WARRANTY; without even the implied warranty of
13: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14: * Lesser General Public License for more details.
15: */
16: package org.geotools.xs.bindings;
17:
18: import javax.xml.namespace.QName;
19:
20: import org.geotools.xml.AbstractSimpleBinding;
21: import org.geotools.xml.InstanceComponent;
22: import org.geotools.xml.SimpleBinding;
23:
24: /**
25: * Binding object for the type http://www.w3.org/2001/XMLSchema:ID.
26: *
27: * <p>
28: * <pre>
29: * <code>
30: * <xs:simpleType name="ID" id="ID">
31: * <xs:annotation>
32: * <xs:documentation source="http://www.w3.org/TR/xmlschema-2/#ID"/>
33: * </xs:annotation>
34: * <xs:restriction base="xs:NCName"/>
35: * </xs:simpleType>
36: *
37: * </code>
38: * </pre>
39: * </p>
40: *
41: * @generated
42: */
43: public class XSIDBinding extends AbstractSimpleBinding {
44: /**
45: * @generated
46: */
47: public QName getTarget() {
48: return XS.ID;
49: }
50:
51: /**
52: * <!-- begin-user-doc -->
53: * <!-- end-user-doc -->
54: *
55: * @generated modifiable
56: */
57: public int getExecutionMode() {
58: return AFTER;
59: }
60:
61: /**
62: * <!-- begin-user-doc -->
63: * This method delegates to its parent binding which returns objects of
64: * type {@link String}.
65: * <!-- end-user-doc -->
66: *
67: * @generated modifiable
68: */
69: public Class getType() {
70: return String.class;
71: }
72:
73: /**
74: * <!-- begin-user-doc -->
75: * This method delegates to its parent binding which returns objects of
76: * type {@link String}.
77: * <!-- end-user-doc -->
78: * !-- end-user-doc -->
79: *
80: * @generated modifiable
81: */
82: public Object parse(InstanceComponent instance, Object value)
83: throws Exception {
84: //Simply return string value.
85: return value;
86: }
87:
88: }
|