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