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.ows.xml.v1_0;
06:
07: import net.opengis.ows.ExceptionType;
08: import net.opengis.ows.OwsFactory;
09: import org.geotools.xml.AbstractComplexEMFBinding;
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/ows:ExceptionType.
16: *
17: * <p>
18: * <pre>
19: * <code>
20: * <complexType name="ExceptionType">
21: * <annotation>
22: * <documentation>An Exception element describes one detected error that a server chooses to convey to the client. </documentation>
23: * </annotation>
24: * <sequence>
25: * <element maxOccurs="unbounded" minOccurs="0"
26: * name="ExceptionText" type="string">
27: * <annotation>
28: * <documentation>Ordered sequence of text strings that describe this specific exception or error. The contents of these strings are left open to definition by each server implementation. A server is strongly encouraged to include at least one ExceptionText value, to provide more information about the detected error than provided by the exceptionCode. When included, multiple ExceptionText values shall provide hierarchical information about one detected error, with the most significant information listed first. </documentation>
29: * </annotation>
30: * </element>
31: * </sequence>
32: * <attribute name="exceptionCode" type="string" use="required">
33: * <annotation>
34: * <documentation>A code representing the type of this exception, which shall be selected from a set of exceptionCode values specified for the specific service operation and server. </documentation>
35: * </annotation>
36: * </attribute>
37: * <attribute name="locator" type="string" use="optional">
38: * <annotation>
39: * <documentation>When included, this locator shall indicate to the client where an exception was encountered in servicing the client's operation request. This locator should be included whenever meaningful information can be provided by the server. The contents of this locator will depend on the specific exceptionCode and OWS service, and shall be specified in the OWS Implementation Specification. </documentation>
40: * </annotation>
41: * </attribute>
42: * </complexType>
43: *
44: * </code>
45: * </pre>
46: * </p>
47: *
48: * @generated
49: */
50: public class ExceptionTypeBinding extends AbstractComplexEMFBinding {
51: OwsFactory owsfactory;
52:
53: public ExceptionTypeBinding(OwsFactory owsfactory) {
54: this .owsfactory = owsfactory;
55: }
56:
57: /**
58: * @generated
59: */
60: public QName getTarget() {
61: return OWS.EXCEPTIONTYPE;
62: }
63:
64: /**
65: * <!-- begin-user-doc -->
66: * <!-- end-user-doc -->
67: *
68: * @generated modifiable
69: */
70: public Class getType() {
71: return ExceptionType.class;
72: }
73:
74: /**
75: * <!-- begin-user-doc -->
76: * <!-- end-user-doc -->
77: *
78: * @generated modifiable
79: */
80: public Object parse(ElementInstance instance, Node node,
81: Object value) throws Exception {
82: //TODO: implement
83: return null;
84: }
85: }
|