Statistics
| Revision:

svn-gvsig-desktop / trunk / org.gvsig.desktop / org.gvsig.desktop.framework / org.gvsig.andami / src / main / java / org / gvsig / andami / config / generate / AndamiConfig.java @ 43328

History | View | Annotate | Download (11.8 KB)

1 40559 jjdelcerro
/**
2
 * gvSIG. Desktop Geographic Information System.
3
 *
4
 * Copyright (C) 2007-2013 gvSIG Association.
5
 *
6
 * This program is free software; you can redistribute it and/or
7
 * modify it under the terms of the GNU General Public License
8
 * as published by the Free Software Foundation; either version 3
9
 * of the License, or (at your option) any later version.
10
 *
11
 * This program is distributed in the hope that it will be useful,
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 * GNU General Public License for more details.
15
 *
16
 * You should have received a copy of the GNU General Public License
17
 * along with this program; if not, write to the Free Software
18
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
19
 * MA  02110-1301, USA.
20
 *
21
 * For any additional information, do not hesitate to contact us
22
 * at info AT gvsig.com, or visit our website www.gvsig.com.
23
 */
24 40435 jjdelcerro
/*
25
 * This class was automatically generated with
26
 * <a href="http://www.castor.org">Castor 0.9.5.3</a>, using an XML
27
 * Schema.
28
 * $Id: AndamiConfig.java 29593 2009-06-29 15:54:31Z jpiera $
29
 */
30
31
package org.gvsig.andami.config.generate;
32
33
  //---------------------------------/
34
 //- Imported classes and packages -/
35
//---------------------------------/
36
37
import java.util.Vector;
38
39
import org.exolab.castor.xml.Marshaller;
40
import org.exolab.castor.xml.Unmarshaller;
41
42
/**
43
 * Class AndamiConfig.
44
 *
45
 * @version $Revision: 29593 $ $Date: 2009-06-29 17:54:31 +0200 (lun, 29 jun 2009) $
46
 */
47
public class AndamiConfig implements java.io.Serializable {
48
49
50
      //--------------------------/
51
     //- Class/Member Variables -/
52
    //--------------------------/
53
54
    /**
55
     * Field _localeLanguage
56
     */
57
    private java.lang.String _localeLanguage;
58
59
    /**
60
     * Field _localeCountry
61
     */
62
    private java.lang.String _localeCountry;
63
64
    /**
65
     * Field _localeVariant
66
     */
67
    private java.lang.String _localeVariant;
68
69
    /**
70
     * Field _lookAndFeel
71
     */
72
    private java.lang.String _lookAndFeel;
73
74
    /**
75
     * Field _pluginsDirectory
76
     */
77
    private java.lang.String _pluginsDirectory;
78
79
    /**
80
     * Field _andami
81
     */
82
    private org.gvsig.andami.config.generate.Andami _andami;
83
84
    /**
85
     * Field _pluginList
86
     */
87
    private java.util.Vector _pluginList;
88
89
    /**
90
     * Field _andamiOptions
91
     */
92
    private org.gvsig.andami.config.generate.AndamiOptions _andamiOptions;
93
94
95
      //----------------/
96
     //- Constructors -/
97
    //----------------/
98
99
    public AndamiConfig() {
100
        super();
101
        _pluginList = new Vector();
102
    } //-- com.iver.andami.config.generate.AndamiConfig()
103
104
105
      //-----------/
106
     //- Methods -/
107
    //-----------/
108
109
    /**
110
     * Method addPlugin
111
     *
112
     * @param vPlugin
113
     */
114
    public void addPlugin(org.gvsig.andami.config.generate.Plugin vPlugin)
115
        throws java.lang.IndexOutOfBoundsException
116
    {
117
        _pluginList.addElement(vPlugin);
118
    } //-- void addPlugin(com.iver.andami.config.generate.Plugin)
119
120
    /**
121
     * Method addPlugin
122
     *
123
     * @param index
124
     * @param vPlugin
125
     */
126
    public void addPlugin(int index, org.gvsig.andami.config.generate.Plugin vPlugin)
127
        throws java.lang.IndexOutOfBoundsException
128
    {
129
        _pluginList.insertElementAt(vPlugin, index);
130
    } //-- void addPlugin(int, com.iver.andami.config.generate.Plugin)
131
132
    /**
133
     * Method enumeratePlugin
134
     */
135
    public java.util.Enumeration enumeratePlugin()
136
    {
137
        return _pluginList.elements();
138
    } //-- java.util.Enumeration enumeratePlugin()
139
140
    /**
141
     * Returns the value of field 'andami'.
142
     *
143
     * @return the value of field 'andami'.
144
     */
145
    public org.gvsig.andami.config.generate.Andami getAndami()
146
    {
147
        return this._andami;
148
    } //-- com.iver.andami.config.generate.Andami getAndami()
149
150
    /**
151
     * Returns the value of field 'andamiOptions'.
152
     *
153
     * @return the value of field 'andamiOptions'.
154
     */
155
    public org.gvsig.andami.config.generate.AndamiOptions getAndamiOptions()
156
    {
157
        return this._andamiOptions;
158
    } //-- com.iver.andami.config.generate.AndamiOptions getAndamiOptions()
159
160
    /**
161
     * Returns the value of field 'localeCountry'.
162
     *
163
     * @return the value of field 'localeCountry'.
164
     */
165
    public java.lang.String getLocaleCountry()
166
    {
167
        return this._localeCountry;
168
    } //-- java.lang.String getLocaleCountry()
169
170
    /**
171
     * Returns the value of field 'localeLanguage'.
172
     *
173
     * @return the value of field 'localeLanguage'.
174
     */
175
    public java.lang.String getLocaleLanguage()
176
    {
177
        return this._localeLanguage;
178
    } //-- java.lang.String getLocaleLanguage()
179
180
    /**
181
     * Returns the value of field 'localeVariant'.
182
     *
183
     * @return the value of field 'localeVariant'.
184
     */
185
    public java.lang.String getLocaleVariant()
186
    {
187
        return this._localeVariant;
188
    } //-- java.lang.String getLocaleVariant()
189
190
    /**
191
     * Returns the value of field 'lookAndFeel'.
192
     *
193
     * @return the value of field 'lookAndFeel'.
194
     */
195
    public java.lang.String getLookAndFeel()
196
    {
197
        return this._lookAndFeel;
198
    } //-- java.lang.String getLookAndFeel()
199
200
    /**
201
     * Method getPlugin
202
     *
203
     * @param index
204
     */
205
    public org.gvsig.andami.config.generate.Plugin getPlugin(int index)
206
        throws java.lang.IndexOutOfBoundsException
207
    {
208
        //-- check bounds for index
209
        if ((index < 0) || (index > _pluginList.size())) {
210
            throw new IndexOutOfBoundsException();
211
        }
212
213
        return (org.gvsig.andami.config.generate.Plugin) _pluginList.elementAt(index);
214
    } //-- com.iver.andami.config.generate.Plugin getPlugin(int)
215
216
    /**
217
     * Method getPlugin
218
     */
219
    public org.gvsig.andami.config.generate.Plugin[] getPlugin()
220
    {
221
        int size = _pluginList.size();
222
        org.gvsig.andami.config.generate.Plugin[] mArray = new org.gvsig.andami.config.generate.Plugin[size];
223
        for (int index = 0; index < size; index++) {
224
            mArray[index] = (org.gvsig.andami.config.generate.Plugin) _pluginList.elementAt(index);
225
        }
226
        return mArray;
227
    } //-- com.iver.andami.config.generate.Plugin[] getPlugin()
228
229
    /**
230
     * Method getPluginCount
231
     */
232
    public int getPluginCount()
233
    {
234
        return _pluginList.size();
235
    } //-- int getPluginCount()
236
237
    /**
238
     * Returns the value of field 'pluginsDirectory'.
239
     *
240
     * @return the value of field 'pluginsDirectory'.
241
     */
242
    public java.lang.String getPluginsDirectory()
243
    {
244
        return this._pluginsDirectory;
245
    } //-- java.lang.String getPluginsDirectory()
246
247
    /**
248
     * Method isValid
249
     */
250
    public boolean isValid()
251
    {
252
        try {
253
            validate();
254
        }
255
        catch (org.exolab.castor.xml.ValidationException vex) {
256
            return false;
257
        }
258
        return true;
259
    } //-- boolean isValid()
260
261
    /**
262
     * Method marshal
263
     *
264
     * @param out
265
     */
266
    public void marshal(java.io.Writer out)
267
        throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
268
    {
269
270
        Marshaller.marshal(this, out);
271
    } //-- void marshal(java.io.Writer)
272
273
    /**
274
     * Method marshal
275
     *
276
     * @param handler
277
     */
278
    public void marshal(org.xml.sax.ContentHandler handler)
279
        throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
280
    {
281
282
        Marshaller.marshal(this, handler);
283
    } //-- void marshal(org.xml.sax.ContentHandler)
284
285
    /**
286
     * Method removeAllPlugin
287
     */
288
    public void removeAllPlugin()
289
    {
290
        _pluginList.removeAllElements();
291
    } //-- void removeAllPlugin()
292
293
    /**
294
     * Method removePlugin
295
     *
296
     * @param index
297
     */
298
    public org.gvsig.andami.config.generate.Plugin removePlugin(int index)
299
    {
300
        java.lang.Object obj = _pluginList.elementAt(index);
301
        _pluginList.removeElementAt(index);
302
        return (org.gvsig.andami.config.generate.Plugin) obj;
303
    } //-- com.iver.andami.config.generate.Plugin removePlugin(int)
304
305
    /**
306
     * Sets the value of field 'andami'.
307
     *
308
     * @param andami the value of field 'andami'.
309
     */
310
    public void setAndami(org.gvsig.andami.config.generate.Andami andami)
311
    {
312
        this._andami = andami;
313
    } //-- void setAndami(com.iver.andami.config.generate.Andami)
314
315
    /**
316
     * Sets the value of field 'andamiOptions'.
317
     *
318
     * @param andamiOptions the value of field 'andamiOptions'.
319
     */
320
    public void setAndamiOptions(org.gvsig.andami.config.generate.AndamiOptions andamiOptions)
321
    {
322
        this._andamiOptions = andamiOptions;
323
    } //-- void setAndamiOptions(com.iver.andami.config.generate.AndamiOptions)
324
325
    /**
326
     * Sets the value of field 'localeCountry'.
327
     *
328
     * @param localeCountry the value of field 'localeCountry'.
329
     */
330
    public void setLocaleCountry(java.lang.String localeCountry)
331
    {
332
        this._localeCountry = localeCountry;
333
    } //-- void setLocaleCountry(java.lang.String)
334
335
    /**
336
     * Sets the value of field 'localeLanguage'.
337
     *
338
     * @param localeLanguage the value of field 'localeLanguage'.
339
     */
340
    public void setLocaleLanguage(java.lang.String localeLanguage)
341
    {
342
        this._localeLanguage = localeLanguage;
343
    } //-- void setLocaleLanguage(java.lang.String)
344
345
    /**
346
     * Sets the value of field 'localeVariant'.
347
     *
348
     * @param localeVariant the value of field 'localeVariant'.
349
     */
350
    public void setLocaleVariant(java.lang.String localeVariant)
351
    {
352
        this._localeVariant = localeVariant;
353
    } //-- void setLocaleVariant(java.lang.String)
354
355
    /**
356
     * Sets the value of field 'lookAndFeel'.
357
     *
358
     * @param lookAndFeel the value of field 'lookAndFeel'.
359
     */
360
    public void setLookAndFeel(java.lang.String lookAndFeel)
361
    {
362
        this._lookAndFeel = lookAndFeel;
363
    } //-- void setLookAndFeel(java.lang.String)
364
365
    /**
366
     * Method setPlugin
367
     *
368
     * @param index
369
     * @param vPlugin
370
     */
371
    public void setPlugin(int index, org.gvsig.andami.config.generate.Plugin vPlugin)
372
        throws java.lang.IndexOutOfBoundsException
373
    {
374
        //-- check bounds for index
375
        if ((index < 0) || (index > _pluginList.size())) {
376
            throw new IndexOutOfBoundsException();
377
        }
378
        _pluginList.setElementAt(vPlugin, index);
379
    } //-- void setPlugin(int, com.iver.andami.config.generate.Plugin)
380
381
    /**
382
     * Method setPlugin
383
     *
384
     * @param pluginArray
385
     */
386
    public void setPlugin(org.gvsig.andami.config.generate.Plugin[] pluginArray)
387
    {
388
        //-- copy array
389
        _pluginList.removeAllElements();
390
        for (int i = 0; i < pluginArray.length; i++) {
391
            _pluginList.addElement(pluginArray[i]);
392
        }
393
    } //-- void setPlugin(com.iver.andami.config.generate.Plugin)
394
395
    /**
396
     * Sets the value of field 'pluginsDirectory'.
397
     *
398
     * @param pluginsDirectory the value of field 'pluginsDirectory'
399
     */
400
    public void setPluginsDirectory(java.lang.String pluginsDirectory)
401
    {
402
        this._pluginsDirectory = pluginsDirectory;
403
    } //-- void setPluginsDirectory(java.lang.String)
404
405
    /**
406
     * Method unmarshal
407
     *
408
     * @param reader
409
     */
410
    public static java.lang.Object unmarshal(java.io.Reader reader)
411
        throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
412
    {
413
        return (org.gvsig.andami.config.generate.AndamiConfig) Unmarshaller.unmarshal(org.gvsig.andami.config.generate.AndamiConfig.class, reader);
414
    } //-- java.lang.Object unmarshal(java.io.Reader)
415
416
    /**
417
     * Method validate
418
     */
419
    public void validate()
420
        throws org.exolab.castor.xml.ValidationException
421
    {
422
        org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
423
        validator.validate(this);
424
    } //-- void validate()
425
426
}