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