Statistics
| Revision:

svn-gvsig-desktop / trunk / libraries / libWMSv0 / src / com / iver / wmsclient / wms_1_0_0 / exception / ServiceExceptionReportDescriptor.java @ 2956

History | View | Annotate | Download (6.6 KB)

1
/*
2
 * This class was automatically generated with 
3
 * <a href="http://www.castor.org">Castor 0.9.5.3</a>, using an XML
4
 * Schema.
5
 * $Id: ServiceExceptionReportDescriptor.java 2956 2005-09-23 08:26:26Z fjp $
6
 */
7

    
8
package com.iver.wmsclient.wms_1_0_0.exception;
9

    
10
  //---------------------------------/
11
 //- Imported classes and packages -/
12
//---------------------------------/
13

    
14
import org.exolab.castor.mapping.AccessMode;
15
import org.exolab.castor.xml.TypeValidator;
16
import org.exolab.castor.xml.XMLFieldDescriptor;
17
import org.exolab.castor.xml.validators.*;
18

    
19
/**
20
 * Class ServiceExceptionReportDescriptor.
21
 * 
22
 * @version $Revision: 2956 $ $Date: 2005-09-23 10:26:26 +0200 (Fri, 23 Sep 2005) $
23
 */
24
public class ServiceExceptionReportDescriptor extends org.exolab.castor.xml.util.XMLClassDescriptorImpl {
25

    
26

    
27
      //--------------------------/
28
     //- Class/Member Variables -/
29
    //--------------------------/
30

    
31
    /**
32
     * Field nsPrefix
33
     */
34
    private java.lang.String nsPrefix;
35

    
36
    /**
37
     * Field nsURI
38
     */
39
    private java.lang.String nsURI;
40

    
41
    /**
42
     * Field xmlName
43
     */
44
    private java.lang.String xmlName;
45

    
46
    /**
47
     * Field identity
48
     */
49
    private org.exolab.castor.xml.XMLFieldDescriptor identity;
50

    
51

    
52
      //----------------/
53
     //- Constructors -/
54
    //----------------/
55

    
56
    public ServiceExceptionReportDescriptor() {
57
        super();
58
        xmlName = "ServiceExceptionReport";
59
        
60
        //-- set grouping compositor
61
        setCompositorAsSequence();
62
        org.exolab.castor.xml.util.XMLFieldDescriptorImpl  desc           = null;
63
        org.exolab.castor.xml.XMLFieldHandler              handler        = null;
64
        org.exolab.castor.xml.FieldValidator               fieldValidator = null;
65
        //-- initialize attribute descriptors
66
        
67
        //-- _version
68
        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_version", "version", org.exolab.castor.xml.NodeType.Attribute);
69
        desc.setImmutable(true);
70
        handler = (new org.exolab.castor.xml.XMLFieldHandler() {
71
            public java.lang.Object getValue( java.lang.Object object ) 
72
                throws IllegalStateException
73
            {
74
                ServiceExceptionReport target = (ServiceExceptionReport) object;
75
                return target.getVersion();
76
            }
77
            public void setValue( java.lang.Object object, java.lang.Object value) 
78
                throws IllegalStateException, IllegalArgumentException
79
            {
80
                try {
81
                    ServiceExceptionReport target = (ServiceExceptionReport) object;
82
                    target.setVersion( (java.lang.String) value);
83
                }
84
                catch (java.lang.Exception ex) {
85
                    throw new IllegalStateException(ex.toString());
86
                }
87
            }
88
            public java.lang.Object newInstance( java.lang.Object parent ) {
89
                return null;
90
            }
91
        } );
92
        desc.setHandler(handler);
93
        addFieldDescriptor(desc);
94
        
95
        //-- validation code for: _version
96
        fieldValidator = new org.exolab.castor.xml.FieldValidator();
97
        { //-- local scope
98
            StringValidator typeValidator = new StringValidator();
99
            typeValidator.setWhiteSpace("preserve");
100
            fieldValidator.setValidator(typeValidator);
101
        }
102
        desc.setValidator(fieldValidator);
103
        //-- initialize element descriptors
104
        
105
        //-- _serviceExceptionList
106
        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(com.iver.wmsclient.wms_1_0_0.exception.ServiceException.class, "_serviceExceptionList", "ServiceException", org.exolab.castor.xml.NodeType.Element);
107
        handler = (new org.exolab.castor.xml.XMLFieldHandler() {
108
            public java.lang.Object getValue( java.lang.Object object ) 
109
                throws IllegalStateException
110
            {
111
                ServiceExceptionReport target = (ServiceExceptionReport) object;
112
                return target.getServiceException();
113
            }
114
            public void setValue( java.lang.Object object, java.lang.Object value) 
115
                throws IllegalStateException, IllegalArgumentException
116
            {
117
                try {
118
                    ServiceExceptionReport target = (ServiceExceptionReport) object;
119
                    target.addServiceException( (com.iver.wmsclient.wms_1_0_0.exception.ServiceException) value);
120
                }
121
                catch (java.lang.Exception ex) {
122
                    throw new IllegalStateException(ex.toString());
123
                }
124
            }
125
            public java.lang.Object newInstance( java.lang.Object parent ) {
126
                return new com.iver.wmsclient.wms_1_0_0.exception.ServiceException();
127
            }
128
        } );
129
        desc.setHandler(handler);
130
        desc.setMultivalued(true);
131
        addFieldDescriptor(desc);
132
        
133
        //-- validation code for: _serviceExceptionList
134
        fieldValidator = new org.exolab.castor.xml.FieldValidator();
135
        fieldValidator.setMinOccurs(0);
136
        { //-- local scope
137
        }
138
        desc.setValidator(fieldValidator);
139
    } //-- com.iver.wmsclient.wms_1_0_0.exception.ServiceExceptionReportDescriptor()
140

    
141

    
142
      //-----------/
143
     //- Methods -/
144
    //-----------/
145

    
146
    /**
147
     * Method getAccessMode
148
     */
149
    public org.exolab.castor.mapping.AccessMode getAccessMode()
150
    {
151
        return null;
152
    } //-- org.exolab.castor.mapping.AccessMode getAccessMode() 
153

    
154
    /**
155
     * Method getExtends
156
     */
157
    public org.exolab.castor.mapping.ClassDescriptor getExtends()
158
    {
159
        return null;
160
    } //-- org.exolab.castor.mapping.ClassDescriptor getExtends() 
161

    
162
    /**
163
     * Method getIdentity
164
     */
165
    public org.exolab.castor.mapping.FieldDescriptor getIdentity()
166
    {
167
        return identity;
168
    } //-- org.exolab.castor.mapping.FieldDescriptor getIdentity() 
169

    
170
    /**
171
     * Method getJavaClass
172
     */
173
    public java.lang.Class getJavaClass()
174
    {
175
        return com.iver.wmsclient.wms_1_0_0.exception.ServiceExceptionReport.class;
176
    } //-- java.lang.Class getJavaClass() 
177

    
178
    /**
179
     * Method getNameSpacePrefix
180
     */
181
    public java.lang.String getNameSpacePrefix()
182
    {
183
        return nsPrefix;
184
    } //-- java.lang.String getNameSpacePrefix() 
185

    
186
    /**
187
     * Method getNameSpaceURI
188
     */
189
    public java.lang.String getNameSpaceURI()
190
    {
191
        return nsURI;
192
    } //-- java.lang.String getNameSpaceURI() 
193

    
194
    /**
195
     * Method getValidator
196
     */
197
    public org.exolab.castor.xml.TypeValidator getValidator()
198
    {
199
        return this;
200
    } //-- org.exolab.castor.xml.TypeValidator getValidator() 
201

    
202
    /**
203
     * Method getXMLName
204
     */
205
    public java.lang.String getXMLName()
206
    {
207
        return xmlName;
208
    } //-- java.lang.String getXMLName() 
209

    
210
}