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.gml2.bindings;
17:
18: import javax.xml.namespace.QName;
19: import com.vividsolutions.jts.geom.Geometry;
20: import org.geotools.xml.AbstractComplexBinding;
21: import org.geotools.xml.ElementInstance;
22: import org.geotools.xml.Node;
23:
24: /**
25: * Binding object for the type http://www.opengis.net/gml:GeometryPropertyType.
26: *
27: * <p>
28: * <pre>
29: * <code>
30: * <complexType name="GeometryPropertyType">
31: * <annotation>
32: * <documentation> A simple geometry property encapsulates
33: * a geometry element. Alternatively, it can function
34: * as a pointer (simple-type link) that refers to a
35: * remote geometry element. </documentation>
36: * </annotation>
37: * <sequence minOccurs="0">
38: * <element ref="gml:_Geometry"/>
39: * </sequence>
40: * <attributeGroup ref="xlink:simpleLink"/>
41: * <attribute ref="gml:remoteSchema" use="optional"/>
42: * </complexType>
43: *
44: * </code>
45: * </pre>
46: * </p>
47: *
48: * @generated
49: */
50: public class GMLGeometryPropertyTypeBinding extends
51: AbstractComplexBinding {
52: /**
53: * @generated
54: */
55: public QName getTarget() {
56: return GML.GEOMETRYPROPERTYTYPE;
57: }
58:
59: /**
60: * <!-- begin-user-doc -->
61: * <!-- end-user-doc -->
62: *
63: * @generated modifiable
64: */
65: public int getExecutionMode() {
66: return AFTER;
67: }
68:
69: /**
70: * <!-- begin-user-doc -->
71: * <!-- end-user-doc -->
72: *
73: * @generated modifiable
74: */
75: public Class getType() {
76: return null;
77: }
78:
79: /**
80: * <!-- begin-user-doc -->
81: * <!-- end-user-doc -->
82: *
83: * @generated modifiable
84: */
85: public Object parse(ElementInstance instance, Node node,
86: Object value) throws Exception {
87: return (Geometry) value;
88: }
89: }
|