Statistics
| Revision:

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

History | View | Annotate | Download (7.84 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: ServiceExceptionReport.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 java.io.IOException;
15
import java.io.Reader;
16
import java.io.Serializable;
17
import java.io.Writer;
18
import java.util.Enumeration;
19
import java.util.Vector;
20
import org.exolab.castor.xml.MarshalException;
21
import org.exolab.castor.xml.Marshaller;
22
import org.exolab.castor.xml.Unmarshaller;
23
import org.exolab.castor.xml.ValidationException;
24
import org.xml.sax.ContentHandler;
25

    
26
/**
27
 * Class ServiceExceptionReport.
28
 * 
29
 * @version $Revision: 2956 $ $Date: 2005-09-23 10:26:26 +0200 (Fri, 23 Sep 2005) $
30
 */
31
public class ServiceExceptionReport implements java.io.Serializable {
32

    
33

    
34
      //--------------------------/
35
     //- Class/Member Variables -/
36
    //--------------------------/
37

    
38
    /**
39
     * Field _version
40
     */
41
    private java.lang.String _version;
42

    
43
    /**
44
     * Field _serviceExceptionList
45
     */
46
    private java.util.Vector _serviceExceptionList;
47

    
48

    
49
      //----------------/
50
     //- Constructors -/
51
    //----------------/
52

    
53
    public ServiceExceptionReport() {
54
        super();
55
        _serviceExceptionList = new Vector();
56
    } //-- com.iver.wmsclient.wms_1_0_0.exception.ServiceExceptionReport()
57

    
58

    
59
      //-----------/
60
     //- Methods -/
61
    //-----------/
62

    
63
    /**
64
     * Method addServiceException
65
     * 
66
     * @param vServiceException
67
     */
68
    public void addServiceException(com.iver.wmsclient.wms_1_0_0.exception.ServiceException vServiceException)
69
        throws java.lang.IndexOutOfBoundsException
70
    {
71
        _serviceExceptionList.addElement(vServiceException);
72
    } //-- void addServiceException(com.iver.wmsclient.wms_1_0_0.exception.ServiceException) 
73

    
74
    /**
75
     * Method addServiceException
76
     * 
77
     * @param index
78
     * @param vServiceException
79
     */
80
    public void addServiceException(int index, com.iver.wmsclient.wms_1_0_0.exception.ServiceException vServiceException)
81
        throws java.lang.IndexOutOfBoundsException
82
    {
83
        _serviceExceptionList.insertElementAt(vServiceException, index);
84
    } //-- void addServiceException(int, com.iver.wmsclient.wms_1_0_0.exception.ServiceException) 
85

    
86
    /**
87
     * Method enumerateServiceException
88
     */
89
    public java.util.Enumeration enumerateServiceException()
90
    {
91
        return _serviceExceptionList.elements();
92
    } //-- java.util.Enumeration enumerateServiceException() 
93

    
94
    /**
95
     * Method getServiceException
96
     * 
97
     * @param index
98
     */
99
    public com.iver.wmsclient.wms_1_0_0.exception.ServiceException getServiceException(int index)
100
        throws java.lang.IndexOutOfBoundsException
101
    {
102
        //-- check bounds for index
103
        if ((index < 0) || (index > _serviceExceptionList.size())) {
104
            throw new IndexOutOfBoundsException();
105
        }
106
        
107
        return (com.iver.wmsclient.wms_1_0_0.exception.ServiceException) _serviceExceptionList.elementAt(index);
108
    } //-- com.iver.wmsclient.wms_1_0_0.exception.ServiceException getServiceException(int) 
109

    
110
    /**
111
     * Method getServiceException
112
     */
113
    public com.iver.wmsclient.wms_1_0_0.exception.ServiceException[] getServiceException()
114
    {
115
        int size = _serviceExceptionList.size();
116
        com.iver.wmsclient.wms_1_0_0.exception.ServiceException[] mArray = new com.iver.wmsclient.wms_1_0_0.exception.ServiceException[size];
117
        for (int index = 0; index < size; index++) {
118
            mArray[index] = (com.iver.wmsclient.wms_1_0_0.exception.ServiceException) _serviceExceptionList.elementAt(index);
119
        }
120
        return mArray;
121
    } //-- com.iver.wmsclient.wms_1_0_0.exception.ServiceException[] getServiceException() 
122

    
123
    /**
124
     * Method getServiceExceptionCount
125
     */
126
    public int getServiceExceptionCount()
127
    {
128
        return _serviceExceptionList.size();
129
    } //-- int getServiceExceptionCount() 
130

    
131
    /**
132
     * Returns the value of field 'version'.
133
     * 
134
     * @return the value of field 'version'.
135
     */
136
    public java.lang.String getVersion()
137
    {
138
        return this._version;
139
    } //-- java.lang.String getVersion() 
140

    
141
    /**
142
     * Method isValid
143
     */
144
    public boolean isValid()
145
    {
146
        try {
147
            validate();
148
        }
149
        catch (org.exolab.castor.xml.ValidationException vex) {
150
            return false;
151
        }
152
        return true;
153
    } //-- boolean isValid() 
154

    
155
    /**
156
     * Method marshal
157
     * 
158
     * @param out
159
     */
160
    public void marshal(java.io.Writer out)
161
        throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
162
    {
163
        
164
        Marshaller.marshal(this, out);
165
    } //-- void marshal(java.io.Writer) 
166

    
167
    /**
168
     * Method marshal
169
     * 
170
     * @param handler
171
     */
172
    public void marshal(org.xml.sax.ContentHandler handler)
173
        throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
174
    {
175
        
176
        Marshaller.marshal(this, handler);
177
    } //-- void marshal(org.xml.sax.ContentHandler) 
178

    
179
    /**
180
     * Method removeAllServiceException
181
     */
182
    public void removeAllServiceException()
183
    {
184
        _serviceExceptionList.removeAllElements();
185
    } //-- void removeAllServiceException() 
186

    
187
    /**
188
     * Method removeServiceException
189
     * 
190
     * @param index
191
     */
192
    public com.iver.wmsclient.wms_1_0_0.exception.ServiceException removeServiceException(int index)
193
    {
194
        java.lang.Object obj = _serviceExceptionList.elementAt(index);
195
        _serviceExceptionList.removeElementAt(index);
196
        return (com.iver.wmsclient.wms_1_0_0.exception.ServiceException) obj;
197
    } //-- com.iver.wmsclient.wms_1_0_0.exception.ServiceException removeServiceException(int) 
198

    
199
    /**
200
     * Method setServiceException
201
     * 
202
     * @param index
203
     * @param vServiceException
204
     */
205
    public void setServiceException(int index, com.iver.wmsclient.wms_1_0_0.exception.ServiceException vServiceException)
206
        throws java.lang.IndexOutOfBoundsException
207
    {
208
        //-- check bounds for index
209
        if ((index < 0) || (index > _serviceExceptionList.size())) {
210
            throw new IndexOutOfBoundsException();
211
        }
212
        _serviceExceptionList.setElementAt(vServiceException, index);
213
    } //-- void setServiceException(int, com.iver.wmsclient.wms_1_0_0.exception.ServiceException) 
214

    
215
    /**
216
     * Method setServiceException
217
     * 
218
     * @param serviceExceptionArray
219
     */
220
    public void setServiceException(com.iver.wmsclient.wms_1_0_0.exception.ServiceException[] serviceExceptionArray)
221
    {
222
        //-- copy array
223
        _serviceExceptionList.removeAllElements();
224
        for (int i = 0; i < serviceExceptionArray.length; i++) {
225
            _serviceExceptionList.addElement(serviceExceptionArray[i]);
226
        }
227
    } //-- void setServiceException(com.iver.wmsclient.wms_1_0_0.exception.ServiceException) 
228

    
229
    /**
230
     * Sets the value of field 'version'.
231
     * 
232
     * @param version the value of field 'version'.
233
     */
234
    public void setVersion(java.lang.String version)
235
    {
236
        this._version = version;
237
    } //-- void setVersion(java.lang.String) 
238

    
239
    /**
240
     * Method unmarshal
241
     * 
242
     * @param reader
243
     */
244
    public static java.lang.Object unmarshal(java.io.Reader reader)
245
        throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
246
    {
247
        return (com.iver.wmsclient.wms_1_0_0.exception.ServiceExceptionReport) Unmarshaller.unmarshal(com.iver.wmsclient.wms_1_0_0.exception.ServiceExceptionReport.class, reader);
248
    } //-- java.lang.Object unmarshal(java.io.Reader) 
249

    
250
    /**
251
     * Method validate
252
     */
253
    public void validate()
254
        throws org.exolab.castor.xml.ValidationException
255
    {
256
        org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
257
        validator.validate(this);
258
    } //-- void validate() 
259

    
260
}