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.Point;
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:PointMemberType.
26: *
27: * <p>
28: * <pre>
29: * <code>
30: * <complexType name="PointMemberType">
31: * <annotation>
32: * <documentation>Restricts the geometry member to being a Point instance.</documentation>
33: * </annotation>
34: * <complexContent>
35: * <restriction base="gml:GeometryAssociationType">
36: * <sequence minOccurs="0">
37: * <element ref="gml:Point"/>
38: * </sequence>
39: * <attributeGroup ref="gml:AssociationAttributeGroup"/>
40: * </restriction>
41: * </complexContent>
42: * </complexType>
43: *
44: * </code>
45: * </pre>
46: * </p>
47: *
48: * @generated
49: */
50: public class GMLPointMemberTypeBinding extends AbstractComplexBinding {
51: /**
52: * @generated
53: */
54: public QName getTarget() {
55: return GML.POINTMEMBERTYPE;
56: }
57:
58: /**
59: * <!-- begin-user-doc -->
60: * <!-- end-user-doc -->
61: *
62: * @generated modifiable
63: */
64: public int getExecutionMode() {
65: return AFTER;
66: }
67:
68: /**
69: * <!-- begin-user-doc -->
70: * <!-- end-user-doc -->
71: *
72: * @generated modifiable
73: */
74: public Class getType() {
75: return Point.class;
76: }
77:
78: /**
79: * <!-- begin-user-doc -->
80: * <!-- end-user-doc -->
81: *
82: * @generated modifiable
83: */
84: public Object parse(ElementInstance instance, Node node,
85: Object value) throws Exception {
86: return (Point) value;
87: }
88: }
|