Statistics
| Revision:

root / branches / v2_0_0_prep / frameworks / _fwAndami / src / org / gvsig / andami / plugins / config / generate / PluginConfig.java @ 29593

History | View | Annotate | Download (14.8 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: PluginConfig.java 29593 2009-06-29 15:54:31Z jpiera $
6
 */
7

    
8
package org.gvsig.andami.plugins.config.generate;
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 PluginConfig.
28
 * 
29
 * @version $Revision: 29593 $ $Date: 2009-06-29 17:54:31 +0200 (Mon, 29 Jun 2009) $
30
 */
31
public class PluginConfig implements java.io.Serializable {
32

    
33

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

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

    
43
    /**
44
     * Field _icon
45
     */
46
    private org.gvsig.andami.plugins.config.generate.Icon _icon;
47

    
48
    /**
49
     * Field _dependsList
50
     */
51
    private java.util.Vector _dependsList;
52

    
53
    /**
54
     * Field _resourceBundle
55
     */
56
    private org.gvsig.andami.plugins.config.generate.ResourceBundle _resourceBundle;
57

    
58
    /**
59
     * Field _labelSetList
60
     */
61
    private java.util.Vector _labelSetList;
62

    
63
    /**
64
     * Field _libraries
65
     */
66
    private org.gvsig.andami.plugins.config.generate.Libraries _libraries;
67

    
68
    /**
69
     * Field _popupMenus
70
     */
71
    private org.gvsig.andami.plugins.config.generate.PopupMenus _popupMenus;
72

    
73
    /**
74
     * Field _extensions
75
     */
76
    private org.gvsig.andami.plugins.config.generate.Extensions _extensions;
77

    
78

    
79
      //----------------/
80
     //- Constructors -/
81
    //----------------/
82

    
83
    public PluginConfig() {
84
        super();
85
        _dependsList = new Vector();
86
        _labelSetList = new Vector();
87
    } //-- com.iver.andami.plugins.config.generate.PluginConfig()
88

    
89

    
90
      //-----------/
91
     //- Methods -/
92
    //-----------/
93

    
94
    /**
95
     * Method addDepends
96
     * 
97
     * @param vDepends
98
     */
99
    public void addDepends(org.gvsig.andami.plugins.config.generate.Depends vDepends)
100
        throws java.lang.IndexOutOfBoundsException
101
    {
102
        _dependsList.addElement(vDepends);
103
    } //-- void addDepends(com.iver.andami.plugins.config.generate.Depends) 
104

    
105
    /**
106
     * Method addDepends
107
     * 
108
     * @param index
109
     * @param vDepends
110
     */
111
    public void addDepends(int index, org.gvsig.andami.plugins.config.generate.Depends vDepends)
112
        throws java.lang.IndexOutOfBoundsException
113
    {
114
        _dependsList.insertElementAt(vDepends, index);
115
    } //-- void addDepends(int, com.iver.andami.plugins.config.generate.Depends) 
116

    
117
    /**
118
     * Method addLabelSet
119
     * 
120
     * @param vLabelSet
121
     */
122
    public void addLabelSet(org.gvsig.andami.plugins.config.generate.LabelSet vLabelSet)
123
        throws java.lang.IndexOutOfBoundsException
124
    {
125
        _labelSetList.addElement(vLabelSet);
126
    } //-- void addLabelSet(com.iver.andami.plugins.config.generate.LabelSet) 
127

    
128
    /**
129
     * Method addLabelSet
130
     * 
131
     * @param index
132
     * @param vLabelSet
133
     */
134
    public void addLabelSet(int index, org.gvsig.andami.plugins.config.generate.LabelSet vLabelSet)
135
        throws java.lang.IndexOutOfBoundsException
136
    {
137
        _labelSetList.insertElementAt(vLabelSet, index);
138
    } //-- void addLabelSet(int, com.iver.andami.plugins.config.generate.LabelSet) 
139

    
140
    /**
141
     * Method enumerateDepends
142
     */
143
    public java.util.Enumeration enumerateDepends()
144
    {
145
        return _dependsList.elements();
146
    } //-- java.util.Enumeration enumerateDepends() 
147

    
148
    /**
149
     * Method enumerateLabelSet
150
     */
151
    public java.util.Enumeration enumerateLabelSet()
152
    {
153
        return _labelSetList.elements();
154
    } //-- java.util.Enumeration enumerateLabelSet() 
155

    
156
    /**
157
     * Method getDepends
158
     * 
159
     * @param index
160
     */
161
    public org.gvsig.andami.plugins.config.generate.Depends getDepends(int index)
162
        throws java.lang.IndexOutOfBoundsException
163
    {
164
        //-- check bounds for index
165
        if ((index < 0) || (index > _dependsList.size())) {
166
            throw new IndexOutOfBoundsException();
167
        }
168
        
169
        return (org.gvsig.andami.plugins.config.generate.Depends) _dependsList.elementAt(index);
170
    } //-- com.iver.andami.plugins.config.generate.Depends getDepends(int) 
171

    
172
    /**
173
     * Method getDepends
174
     */
175
    public org.gvsig.andami.plugins.config.generate.Depends[] getDepends()
176
    {
177
        int size = _dependsList.size();
178
        org.gvsig.andami.plugins.config.generate.Depends[] mArray = new org.gvsig.andami.plugins.config.generate.Depends[size];
179
        for (int index = 0; index < size; index++) {
180
            mArray[index] = (org.gvsig.andami.plugins.config.generate.Depends) _dependsList.elementAt(index);
181
        }
182
        return mArray;
183
    } //-- com.iver.andami.plugins.config.generate.Depends[] getDepends() 
184

    
185
    /**
186
     * Method getDependsCount
187
     */
188
    public int getDependsCount()
189
    {
190
        return _dependsList.size();
191
    } //-- int getDependsCount() 
192

    
193
    /**
194
     * Returns the value of field 'extensions'.
195
     * 
196
     * @return the value of field 'extensions'.
197
     */
198
    public org.gvsig.andami.plugins.config.generate.Extensions getExtensions()
199
    {
200
        return this._extensions;
201
    } //-- com.iver.andami.plugins.config.generate.Extensions getExtensions() 
202

    
203
    /**
204
     * Returns the value of field 'icon'.
205
     * 
206
     * @return the value of field 'icon'.
207
     */
208
    public org.gvsig.andami.plugins.config.generate.Icon getIcon()
209
    {
210
        return this._icon;
211
    } //-- com.iver.andami.plugins.config.generate.Icon getIcon() 
212

    
213
    /**
214
     * Method getLabelSet
215
     * 
216
     * @param index
217
     */
218
    public org.gvsig.andami.plugins.config.generate.LabelSet getLabelSet(int index)
219
        throws java.lang.IndexOutOfBoundsException
220
    {
221
        //-- check bounds for index
222
        if ((index < 0) || (index > _labelSetList.size())) {
223
            throw new IndexOutOfBoundsException();
224
        }
225
        
226
        return (org.gvsig.andami.plugins.config.generate.LabelSet) _labelSetList.elementAt(index);
227
    } //-- com.iver.andami.plugins.config.generate.LabelSet getLabelSet(int) 
228

    
229
    /**
230
     * Method getLabelSet
231
     */
232
    public org.gvsig.andami.plugins.config.generate.LabelSet[] getLabelSet()
233
    {
234
        int size = _labelSetList.size();
235
        org.gvsig.andami.plugins.config.generate.LabelSet[] mArray = new org.gvsig.andami.plugins.config.generate.LabelSet[size];
236
        for (int index = 0; index < size; index++) {
237
            mArray[index] = (org.gvsig.andami.plugins.config.generate.LabelSet) _labelSetList.elementAt(index);
238
        }
239
        return mArray;
240
    } //-- com.iver.andami.plugins.config.generate.LabelSet[] getLabelSet() 
241

    
242
    /**
243
     * Method getLabelSetCount
244
     */
245
    public int getLabelSetCount()
246
    {
247
        return _labelSetList.size();
248
    } //-- int getLabelSetCount() 
249

    
250
    /**
251
     * Returns the value of field 'libraries'.
252
     * 
253
     * @return the value of field 'libraries'.
254
     */
255
    public org.gvsig.andami.plugins.config.generate.Libraries getLibraries()
256
    {
257
        return this._libraries;
258
    } //-- com.iver.andami.plugins.config.generate.Libraries getLibraries() 
259

    
260
    /**
261
     * Returns the value of field 'popupMenus'.
262
     * 
263
     * @return the value of field 'popupMenus'.
264
     */
265
    public org.gvsig.andami.plugins.config.generate.PopupMenus getPopupMenus()
266
    {
267
        return this._popupMenus;
268
    } //-- com.iver.andami.plugins.config.generate.PopupMenus getPopupMenus() 
269

    
270
    /**
271
     * Returns the value of field 'resourceBundle'.
272
     * 
273
     * @return the value of field 'resourceBundle'.
274
     */
275
    public org.gvsig.andami.plugins.config.generate.ResourceBundle getResourceBundle()
276
    {
277
        return this._resourceBundle;
278
    } //-- com.iver.andami.plugins.config.generate.ResourceBundle getResourceBundle() 
279

    
280
    /**
281
     * Returns the value of field 'updateUrl'.
282
     * 
283
     * @return the value of field 'updateUrl'.
284
     */
285
    public java.lang.String getUpdateUrl()
286
    {
287
        return this._updateUrl;
288
    } //-- java.lang.String getUpdateUrl() 
289

    
290
    /**
291
     * Method isValid
292
     */
293
    public boolean isValid()
294
    {
295
        try {
296
            validate();
297
        }
298
        catch (org.exolab.castor.xml.ValidationException vex) {
299
            return false;
300
        }
301
        return true;
302
    } //-- boolean isValid() 
303

    
304
    /**
305
     * Method marshal
306
     * 
307
     * @param out
308
     */
309
    public void marshal(java.io.Writer out)
310
        throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
311
    {
312
        
313
        Marshaller.marshal(this, out);
314
    } //-- void marshal(java.io.Writer) 
315

    
316
    /**
317
     * Method marshal
318
     * 
319
     * @param handler
320
     */
321
    public void marshal(org.xml.sax.ContentHandler handler)
322
        throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
323
    {
324
        
325
        Marshaller.marshal(this, handler);
326
    } //-- void marshal(org.xml.sax.ContentHandler) 
327

    
328
    /**
329
     * Method removeAllDepends
330
     */
331
    public void removeAllDepends()
332
    {
333
        _dependsList.removeAllElements();
334
    } //-- void removeAllDepends() 
335

    
336
    /**
337
     * Method removeAllLabelSet
338
     */
339
    public void removeAllLabelSet()
340
    {
341
        _labelSetList.removeAllElements();
342
    } //-- void removeAllLabelSet() 
343

    
344
    /**
345
     * Method removeDepends
346
     * 
347
     * @param index
348
     */
349
    public org.gvsig.andami.plugins.config.generate.Depends removeDepends(int index)
350
    {
351
        java.lang.Object obj = _dependsList.elementAt(index);
352
        _dependsList.removeElementAt(index);
353
        return (org.gvsig.andami.plugins.config.generate.Depends) obj;
354
    } //-- com.iver.andami.plugins.config.generate.Depends removeDepends(int) 
355

    
356
    /**
357
     * Method removeLabelSet
358
     * 
359
     * @param index
360
     */
361
    public org.gvsig.andami.plugins.config.generate.LabelSet removeLabelSet(int index)
362
    {
363
        java.lang.Object obj = _labelSetList.elementAt(index);
364
        _labelSetList.removeElementAt(index);
365
        return (org.gvsig.andami.plugins.config.generate.LabelSet) obj;
366
    } //-- com.iver.andami.plugins.config.generate.LabelSet removeLabelSet(int) 
367

    
368
    /**
369
     * Method setDepends
370
     * 
371
     * @param index
372
     * @param vDepends
373
     */
374
    public void setDepends(int index, org.gvsig.andami.plugins.config.generate.Depends vDepends)
375
        throws java.lang.IndexOutOfBoundsException
376
    {
377
        //-- check bounds for index
378
        if ((index < 0) || (index > _dependsList.size())) {
379
            throw new IndexOutOfBoundsException();
380
        }
381
        _dependsList.setElementAt(vDepends, index);
382
    } //-- void setDepends(int, com.iver.andami.plugins.config.generate.Depends) 
383

    
384
    /**
385
     * Method setDepends
386
     * 
387
     * @param dependsArray
388
     */
389
    public void setDepends(org.gvsig.andami.plugins.config.generate.Depends[] dependsArray)
390
    {
391
        //-- copy array
392
        _dependsList.removeAllElements();
393
        for (int i = 0; i < dependsArray.length; i++) {
394
            _dependsList.addElement(dependsArray[i]);
395
        }
396
    } //-- void setDepends(com.iver.andami.plugins.config.generate.Depends) 
397

    
398
    /**
399
     * Sets the value of field 'extensions'.
400
     * 
401
     * @param extensions the value of field 'extensions'.
402
     */
403
    public void setExtensions(org.gvsig.andami.plugins.config.generate.Extensions extensions)
404
    {
405
        this._extensions = extensions;
406
    } //-- void setExtensions(com.iver.andami.plugins.config.generate.Extensions) 
407

    
408
    /**
409
     * Sets the value of field 'icon'.
410
     * 
411
     * @param icon the value of field 'icon'.
412
     */
413
    public void setIcon(org.gvsig.andami.plugins.config.generate.Icon icon)
414
    {
415
        this._icon = icon;
416
    } //-- void setIcon(com.iver.andami.plugins.config.generate.Icon) 
417

    
418
    /**
419
     * Method setLabelSet
420
     * 
421
     * @param index
422
     * @param vLabelSet
423
     */
424
    public void setLabelSet(int index, org.gvsig.andami.plugins.config.generate.LabelSet vLabelSet)
425
        throws java.lang.IndexOutOfBoundsException
426
    {
427
        //-- check bounds for index
428
        if ((index < 0) || (index > _labelSetList.size())) {
429
            throw new IndexOutOfBoundsException();
430
        }
431
        _labelSetList.setElementAt(vLabelSet, index);
432
    } //-- void setLabelSet(int, com.iver.andami.plugins.config.generate.LabelSet) 
433

    
434
    /**
435
     * Method setLabelSet
436
     * 
437
     * @param labelSetArray
438
     */
439
    public void setLabelSet(org.gvsig.andami.plugins.config.generate.LabelSet[] labelSetArray)
440
    {
441
        //-- copy array
442
        _labelSetList.removeAllElements();
443
        for (int i = 0; i < labelSetArray.length; i++) {
444
            _labelSetList.addElement(labelSetArray[i]);
445
        }
446
    } //-- void setLabelSet(com.iver.andami.plugins.config.generate.LabelSet) 
447

    
448
    /**
449
     * Sets the value of field 'libraries'.
450
     * 
451
     * @param libraries the value of field 'libraries'.
452
     */
453
    public void setLibraries(org.gvsig.andami.plugins.config.generate.Libraries libraries)
454
    {
455
        this._libraries = libraries;
456
    } //-- void setLibraries(com.iver.andami.plugins.config.generate.Libraries) 
457

    
458
    /**
459
     * Sets the value of field 'popupMenus'.
460
     * 
461
     * @param popupMenus the value of field 'popupMenus'.
462
     */
463
    public void setPopupMenus(org.gvsig.andami.plugins.config.generate.PopupMenus popupMenus)
464
    {
465
        this._popupMenus = popupMenus;
466
    } //-- void setPopupMenus(com.iver.andami.plugins.config.generate.PopupMenus) 
467

    
468
    /**
469
     * Sets the value of field 'resourceBundle'.
470
     * 
471
     * @param resourceBundle the value of field 'resourceBundle'.
472
     */
473
    public void setResourceBundle(org.gvsig.andami.plugins.config.generate.ResourceBundle resourceBundle)
474
    {
475
        this._resourceBundle = resourceBundle;
476
    } //-- void setResourceBundle(com.iver.andami.plugins.config.generate.ResourceBundle) 
477

    
478
    /**
479
     * Sets the value of field 'updateUrl'.
480
     * 
481
     * @param updateUrl the value of field 'updateUrl'.
482
     */
483
    public void setUpdateUrl(java.lang.String updateUrl)
484
    {
485
        this._updateUrl = updateUrl;
486
    } //-- void setUpdateUrl(java.lang.String) 
487

    
488
    /**
489
     * Method unmarshal
490
     * 
491
     * @param reader
492
     */
493
    public static java.lang.Object unmarshal(java.io.Reader reader)
494
        throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
495
    {
496
        return (org.gvsig.andami.plugins.config.generate.PluginConfig) Unmarshaller.unmarshal(org.gvsig.andami.plugins.config.generate.PluginConfig.class, reader);
497
    } //-- java.lang.Object unmarshal(java.io.Reader) 
498

    
499
    /**
500
     * Method validate
501
     */
502
    public void validate()
503
        throws org.exolab.castor.xml.ValidationException
504
    {
505
        org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
506
        validator.validate(this);
507
    } //-- void validate() 
508

    
509
}