01: /* Copyright (c) 2001 - 2007 TOPP - www.openplans.org. All rights reserved.
02: * This code is licensed under the GPL 2.0 license, availible at the root
03: * application directory.
04: */
05: package org.geoserver.wfs.xml.gml3;
06:
07: import org.geoserver.wfs.WFSException;
08: import org.geotools.gml3.bindings.GML;
09: import org.geotools.xml.AbstractComplexBinding;
10: import org.geotools.xml.ElementInstance;
11: import org.geotools.xml.Node;
12: import javax.xml.namespace.QName;
13:
14: /**
15: * Binding object for the type http://www.opengis.net/gml:CircleType.
16: * <p>
17: * We include this here, and not part of gml because its job is to fail, its a cite
18: * compliance thing :).
19: * </p>
20: *
21: * <p>
22: * <pre>
23: * <code>
24: * <complexType name="CircleType">
25: * <annotation>
26: * <documentation>A Circle is an arc whose ends coincide to form a simple closed loop. The "start" and "end" bearing are equal and shall be the bearing for the first controlPoint listed. The three control points must be distinct non-co-linear points for the Circle to be unambiguously defined. The arc is simply extended past the third control point until the first control point is encountered.</documentation>
27: * </annotation>
28: * <complexContent>
29: * <extension base="gml:ArcType"/>
30: * </complexContent>
31: * </complexType>
32: *
33: * </code>
34: * </pre>
35: * </p>
36: *
37: * @generated
38: */
39: public class CircleTypeBinding extends AbstractComplexBinding {
40: /**
41: * @generated
42: */
43: public QName getTarget() {
44: return GML.CircleType;
45: }
46:
47: /**
48: * <!-- begin-user-doc -->
49: * <!-- end-user-doc -->
50: *
51: * @generated modifiable
52: */
53: public Class getType() {
54: return null;
55: }
56:
57: /**
58: * <!-- begin-user-doc -->
59: * <!-- end-user-doc -->
60: *
61: * @generated modifiable
62: */
63: public Object parse(ElementInstance instance, Node node,
64: Object value) throws Exception {
65: throw new WFSException("Circle is not supported",
66: "InvalidParameterValue");
67: }
68: }
|