svn-gvsig-desktop / trunk / libraries / libWMSv0 / src / com / iver / wmsclient / wms_1_1_1 / capabilities / GetMap.java @ 2956
History | View | Annotate | Download (10.3 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: GetMap.java 2956 2005-09-23 08:26:26Z fjp $
|
6 |
*/
|
7 |
|
8 |
package com.iver.wmsclient.wms_1_1_1.capabilities; |
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 GetMap.
|
28 |
*
|
29 |
* @version $Revision: 2956 $ $Date: 2005-09-23 10:26:26 +0200 (Fri, 23 Sep 2005) $
|
30 |
*/
|
31 |
public class GetMap implements java.io.Serializable { |
32 |
|
33 |
|
34 |
//--------------------------/
|
35 |
//- Class/Member Variables -/
|
36 |
//--------------------------/
|
37 |
|
38 |
/**
|
39 |
* Field _formatList
|
40 |
*/
|
41 |
private java.util.Vector _formatList;
|
42 |
|
43 |
/**
|
44 |
* Field _DCPTypeList
|
45 |
*/
|
46 |
private java.util.Vector _DCPTypeList;
|
47 |
|
48 |
|
49 |
//----------------/
|
50 |
//- Constructors -/
|
51 |
//----------------/
|
52 |
|
53 |
public GetMap() {
|
54 |
super();
|
55 |
_formatList = new Vector(); |
56 |
_DCPTypeList = new Vector(); |
57 |
} //-- com.iver.wmsclient.wms_1_1_1.capabilities.GetMap()
|
58 |
|
59 |
|
60 |
//-----------/
|
61 |
//- Methods -/
|
62 |
//-----------/
|
63 |
|
64 |
/**
|
65 |
* Method addDCPType
|
66 |
*
|
67 |
* @param vDCPType
|
68 |
*/
|
69 |
public void addDCPType(com.iver.wmsclient.wms_1_1_1.capabilities.DCPType vDCPType) |
70 |
throws java.lang.IndexOutOfBoundsException
|
71 |
{ |
72 |
_DCPTypeList.addElement(vDCPType); |
73 |
} //-- void addDCPType(com.iver.wmsclient.wms_1_1_1.capabilities.DCPType)
|
74 |
|
75 |
/**
|
76 |
* Method addDCPType
|
77 |
*
|
78 |
* @param index
|
79 |
* @param vDCPType
|
80 |
*/
|
81 |
public void addDCPType(int index, com.iver.wmsclient.wms_1_1_1.capabilities.DCPType vDCPType) |
82 |
throws java.lang.IndexOutOfBoundsException
|
83 |
{ |
84 |
_DCPTypeList.insertElementAt(vDCPType, index); |
85 |
} //-- void addDCPType(int, com.iver.wmsclient.wms_1_1_1.capabilities.DCPType)
|
86 |
|
87 |
/**
|
88 |
* Method addFormat
|
89 |
*
|
90 |
* @param vFormat
|
91 |
*/
|
92 |
public void addFormat(com.iver.wmsclient.wms_1_1_1.capabilities.Format vFormat) |
93 |
throws java.lang.IndexOutOfBoundsException
|
94 |
{ |
95 |
_formatList.addElement(vFormat); |
96 |
} //-- void addFormat(com.iver.wmsclient.wms_1_1_1.capabilities.Format)
|
97 |
|
98 |
/**
|
99 |
* Method addFormat
|
100 |
*
|
101 |
* @param index
|
102 |
* @param vFormat
|
103 |
*/
|
104 |
public void addFormat(int index, com.iver.wmsclient.wms_1_1_1.capabilities.Format vFormat) |
105 |
throws java.lang.IndexOutOfBoundsException
|
106 |
{ |
107 |
_formatList.insertElementAt(vFormat, index); |
108 |
} //-- void addFormat(int, com.iver.wmsclient.wms_1_1_1.capabilities.Format)
|
109 |
|
110 |
/**
|
111 |
* Method enumerateDCPType
|
112 |
*/
|
113 |
public java.util.Enumeration enumerateDCPType()
|
114 |
{ |
115 |
return _DCPTypeList.elements();
|
116 |
} //-- java.util.Enumeration enumerateDCPType()
|
117 |
|
118 |
/**
|
119 |
* Method enumerateFormat
|
120 |
*/
|
121 |
public java.util.Enumeration enumerateFormat()
|
122 |
{ |
123 |
return _formatList.elements();
|
124 |
} //-- java.util.Enumeration enumerateFormat()
|
125 |
|
126 |
/**
|
127 |
* Method getDCPType
|
128 |
*
|
129 |
* @param index
|
130 |
*/
|
131 |
public com.iver.wmsclient.wms_1_1_1.capabilities.DCPType getDCPType(int index) |
132 |
throws java.lang.IndexOutOfBoundsException
|
133 |
{ |
134 |
//-- check bounds for index
|
135 |
if ((index < 0) || (index > _DCPTypeList.size())) { |
136 |
throw new IndexOutOfBoundsException(); |
137 |
} |
138 |
|
139 |
return (com.iver.wmsclient.wms_1_1_1.capabilities.DCPType) _DCPTypeList.elementAt(index);
|
140 |
} //-- com.iver.wmsclient.wms_1_1_1.capabilities.DCPType getDCPType(int)
|
141 |
|
142 |
/**
|
143 |
* Method getDCPType
|
144 |
*/
|
145 |
public com.iver.wmsclient.wms_1_1_1.capabilities.DCPType[] getDCPType() |
146 |
{ |
147 |
int size = _DCPTypeList.size();
|
148 |
com.iver.wmsclient.wms_1_1_1.capabilities.DCPType[] mArray = new com.iver.wmsclient.wms_1_1_1.capabilities.DCPType[size]; |
149 |
for (int index = 0; index < size; index++) { |
150 |
mArray[index] = (com.iver.wmsclient.wms_1_1_1.capabilities.DCPType) _DCPTypeList.elementAt(index); |
151 |
} |
152 |
return mArray;
|
153 |
} //-- com.iver.wmsclient.wms_1_1_1.capabilities.DCPType[] getDCPType()
|
154 |
|
155 |
/**
|
156 |
* Method getDCPTypeCount
|
157 |
*/
|
158 |
public int getDCPTypeCount() |
159 |
{ |
160 |
return _DCPTypeList.size();
|
161 |
} //-- int getDCPTypeCount()
|
162 |
|
163 |
/**
|
164 |
* Method getFormat
|
165 |
*
|
166 |
* @param index
|
167 |
*/
|
168 |
public com.iver.wmsclient.wms_1_1_1.capabilities.Format getFormat(int index) |
169 |
throws java.lang.IndexOutOfBoundsException
|
170 |
{ |
171 |
//-- check bounds for index
|
172 |
if ((index < 0) || (index > _formatList.size())) { |
173 |
throw new IndexOutOfBoundsException(); |
174 |
} |
175 |
|
176 |
return (com.iver.wmsclient.wms_1_1_1.capabilities.Format) _formatList.elementAt(index);
|
177 |
} //-- com.iver.wmsclient.wms_1_1_1.capabilities.Format getFormat(int)
|
178 |
|
179 |
/**
|
180 |
* Method getFormat
|
181 |
*/
|
182 |
public com.iver.wmsclient.wms_1_1_1.capabilities.Format[] getFormat() |
183 |
{ |
184 |
int size = _formatList.size();
|
185 |
com.iver.wmsclient.wms_1_1_1.capabilities.Format[] mArray = new com.iver.wmsclient.wms_1_1_1.capabilities.Format[size]; |
186 |
for (int index = 0; index < size; index++) { |
187 |
mArray[index] = (com.iver.wmsclient.wms_1_1_1.capabilities.Format) _formatList.elementAt(index); |
188 |
} |
189 |
return mArray;
|
190 |
} //-- com.iver.wmsclient.wms_1_1_1.capabilities.Format[] getFormat()
|
191 |
|
192 |
/**
|
193 |
* Method getFormatCount
|
194 |
*/
|
195 |
public int getFormatCount() |
196 |
{ |
197 |
return _formatList.size();
|
198 |
} //-- int getFormatCount()
|
199 |
|
200 |
/**
|
201 |
* Method isValid
|
202 |
*/
|
203 |
public boolean isValid() |
204 |
{ |
205 |
try {
|
206 |
validate(); |
207 |
} |
208 |
catch (org.exolab.castor.xml.ValidationException vex) {
|
209 |
return false; |
210 |
} |
211 |
return true; |
212 |
} //-- boolean isValid()
|
213 |
|
214 |
/**
|
215 |
* Method marshal
|
216 |
*
|
217 |
* @param out
|
218 |
*/
|
219 |
public void marshal(java.io.Writer out) |
220 |
throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
|
221 |
{ |
222 |
|
223 |
Marshaller.marshal(this, out);
|
224 |
} //-- void marshal(java.io.Writer)
|
225 |
|
226 |
/**
|
227 |
* Method marshal
|
228 |
*
|
229 |
* @param handler
|
230 |
*/
|
231 |
public void marshal(org.xml.sax.ContentHandler handler) |
232 |
throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
|
233 |
{ |
234 |
|
235 |
Marshaller.marshal(this, handler);
|
236 |
} //-- void marshal(org.xml.sax.ContentHandler)
|
237 |
|
238 |
/**
|
239 |
* Method removeAllDCPType
|
240 |
*/
|
241 |
public void removeAllDCPType() |
242 |
{ |
243 |
_DCPTypeList.removeAllElements(); |
244 |
} //-- void removeAllDCPType()
|
245 |
|
246 |
/**
|
247 |
* Method removeAllFormat
|
248 |
*/
|
249 |
public void removeAllFormat() |
250 |
{ |
251 |
_formatList.removeAllElements(); |
252 |
} //-- void removeAllFormat()
|
253 |
|
254 |
/**
|
255 |
* Method removeDCPType
|
256 |
*
|
257 |
* @param index
|
258 |
*/
|
259 |
public com.iver.wmsclient.wms_1_1_1.capabilities.DCPType removeDCPType(int index) |
260 |
{ |
261 |
java.lang.Object obj = _DCPTypeList.elementAt(index); |
262 |
_DCPTypeList.removeElementAt(index); |
263 |
return (com.iver.wmsclient.wms_1_1_1.capabilities.DCPType) obj;
|
264 |
} //-- com.iver.wmsclient.wms_1_1_1.capabilities.DCPType removeDCPType(int)
|
265 |
|
266 |
/**
|
267 |
* Method removeFormat
|
268 |
*
|
269 |
* @param index
|
270 |
*/
|
271 |
public com.iver.wmsclient.wms_1_1_1.capabilities.Format removeFormat(int index) |
272 |
{ |
273 |
java.lang.Object obj = _formatList.elementAt(index); |
274 |
_formatList.removeElementAt(index); |
275 |
return (com.iver.wmsclient.wms_1_1_1.capabilities.Format) obj;
|
276 |
} //-- com.iver.wmsclient.wms_1_1_1.capabilities.Format removeFormat(int)
|
277 |
|
278 |
/**
|
279 |
* Method setDCPType
|
280 |
*
|
281 |
* @param index
|
282 |
* @param vDCPType
|
283 |
*/
|
284 |
public void setDCPType(int index, com.iver.wmsclient.wms_1_1_1.capabilities.DCPType vDCPType) |
285 |
throws java.lang.IndexOutOfBoundsException
|
286 |
{ |
287 |
//-- check bounds for index
|
288 |
if ((index < 0) || (index > _DCPTypeList.size())) { |
289 |
throw new IndexOutOfBoundsException(); |
290 |
} |
291 |
_DCPTypeList.setElementAt(vDCPType, index); |
292 |
} //-- void setDCPType(int, com.iver.wmsclient.wms_1_1_1.capabilities.DCPType)
|
293 |
|
294 |
/**
|
295 |
* Method setDCPType
|
296 |
*
|
297 |
* @param DCPTypeArray
|
298 |
*/
|
299 |
public void setDCPType(com.iver.wmsclient.wms_1_1_1.capabilities.DCPType[] DCPTypeArray) |
300 |
{ |
301 |
//-- copy array
|
302 |
_DCPTypeList.removeAllElements(); |
303 |
for (int i = 0; i < DCPTypeArray.length; i++) { |
304 |
_DCPTypeList.addElement(DCPTypeArray[i]); |
305 |
} |
306 |
} //-- void setDCPType(com.iver.wmsclient.wms_1_1_1.capabilities.DCPType)
|
307 |
|
308 |
/**
|
309 |
* Method setFormat
|
310 |
*
|
311 |
* @param index
|
312 |
* @param vFormat
|
313 |
*/
|
314 |
public void setFormat(int index, com.iver.wmsclient.wms_1_1_1.capabilities.Format vFormat) |
315 |
throws java.lang.IndexOutOfBoundsException
|
316 |
{ |
317 |
//-- check bounds for index
|
318 |
if ((index < 0) || (index > _formatList.size())) { |
319 |
throw new IndexOutOfBoundsException(); |
320 |
} |
321 |
_formatList.setElementAt(vFormat, index); |
322 |
} //-- void setFormat(int, com.iver.wmsclient.wms_1_1_1.capabilities.Format)
|
323 |
|
324 |
/**
|
325 |
* Method setFormat
|
326 |
*
|
327 |
* @param formatArray
|
328 |
*/
|
329 |
public void setFormat(com.iver.wmsclient.wms_1_1_1.capabilities.Format[] formatArray) |
330 |
{ |
331 |
//-- copy array
|
332 |
_formatList.removeAllElements(); |
333 |
for (int i = 0; i < formatArray.length; i++) { |
334 |
_formatList.addElement(formatArray[i]); |
335 |
} |
336 |
} //-- void setFormat(com.iver.wmsclient.wms_1_1_1.capabilities.Format)
|
337 |
|
338 |
/**
|
339 |
* Method unmarshal
|
340 |
*
|
341 |
* @param reader
|
342 |
*/
|
343 |
public static java.lang.Object unmarshal(java.io.Reader reader) |
344 |
throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
|
345 |
{ |
346 |
return (com.iver.wmsclient.wms_1_1_1.capabilities.GetMap) Unmarshaller.unmarshal(com.iver.wmsclient.wms_1_1_1.capabilities.GetMap.class, reader);
|
347 |
} //-- java.lang.Object unmarshal(java.io.Reader)
|
348 |
|
349 |
/**
|
350 |
* Method validate
|
351 |
*/
|
352 |
public void validate() |
353 |
throws org.exolab.castor.xml.ValidationException
|
354 |
{ |
355 |
org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
|
356 |
validator.validate(this);
|
357 |
} //-- void validate()
|
358 |
|
359 |
} |