Revision 11032

View differences:

trunk/frameworks/_fwAndami/schemas/andami-config.xml
1
<andami-config locale-languaje="es" locale-country="ES" locale-variant="es" pluginsDirectory="c:\tirar">
1
<andami-config locale-language="es" locale-country="ES" locale-variant="es" pluginsDirectory="c:\tirar">
2 2
	<andami update="yes"/>
3 3
	<plugin name="com.iver.cit.gvsig" update="yes"/>
4 4
	<plugin name="com.iver.core" update="no"/>
5
	<andami-options>
6
	  <option name="CustomOption1" value="customValue1"/>
7
	  <icon-theme name="DefaultTheme" resource="iconThemes/default" basedir="iconThemes" />
8
	</andami-options>
5 9
</andami-config>
trunk/frameworks/_fwAndami/src/com/iver/andami/config/generate/IconTheme.java
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$
6
 */
7

  
8
package com.iver.andami.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 org.exolab.castor.xml.MarshalException;
19
import org.exolab.castor.xml.Marshaller;
20
import org.exolab.castor.xml.Unmarshaller;
21
import org.exolab.castor.xml.ValidationException;
22
import org.xml.sax.ContentHandler;
23

  
24
/**
25
 * Class IconTheme.
26
 * 
27
 * @version $Revision$ $Date$
28
 */
29
public class IconTheme implements java.io.Serializable {
30

  
31

  
32
      //--------------------------/
33
     //- Class/Member Variables -/
34
    //--------------------------/
35

  
36
    /**
37
     * Field _name
38
     */
39
    private java.lang.String _name;
40

  
41
    /**
42
     * Field _description
43
     */
44
    private java.lang.String _description;
45

  
46
    /**
47
     * Field _version
48
     */
49
    private java.lang.String _version;
50

  
51
    /**
52
     * Field _resource
53
     */
54
    private java.lang.String _resource;
55

  
56
    /**
57
     * Field _basedir
58
     */
59
    private java.lang.String _basedir;
60

  
61

  
62
      //----------------/
63
     //- Constructors -/
64
    //----------------/
65

  
66
    public IconTheme() {
67
        super();
68
    } //-- com.iver.andami.config.generate.IconTheme()
69

  
70

  
71
      //-----------/
72
     //- Methods -/
73
    //-----------/
74

  
75
    /**
76
     * Returns the value of field 'basedir'.
77
     * 
78
     * @return the value of field 'basedir'.
79
     */
80
    public java.lang.String getBasedir()
81
    {
82
        return this._basedir;
83
    } //-- java.lang.String getBasedir() 
84

  
85
    /**
86
     * Returns the value of field 'description'.
87
     * 
88
     * @return the value of field 'description'.
89
     */
90
    public java.lang.String getDescription()
91
    {
92
        return this._description;
93
    } //-- java.lang.String getDescription() 
94

  
95
    /**
96
     * Returns the value of field 'name'.
97
     * 
98
     * @return the value of field 'name'.
99
     */
100
    public java.lang.String getName()
101
    {
102
        return this._name;
103
    } //-- java.lang.String getName() 
104

  
105
    /**
106
     * Returns the value of field 'resource'.
107
     * 
108
     * @return the value of field 'resource'.
109
     */
110
    public java.lang.String getResource()
111
    {
112
        return this._resource;
113
    } //-- java.lang.String getResource() 
114

  
115
    /**
116
     * Returns the value of field 'version'.
117
     * 
118
     * @return the value of field 'version'.
119
     */
120
    public java.lang.String getVersion()
121
    {
122
        return this._version;
123
    } //-- java.lang.String getVersion() 
124

  
125
    /**
126
     * Method isValid
127
     */
128
    public boolean isValid()
129
    {
130
        try {
131
            validate();
132
        }
133
        catch (org.exolab.castor.xml.ValidationException vex) {
134
            return false;
135
        }
136
        return true;
137
    } //-- boolean isValid() 
138

  
139
    /**
140
     * Method marshal
141
     * 
142
     * @param out
143
     */
144
    public void marshal(java.io.Writer out)
145
        throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
146
    {
147
        
148
        Marshaller.marshal(this, out);
149
    } //-- void marshal(java.io.Writer) 
150

  
151
    /**
152
     * Method marshal
153
     * 
154
     * @param handler
155
     */
156
    public void marshal(org.xml.sax.ContentHandler handler)
157
        throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
158
    {
159
        
160
        Marshaller.marshal(this, handler);
161
    } //-- void marshal(org.xml.sax.ContentHandler) 
162

  
163
    /**
164
     * Sets the value of field 'basedir'.
165
     * 
166
     * @param basedir the value of field 'basedir'.
167
     */
168
    public void setBasedir(java.lang.String basedir)
169
    {
170
        this._basedir = basedir;
171
    } //-- void setBasedir(java.lang.String) 
172

  
173
    /**
174
     * Sets the value of field 'description'.
175
     * 
176
     * @param description the value of field 'description'.
177
     */
178
    public void setDescription(java.lang.String description)
179
    {
180
        this._description = description;
181
    } //-- void setDescription(java.lang.String) 
182

  
183
    /**
184
     * Sets the value of field 'name'.
185
     * 
186
     * @param name the value of field 'name'.
187
     */
188
    public void setName(java.lang.String name)
189
    {
190
        this._name = name;
191
    } //-- void setName(java.lang.String) 
192

  
193
    /**
194
     * Sets the value of field 'resource'.
195
     * 
196
     * @param resource the value of field 'resource'.
197
     */
198
    public void setResource(java.lang.String resource)
199
    {
200
        this._resource = resource;
201
    } //-- void setResource(java.lang.String) 
202

  
203
    /**
204
     * Sets the value of field 'version'.
205
     * 
206
     * @param version the value of field 'version'.
207
     */
208
    public void setVersion(java.lang.String version)
209
    {
210
        this._version = version;
211
    } //-- void setVersion(java.lang.String) 
212

  
213
    /**
214
     * Method unmarshal
215
     * 
216
     * @param reader
217
     */
218
    public static java.lang.Object unmarshal(java.io.Reader reader)
219
        throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
220
    {
221
        return (com.iver.andami.config.generate.IconTheme) Unmarshaller.unmarshal(com.iver.andami.config.generate.IconTheme.class, reader);
222
    } //-- java.lang.Object unmarshal(java.io.Reader) 
223

  
224
    /**
225
     * Method validate
226
     */
227
    public void validate()
228
        throws org.exolab.castor.xml.ValidationException
229
    {
230
        org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
231
        validator.validate(this);
232
    } //-- void validate() 
233

  
234
}
0 235

  
trunk/frameworks/_fwAndami/src/com/iver/andami/config/generate/AndamiConfigDescriptor.java
318 318
        { //-- local scope
319 319
        }
320 320
        desc.setValidator(fieldValidator);
321
        //-- _andamiOptions
322
        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(com.iver.andami.config.generate.AndamiOptions.class, "_andamiOptions", "andami-options", org.exolab.castor.xml.NodeType.Element);
323
        handler = (new org.exolab.castor.xml.XMLFieldHandler() {
324
            public java.lang.Object getValue( java.lang.Object object ) 
325
                throws IllegalStateException
326
            {
327
                AndamiConfig target = (AndamiConfig) object;
328
                return target.getAndamiOptions();
329
            }
330
            public void setValue( java.lang.Object object, java.lang.Object value) 
331
                throws IllegalStateException, IllegalArgumentException
332
            {
333
                try {
334
                    AndamiConfig target = (AndamiConfig) object;
335
                    target.setAndamiOptions( (com.iver.andami.config.generate.AndamiOptions) value);
336
                }
337
                catch (java.lang.Exception ex) {
338
                    throw new IllegalStateException(ex.toString());
339
                }
340
            }
341
            public java.lang.Object newInstance( java.lang.Object parent ) {
342
                return new com.iver.andami.config.generate.AndamiOptions();
343
            }
344
        } );
345
        desc.setHandler(handler);
346
        desc.setMultivalued(false);
347
        addFieldDescriptor(desc);
348
        
349
        //-- validation code for: _andamiOptions
350
        fieldValidator = new org.exolab.castor.xml.FieldValidator();
351
        { //-- local scope
352
        }
353
        desc.setValidator(fieldValidator);
321 354
    } //-- com.iver.andami.config.generate.AndamiConfigDescriptor()
322 355

  
323 356

  
trunk/frameworks/_fwAndami/src/com/iver/andami/config/generate/AndamiConfig.java
70 70
     */
71 71
    private java.util.Vector _pluginList;
72 72

  
73
    /**
74
     * Field _andamiOptions
75
     */
76
    private com.iver.andami.config.generate.AndamiOptions _andamiOptions;
73 77

  
78

  
74 79
      //----------------/
75 80
     //- Constructors -/
76 81
    //----------------/
......
127 132
    } //-- com.iver.andami.config.generate.Andami getAndami() 
128 133

  
129 134
    /**
135
     * Returns the value of field 'andamiOptions'.
136
     * 
137
     * @return the value of field 'andamiOptions'.
138
     */
139
    public com.iver.andami.config.generate.AndamiOptions getAndamiOptions()
140
    {
141
        return this._andamiOptions;
142
    } //-- com.iver.andami.config.generate.AndamiOptions getAndamiOptions() 
143

  
144
    /**
130 145
     * Returns the value of field 'localeCountry'.
131 146
     * 
132 147
     * @return the value of field 'localeCountry'.
......
282 297
    } //-- void setAndami(com.iver.andami.config.generate.Andami) 
283 298

  
284 299
    /**
300
     * Sets the value of field 'andamiOptions'.
301
     * 
302
     * @param andamiOptions the value of field 'andamiOptions'.
303
     */
304
    public void setAndamiOptions(com.iver.andami.config.generate.AndamiOptions andamiOptions)
305
    {
306
        this._andamiOptions = andamiOptions;
307
    } //-- void setAndamiOptions(com.iver.andami.config.generate.AndamiOptions) 
308

  
309
    /**
285 310
     * Sets the value of field 'localeCountry'.
286 311
     * 
287 312
     * @param localeCountry the value of field 'localeCountry'.
trunk/frameworks/_fwAndami/src/com/iver/andami/config/generate/AndamiOptionsDescriptor.java
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$
6
 */
7

  
8
package com.iver.andami.config.generate;
9

  
10
  //---------------------------------/
11
 //- Imported classes and packages -/
12
//---------------------------------/
13

  
14
import org.exolab.castor.mapping.AccessMode;
15
import org.exolab.castor.xml.TypeValidator;
16
import org.exolab.castor.xml.XMLFieldDescriptor;
17
import org.exolab.castor.xml.validators.*;
18

  
19
/**
20
 * Class AndamiOptionsDescriptor.
21
 * 
22
 * @version $Revision$ $Date$
23
 */
24
public class AndamiOptionsDescriptor extends org.exolab.castor.xml.util.XMLClassDescriptorImpl {
25

  
26

  
27
      //--------------------------/
28
     //- Class/Member Variables -/
29
    //--------------------------/
30

  
31
    /**
32
     * Field nsPrefix
33
     */
34
    private java.lang.String nsPrefix;
35

  
36
    /**
37
     * Field nsURI
38
     */
39
    private java.lang.String nsURI;
40

  
41
    /**
42
     * Field xmlName
43
     */
44
    private java.lang.String xmlName;
45

  
46
    /**
47
     * Field identity
48
     */
49
    private org.exolab.castor.xml.XMLFieldDescriptor identity;
50

  
51

  
52
      //----------------/
53
     //- Constructors -/
54
    //----------------/
55

  
56
    public AndamiOptionsDescriptor() {
57
        super();
58
        xmlName = "andami-options";
59
        
60
        //-- set grouping compositor
61
        setCompositorAsSequence();
62
        org.exolab.castor.xml.util.XMLFieldDescriptorImpl  desc           = null;
63
        org.exolab.castor.xml.XMLFieldHandler              handler        = null;
64
        org.exolab.castor.xml.FieldValidator               fieldValidator = null;
65
        //-- initialize attribute descriptors
66
        
67
        //-- initialize element descriptors
68
        
69
        //-- _optionList
70
        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(com.iver.andami.config.generate.Option.class, "_optionList", "option", org.exolab.castor.xml.NodeType.Element);
71
        handler = (new org.exolab.castor.xml.XMLFieldHandler() {
72
            public java.lang.Object getValue( java.lang.Object object ) 
73
                throws IllegalStateException
74
            {
75
                AndamiOptions target = (AndamiOptions) object;
76
                return target.getOption();
77
            }
78
            public void setValue( java.lang.Object object, java.lang.Object value) 
79
                throws IllegalStateException, IllegalArgumentException
80
            {
81
                try {
82
                    AndamiOptions target = (AndamiOptions) object;
83
                    target.addOption( (com.iver.andami.config.generate.Option) value);
84
                }
85
                catch (java.lang.Exception ex) {
86
                    throw new IllegalStateException(ex.toString());
87
                }
88
            }
89
            public java.lang.Object newInstance( java.lang.Object parent ) {
90
                return new com.iver.andami.config.generate.Option();
91
            }
92
        } );
93
        desc.setHandler(handler);
94
        desc.setMultivalued(true);
95
        addFieldDescriptor(desc);
96
        
97
        //-- validation code for: _optionList
98
        fieldValidator = new org.exolab.castor.xml.FieldValidator();
99
        fieldValidator.setMinOccurs(0);
100
        { //-- local scope
101
        }
102
        desc.setValidator(fieldValidator);
103
        //-- _iconTheme
104
        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(com.iver.andami.config.generate.IconTheme.class, "_iconTheme", "icon-theme", org.exolab.castor.xml.NodeType.Element);
105
        handler = (new org.exolab.castor.xml.XMLFieldHandler() {
106
            public java.lang.Object getValue( java.lang.Object object ) 
107
                throws IllegalStateException
108
            {
109
                AndamiOptions target = (AndamiOptions) object;
110
                return target.getIconTheme();
111
            }
112
            public void setValue( java.lang.Object object, java.lang.Object value) 
113
                throws IllegalStateException, IllegalArgumentException
114
            {
115
                try {
116
                    AndamiOptions target = (AndamiOptions) object;
117
                    target.setIconTheme( (com.iver.andami.config.generate.IconTheme) value);
118
                }
119
                catch (java.lang.Exception ex) {
120
                    throw new IllegalStateException(ex.toString());
121
                }
122
            }
123
            public java.lang.Object newInstance( java.lang.Object parent ) {
124
                return new com.iver.andami.config.generate.IconTheme();
125
            }
126
        } );
127
        desc.setHandler(handler);
128
        desc.setMultivalued(false);
129
        addFieldDescriptor(desc);
130
        
131
        //-- validation code for: _iconTheme
132
        fieldValidator = new org.exolab.castor.xml.FieldValidator();
133
        { //-- local scope
134
        }
135
        desc.setValidator(fieldValidator);
136
    } //-- com.iver.andami.config.generate.AndamiOptionsDescriptor()
137

  
138

  
139
      //-----------/
140
     //- Methods -/
141
    //-----------/
142

  
143
    /**
144
     * Method getAccessMode
145
     */
146
    public org.exolab.castor.mapping.AccessMode getAccessMode()
147
    {
148
        return null;
149
    } //-- org.exolab.castor.mapping.AccessMode getAccessMode() 
150

  
151
    /**
152
     * Method getExtends
153
     */
154
    public org.exolab.castor.mapping.ClassDescriptor getExtends()
155
    {
156
        return null;
157
    } //-- org.exolab.castor.mapping.ClassDescriptor getExtends() 
158

  
159
    /**
160
     * Method getIdentity
161
     */
162
    public org.exolab.castor.mapping.FieldDescriptor getIdentity()
163
    {
164
        return identity;
165
    } //-- org.exolab.castor.mapping.FieldDescriptor getIdentity() 
166

  
167
    /**
168
     * Method getJavaClass
169
     */
170
    public java.lang.Class getJavaClass()
171
    {
172
        return com.iver.andami.config.generate.AndamiOptions.class;
173
    } //-- java.lang.Class getJavaClass() 
174

  
175
    /**
176
     * Method getNameSpacePrefix
177
     */
178
    public java.lang.String getNameSpacePrefix()
179
    {
180
        return nsPrefix;
181
    } //-- java.lang.String getNameSpacePrefix() 
182

  
183
    /**
184
     * Method getNameSpaceURI
185
     */
186
    public java.lang.String getNameSpaceURI()
187
    {
188
        return nsURI;
189
    } //-- java.lang.String getNameSpaceURI() 
190

  
191
    /**
192
     * Method getValidator
193
     */
194
    public org.exolab.castor.xml.TypeValidator getValidator()
195
    {
196
        return this;
197
    } //-- org.exolab.castor.xml.TypeValidator getValidator() 
198

  
199
    /**
200
     * Method getXMLName
201
     */
202
    public java.lang.String getXMLName()
203
    {
204
        return xmlName;
205
    } //-- java.lang.String getXMLName() 
206

  
207
}
0 208

  
trunk/frameworks/_fwAndami/src/com/iver/andami/config/generate/AndamiOptions.java
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$
6
 */
7

  
8
package com.iver.andami.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 AndamiOptions.
28
 * 
29
 * @version $Revision$ $Date$
30
 */
31
public class AndamiOptions implements java.io.Serializable {
32

  
33

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

  
38
    /**
39
     * Field _optionList
40
     */
41
    private java.util.Vector _optionList;
42

  
43
    /**
44
     * Field _iconTheme
45
     */
46
    private com.iver.andami.config.generate.IconTheme _iconTheme;
47

  
48

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

  
53
    public AndamiOptions() {
54
        super();
55
        _optionList = new Vector();
56
    } //-- com.iver.andami.config.generate.AndamiOptions()
57

  
58

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

  
63
    /**
64
     * Method addOption
65
     * 
66
     * @param vOption
67
     */
68
    public void addOption(com.iver.andami.config.generate.Option vOption)
69
        throws java.lang.IndexOutOfBoundsException
70
    {
71
        _optionList.addElement(vOption);
72
    } //-- void addOption(com.iver.andami.config.generate.Option) 
73

  
74
    /**
75
     * Method addOption
76
     * 
77
     * @param index
78
     * @param vOption
79
     */
80
    public void addOption(int index, com.iver.andami.config.generate.Option vOption)
81
        throws java.lang.IndexOutOfBoundsException
82
    {
83
        _optionList.insertElementAt(vOption, index);
84
    } //-- void addOption(int, com.iver.andami.config.generate.Option) 
85

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

  
94
    /**
95
     * Returns the value of field 'iconTheme'.
96
     * 
97
     * @return the value of field 'iconTheme'.
98
     */
99
    public com.iver.andami.config.generate.IconTheme getIconTheme()
100
    {
101
        return this._iconTheme;
102
    } //-- com.iver.andami.config.generate.IconTheme getIconTheme() 
103

  
104
    /**
105
     * Method getOption
106
     * 
107
     * @param index
108
     */
109
    public com.iver.andami.config.generate.Option getOption(int index)
110
        throws java.lang.IndexOutOfBoundsException
111
    {
112
        //-- check bounds for index
113
        if ((index < 0) || (index > _optionList.size())) {
114
            throw new IndexOutOfBoundsException();
115
        }
116
        
117
        return (com.iver.andami.config.generate.Option) _optionList.elementAt(index);
118
    } //-- com.iver.andami.config.generate.Option getOption(int) 
119

  
120
    /**
121
     * Method getOption
122
     */
123
    public com.iver.andami.config.generate.Option[] getOption()
124
    {
125
        int size = _optionList.size();
126
        com.iver.andami.config.generate.Option[] mArray = new com.iver.andami.config.generate.Option[size];
127
        for (int index = 0; index < size; index++) {
128
            mArray[index] = (com.iver.andami.config.generate.Option) _optionList.elementAt(index);
129
        }
130
        return mArray;
131
    } //-- com.iver.andami.config.generate.Option[] getOption() 
132

  
133
    /**
134
     * Method getOptionCount
135
     */
136
    public int getOptionCount()
137
    {
138
        return _optionList.size();
139
    } //-- int getOptionCount() 
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 removeAllOption
181
     */
182
    public void removeAllOption()
183
    {
184
        _optionList.removeAllElements();
185
    } //-- void removeAllOption() 
186

  
187
    /**
188
     * Method removeOption
189
     * 
190
     * @param index
191
     */
192
    public com.iver.andami.config.generate.Option removeOption(int index)
193
    {
194
        java.lang.Object obj = _optionList.elementAt(index);
195
        _optionList.removeElementAt(index);
196
        return (com.iver.andami.config.generate.Option) obj;
197
    } //-- com.iver.andami.config.generate.Option removeOption(int) 
198

  
199
    /**
200
     * Sets the value of field 'iconTheme'.
201
     * 
202
     * @param iconTheme the value of field 'iconTheme'.
203
     */
204
    public void setIconTheme(com.iver.andami.config.generate.IconTheme iconTheme)
205
    {
206
        this._iconTheme = iconTheme;
207
    } //-- void setIconTheme(com.iver.andami.config.generate.IconTheme) 
208

  
209
    /**
210
     * Method setOption
211
     * 
212
     * @param index
213
     * @param vOption
214
     */
215
    public void setOption(int index, com.iver.andami.config.generate.Option vOption)
216
        throws java.lang.IndexOutOfBoundsException
217
    {
218
        //-- check bounds for index
219
        if ((index < 0) || (index > _optionList.size())) {
220
            throw new IndexOutOfBoundsException();
221
        }
222
        _optionList.setElementAt(vOption, index);
223
    } //-- void setOption(int, com.iver.andami.config.generate.Option) 
224

  
225
    /**
226
     * Method setOption
227
     * 
228
     * @param optionArray
229
     */
230
    public void setOption(com.iver.andami.config.generate.Option[] optionArray)
231
    {
232
        //-- copy array
233
        _optionList.removeAllElements();
234
        for (int i = 0; i < optionArray.length; i++) {
235
            _optionList.addElement(optionArray[i]);
236
        }
237
    } //-- void setOption(com.iver.andami.config.generate.Option) 
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.andami.config.generate.AndamiOptions) Unmarshaller.unmarshal(com.iver.andami.config.generate.AndamiOptions.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
}
0 261

  
trunk/frameworks/_fwAndami/src/com/iver/andami/config/generate/OptionDescriptor.java
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$
6
 */
7

  
8
package com.iver.andami.config.generate;
9

  
10
  //---------------------------------/
11
 //- Imported classes and packages -/
12
//---------------------------------/
13

  
14
import org.exolab.castor.mapping.AccessMode;
15
import org.exolab.castor.xml.TypeValidator;
16
import org.exolab.castor.xml.XMLFieldDescriptor;
17
import org.exolab.castor.xml.validators.*;
18

  
19
/**
20
 * Class OptionDescriptor.
21
 * 
22
 * @version $Revision$ $Date$
23
 */
24
public class OptionDescriptor extends org.exolab.castor.xml.util.XMLClassDescriptorImpl {
25

  
26

  
27
      //--------------------------/
28
     //- Class/Member Variables -/
29
    //--------------------------/
30

  
31
    /**
32
     * Field nsPrefix
33
     */
34
    private java.lang.String nsPrefix;
35

  
36
    /**
37
     * Field nsURI
38
     */
39
    private java.lang.String nsURI;
40

  
41
    /**
42
     * Field xmlName
43
     */
44
    private java.lang.String xmlName;
45

  
46
    /**
47
     * Field identity
48
     */
49
    private org.exolab.castor.xml.XMLFieldDescriptor identity;
50

  
51

  
52
      //----------------/
53
     //- Constructors -/
54
    //----------------/
55

  
56
    public OptionDescriptor() {
57
        super();
58
        xmlName = "option";
59
        org.exolab.castor.xml.util.XMLFieldDescriptorImpl  desc           = null;
60
        org.exolab.castor.xml.XMLFieldHandler              handler        = null;
61
        org.exolab.castor.xml.FieldValidator               fieldValidator = null;
62
        //-- initialize attribute descriptors
63
        
64
        //-- _name
65
        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_name", "name", org.exolab.castor.xml.NodeType.Attribute);
66
        desc.setImmutable(true);
67
        handler = (new org.exolab.castor.xml.XMLFieldHandler() {
68
            public java.lang.Object getValue( java.lang.Object object ) 
69
                throws IllegalStateException
70
            {
71
                Option target = (Option) object;
72
                return target.getName();
73
            }
74
            public void setValue( java.lang.Object object, java.lang.Object value) 
75
                throws IllegalStateException, IllegalArgumentException
76
            {
77
                try {
78
                    Option target = (Option) object;
79
                    target.setName( (java.lang.String) value);
80
                }
81
                catch (java.lang.Exception ex) {
82
                    throw new IllegalStateException(ex.toString());
83
                }
84
            }
85
            public java.lang.Object newInstance( java.lang.Object parent ) {
86
                return null;
87
            }
88
        } );
89
        desc.setHandler(handler);
90
        desc.setRequired(true);
91
        addFieldDescriptor(desc);
92
        
93
        //-- validation code for: _name
94
        fieldValidator = new org.exolab.castor.xml.FieldValidator();
95
        fieldValidator.setMinOccurs(1);
96
        { //-- local scope
97
            StringValidator typeValidator = new StringValidator();
98
            typeValidator.setWhiteSpace("preserve");
99
            fieldValidator.setValidator(typeValidator);
100
        }
101
        desc.setValidator(fieldValidator);
102
        //-- _value
103
        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_value", "value", org.exolab.castor.xml.NodeType.Attribute);
104
        desc.setImmutable(true);
105
        handler = (new org.exolab.castor.xml.XMLFieldHandler() {
106
            public java.lang.Object getValue( java.lang.Object object ) 
107
                throws IllegalStateException
108
            {
109
                Option target = (Option) object;
110
                return target.getValue();
111
            }
112
            public void setValue( java.lang.Object object, java.lang.Object value) 
113
                throws IllegalStateException, IllegalArgumentException
114
            {
115
                try {
116
                    Option target = (Option) object;
117
                    target.setValue( (java.lang.String) value);
118
                }
119
                catch (java.lang.Exception ex) {
120
                    throw new IllegalStateException(ex.toString());
121
                }
122
            }
123
            public java.lang.Object newInstance( java.lang.Object parent ) {
124
                return null;
125
            }
126
        } );
127
        desc.setHandler(handler);
128
        desc.setRequired(true);
129
        addFieldDescriptor(desc);
130
        
131
        //-- validation code for: _value
132
        fieldValidator = new org.exolab.castor.xml.FieldValidator();
133
        fieldValidator.setMinOccurs(1);
134
        { //-- local scope
135
            StringValidator typeValidator = new StringValidator();
136
            typeValidator.setWhiteSpace("preserve");
137
            fieldValidator.setValidator(typeValidator);
138
        }
139
        desc.setValidator(fieldValidator);
140
        //-- initialize element descriptors
141
        
142
    } //-- com.iver.andami.config.generate.OptionDescriptor()
143

  
144

  
145
      //-----------/
146
     //- Methods -/
147
    //-----------/
148

  
149
    /**
150
     * Method getAccessMode
151
     */
152
    public org.exolab.castor.mapping.AccessMode getAccessMode()
153
    {
154
        return null;
155
    } //-- org.exolab.castor.mapping.AccessMode getAccessMode() 
156

  
157
    /**
158
     * Method getExtends
159
     */
160
    public org.exolab.castor.mapping.ClassDescriptor getExtends()
161
    {
162
        return null;
163
    } //-- org.exolab.castor.mapping.ClassDescriptor getExtends() 
164

  
165
    /**
166
     * Method getIdentity
167
     */
168
    public org.exolab.castor.mapping.FieldDescriptor getIdentity()
169
    {
170
        return identity;
171
    } //-- org.exolab.castor.mapping.FieldDescriptor getIdentity() 
172

  
173
    /**
174
     * Method getJavaClass
175
     */
176
    public java.lang.Class getJavaClass()
177
    {
178
        return com.iver.andami.config.generate.Option.class;
179
    } //-- java.lang.Class getJavaClass() 
180

  
181
    /**
182
     * Method getNameSpacePrefix
183
     */
184
    public java.lang.String getNameSpacePrefix()
185
    {
186
        return nsPrefix;
187
    } //-- java.lang.String getNameSpacePrefix() 
188

  
189
    /**
190
     * Method getNameSpaceURI
191
     */
192
    public java.lang.String getNameSpaceURI()
193
    {
194
        return nsURI;
195
    } //-- java.lang.String getNameSpaceURI() 
196

  
197
    /**
198
     * Method getValidator
199
     */
200
    public org.exolab.castor.xml.TypeValidator getValidator()
201
    {
202
        return this;
203
    } //-- org.exolab.castor.xml.TypeValidator getValidator() 
204

  
205
    /**
206
     * Method getXMLName
207
     */
208
    public java.lang.String getXMLName()
209
    {
210
        return xmlName;
211
    } //-- java.lang.String getXMLName() 
212

  
213
}
0 214

  
trunk/frameworks/_fwAndami/src/com/iver/andami/config/generate/Option.java
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$
6
 */
7

  
8
package com.iver.andami.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 org.exolab.castor.xml.MarshalException;
19
import org.exolab.castor.xml.Marshaller;
20
import org.exolab.castor.xml.Unmarshaller;
21
import org.exolab.castor.xml.ValidationException;
22
import org.xml.sax.ContentHandler;
23

  
24
/**
25
 * Class Option.
26
 * 
27
 * @version $Revision$ $Date$
28
 */
29
public class Option implements java.io.Serializable {
30

  
31

  
32
      //--------------------------/
33
     //- Class/Member Variables -/
34
    //--------------------------/
35

  
36
    /**
37
     * Field _name
38
     */
39
    private java.lang.String _name;
40

  
41
    /**
42
     * Field _value
43
     */
44
    private java.lang.String _value;
45

  
46

  
47
      //----------------/
48
     //- Constructors -/
49
    //----------------/
50

  
51
    public Option() {
52
        super();
53
    } //-- com.iver.andami.config.generate.Option()
54

  
55

  
56
      //-----------/
57
     //- Methods -/
58
    //-----------/
59

  
60
    /**
61
     * Returns the value of field 'name'.
62
     * 
63
     * @return the value of field 'name'.
64
     */
65
    public java.lang.String getName()
66
    {
67
        return this._name;
68
    } //-- java.lang.String getName() 
69

  
70
    /**
71
     * Returns the value of field 'value'.
72
     * 
73
     * @return the value of field 'value'.
74
     */
75
    public java.lang.String getValue()
76
    {
77
        return this._value;
78
    } //-- java.lang.String getValue() 
79

  
80
    /**
81
     * Method isValid
82
     */
83
    public boolean isValid()
84
    {
85
        try {
86
            validate();
87
        }
88
        catch (org.exolab.castor.xml.ValidationException vex) {
89
            return false;
90
        }
91
        return true;
92
    } //-- boolean isValid() 
93

  
94
    /**
95
     * Method marshal
96
     * 
97
     * @param out
98
     */
99
    public void marshal(java.io.Writer out)
100
        throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
101
    {
102
        
103
        Marshaller.marshal(this, out);
104
    } //-- void marshal(java.io.Writer) 
105

  
106
    /**
107
     * Method marshal
108
     * 
109
     * @param handler
110
     */
111
    public void marshal(org.xml.sax.ContentHandler handler)
112
        throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
113
    {
114
        
115
        Marshaller.marshal(this, handler);
116
    } //-- void marshal(org.xml.sax.ContentHandler) 
117

  
118
    /**
119
     * Sets the value of field 'name'.
120
     * 
121
     * @param name the value of field 'name'.
122
     */
123
    public void setName(java.lang.String name)
124
    {
125
        this._name = name;
126
    } //-- void setName(java.lang.String) 
127

  
128
    /**
129
     * Sets the value of field 'value'.
130
     * 
131
     * @param value the value of field 'value'.
132
     */
133
    public void setValue(java.lang.String value)
134
    {
135
        this._value = value;
136
    } //-- void setValue(java.lang.String) 
137

  
138
    /**
139
     * Method unmarshal
140
     * 
141
     * @param reader
142
     */
143
    public static java.lang.Object unmarshal(java.io.Reader reader)
144
        throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
145
    {
146
        return (com.iver.andami.config.generate.Option) Unmarshaller.unmarshal(com.iver.andami.config.generate.Option.class, reader);
147
    } //-- java.lang.Object unmarshal(java.io.Reader) 
148

  
149
    /**
150
     * Method validate
151
     */
152
    public void validate()
153
        throws org.exolab.castor.xml.ValidationException
154
    {
155
        org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
156
        validator.validate(this);
157
    } //-- void validate() 
158

  
159
}
0 160

  
trunk/frameworks/_fwAndami/src/com/iver/andami/config/generate/IconThemeDescriptor.java
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$
6
 */
7

  
8
package com.iver.andami.config.generate;
9

  
10
  //---------------------------------/
11
 //- Imported classes and packages -/
12
//---------------------------------/
13

  
14
import org.exolab.castor.mapping.AccessMode;
15
import org.exolab.castor.xml.TypeValidator;
16
import org.exolab.castor.xml.XMLFieldDescriptor;
17
import org.exolab.castor.xml.validators.*;
18

  
19
/**
20
 * Class IconThemeDescriptor.
21
 * 
22
 * @version $Revision$ $Date$
23
 */
24
public class IconThemeDescriptor extends org.exolab.castor.xml.util.XMLClassDescriptorImpl {
25

  
26

  
27
      //--------------------------/
28
     //- Class/Member Variables -/
29
    //--------------------------/
30

  
31
    /**
32
     * Field nsPrefix
33
     */
34
    private java.lang.String nsPrefix;
35

  
36
    /**
37
     * Field nsURI
38
     */
39
    private java.lang.String nsURI;
40

  
41
    /**
42
     * Field xmlName
43
     */
44
    private java.lang.String xmlName;
45

  
46
    /**
47
     * Field identity
48
     */
49
    private org.exolab.castor.xml.XMLFieldDescriptor identity;
50

  
51

  
52
      //----------------/
53
     //- Constructors -/
54
    //----------------/
55

  
56
    public IconThemeDescriptor() {
57
        super();
58
        xmlName = "icon-theme";
59
        org.exolab.castor.xml.util.XMLFieldDescriptorImpl  desc           = null;
60
        org.exolab.castor.xml.XMLFieldHandler              handler        = null;
61
        org.exolab.castor.xml.FieldValidator               fieldValidator = null;
62
        //-- initialize attribute descriptors
63
        
64
        //-- _name
65
        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_name", "name", org.exolab.castor.xml.NodeType.Attribute);
66
        desc.setImmutable(true);
67
        handler = (new org.exolab.castor.xml.XMLFieldHandler() {
68
            public java.lang.Object getValue( java.lang.Object object ) 
69
                throws IllegalStateException
70
            {
71
                IconTheme target = (IconTheme) object;
72
                return target.getName();
73
            }
74
            public void setValue( java.lang.Object object, java.lang.Object value) 
75
                throws IllegalStateException, IllegalArgumentException
76
            {
77
                try {
78
                    IconTheme target = (IconTheme) object;
79
                    target.setName( (java.lang.String) value);
80
                }
81
                catch (java.lang.Exception ex) {
82
                    throw new IllegalStateException(ex.toString());
83
                }
84
            }
85
            public java.lang.Object newInstance( java.lang.Object parent ) {
86
                return null;
87
            }
88
        } );
89
        desc.setHandler(handler);
90
        desc.setRequired(true);
91
        addFieldDescriptor(desc);
92
        
93
        //-- validation code for: _name
94
        fieldValidator = new org.exolab.castor.xml.FieldValidator();
95
        fieldValidator.setMinOccurs(1);
96
        { //-- local scope
97
            StringValidator typeValidator = new StringValidator();
98
            typeValidator.setWhiteSpace("preserve");
99
            fieldValidator.setValidator(typeValidator);
100
        }
101
        desc.setValidator(fieldValidator);
102
        //-- _description
103
        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_description", "description", org.exolab.castor.xml.NodeType.Attribute);
104
        desc.setImmutable(true);
105
        handler = (new org.exolab.castor.xml.XMLFieldHandler() {
106
            public java.lang.Object getValue( java.lang.Object object ) 
107
                throws IllegalStateException
108
            {
109
                IconTheme target = (IconTheme) object;
110
                return target.getDescription();
111
            }
112
            public void setValue( java.lang.Object object, java.lang.Object value) 
113
                throws IllegalStateException, IllegalArgumentException
114
            {
115
                try {
116
                    IconTheme target = (IconTheme) object;
117
                    target.setDescription( (java.lang.String) value);
118
                }
119
                catch (java.lang.Exception ex) {
120
                    throw new IllegalStateException(ex.toString());
121
                }
122
            }
123
            public java.lang.Object newInstance( java.lang.Object parent ) {
124
                return null;
125
            }
126
        } );
127
        desc.setHandler(handler);
128
        addFieldDescriptor(desc);
129
        
130
        //-- validation code for: _description
131
        fieldValidator = new org.exolab.castor.xml.FieldValidator();
132
        { //-- local scope
133
            StringValidator typeValidator = new StringValidator();
134
            typeValidator.setWhiteSpace("preserve");
135
            fieldValidator.setValidator(typeValidator);
136
        }
137
        desc.setValidator(fieldValidator);
138
        //-- _version
139
        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_version", "version", org.exolab.castor.xml.NodeType.Attribute);
140
        desc.setImmutable(true);
141
        handler = (new org.exolab.castor.xml.XMLFieldHandler() {
142
            public java.lang.Object getValue( java.lang.Object object ) 
143
                throws IllegalStateException
144
            {
145
                IconTheme target = (IconTheme) object;
146
                return target.getVersion();
147
            }
148
            public void setValue( java.lang.Object object, java.lang.Object value) 
149
                throws IllegalStateException, IllegalArgumentException
150
            {
151
                try {
152
                    IconTheme target = (IconTheme) object;
153
                    target.setVersion( (java.lang.String) value);
154
                }
155
                catch (java.lang.Exception ex) {
156
                    throw new IllegalStateException(ex.toString());
157
                }
158
            }
159
            public java.lang.Object newInstance( java.lang.Object parent ) {
160
                return null;
161
            }
162
        } );
163
        desc.setHandler(handler);
164
        addFieldDescriptor(desc);
165
        
166
        //-- validation code for: _version
167
        fieldValidator = new org.exolab.castor.xml.FieldValidator();
168
        { //-- local scope
169
            StringValidator typeValidator = new StringValidator();
170
            typeValidator.setWhiteSpace("preserve");
171
            fieldValidator.setValidator(typeValidator);
172
        }
173
        desc.setValidator(fieldValidator);
174
        //-- _resource
175
        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_resource", "resource", org.exolab.castor.xml.NodeType.Attribute);
176
        desc.setImmutable(true);
177
        handler = (new org.exolab.castor.xml.XMLFieldHandler() {
178
            public java.lang.Object getValue( java.lang.Object object ) 
179
                throws IllegalStateException
180
            {
181
                IconTheme target = (IconTheme) object;
182
                return target.getResource();
183
            }
184
            public void setValue( java.lang.Object object, java.lang.Object value) 
185
                throws IllegalStateException, IllegalArgumentException
186
            {
187
                try {
188
                    IconTheme target = (IconTheme) object;
189
                    target.setResource( (java.lang.String) value);
190
                }
191
                catch (java.lang.Exception ex) {
192
                    throw new IllegalStateException(ex.toString());
193
                }
194
            }
195
            public java.lang.Object newInstance( java.lang.Object parent ) {
196
                return null;
197
            }
198
        } );
199
        desc.setHandler(handler);
200
        addFieldDescriptor(desc);
201
        
202
        //-- validation code for: _resource
203
        fieldValidator = new org.exolab.castor.xml.FieldValidator();
204
        { //-- local scope
205
            StringValidator typeValidator = new StringValidator();
206
            typeValidator.setWhiteSpace("preserve");
207
            fieldValidator.setValidator(typeValidator);
208
        }
209
        desc.setValidator(fieldValidator);
210
        //-- _basedir
211
        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_basedir", "basedir", org.exolab.castor.xml.NodeType.Attribute);
212
        desc.setImmutable(true);
213
        handler = (new org.exolab.castor.xml.XMLFieldHandler() {
214
            public java.lang.Object getValue( java.lang.Object object ) 
215
                throws IllegalStateException
216
            {
217
                IconTheme target = (IconTheme) object;
218
                return target.getBasedir();
219
            }
220
            public void setValue( java.lang.Object object, java.lang.Object value) 
221
                throws IllegalStateException, IllegalArgumentException
222
            {
223
                try {
224
                    IconTheme target = (IconTheme) object;
225
                    target.setBasedir( (java.lang.String) value);
226
                }
227
                catch (java.lang.Exception ex) {
228
                    throw new IllegalStateException(ex.toString());
229
                }
230
            }
231
            public java.lang.Object newInstance( java.lang.Object parent ) {
232
                return null;
233
            }
234
        } );
235
        desc.setHandler(handler);
236
        desc.setRequired(true);
237
        addFieldDescriptor(desc);
238
        
239
        //-- validation code for: _basedir
240
        fieldValidator = new org.exolab.castor.xml.FieldValidator();
241
        fieldValidator.setMinOccurs(1);
242
        { //-- local scope
243
            StringValidator typeValidator = new StringValidator();
244
            typeValidator.setWhiteSpace("preserve");
245
            fieldValidator.setValidator(typeValidator);
246
        }
247
        desc.setValidator(fieldValidator);
248
        //-- initialize element descriptors
249
        
250
    } //-- com.iver.andami.config.generate.IconThemeDescriptor()
251

  
252

  
253
      //-----------/
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff