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