root / trunk / frameworks / _fwAndami / src / com / iver / andami / plugins / config / generate / ComboScale.java @ 9956
History | View | Annotate | Download (6.06 KB)
1 | 6431 | cesar | /*
|
---|---|---|---|
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.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 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 ComboScale.
|
||
26 | *
|
||
27 | * @version $Revision$ $Date$
|
||
28 | */
|
||
29 | public class ComboScale implements java.io.Serializable { |
||
30 | |||
31 | |||
32 | //--------------------------/
|
||
33 | //- Class/Member Variables -/
|
||
34 | //--------------------------/
|
||
35 | |||
36 | /**
|
||
37 | * Field _name
|
||
38 | */
|
||
39 | 6587 | cesar | private java.lang.String _name;
|
40 | 6431 | cesar | |
41 | /**
|
||
42 | 6619 | cesar | * Field _label
|
43 | */
|
||
44 | private java.lang.String _label;
|
||
45 | |||
46 | /**
|
||
47 | 6431 | cesar | * Field _elements
|
48 | */
|
||
49 | private java.lang.Object _elements;
|
||
50 | |||
51 | /**
|
||
52 | * Field _value
|
||
53 | */
|
||
54 | private java.lang.Object _value;
|
||
55 | |||
56 | /**
|
||
57 | * Field _actionCommand
|
||
58 | */
|
||
59 | 6587 | cesar | private java.lang.String _actionCommand;
|
60 | 6431 | cesar | |
61 | 6587 | cesar | /**
|
62 | * Field _position
|
||
63 | */
|
||
64 | private java.lang.Object _position;
|
||
65 | 6431 | cesar | |
66 | 6587 | cesar | |
67 | 6431 | cesar | //----------------/
|
68 | //- Constructors -/
|
||
69 | //----------------/
|
||
70 | |||
71 | public ComboScale() {
|
||
72 | super();
|
||
73 | } //-- com.iver.andami.plugins.config.generate.ComboScale()
|
||
74 | |||
75 | |||
76 | //-----------/
|
||
77 | //- Methods -/
|
||
78 | //-----------/
|
||
79 | |||
80 | /**
|
||
81 | * Returns the value of field 'actionCommand'.
|
||
82 | *
|
||
83 | * @return the value of field 'actionCommand'.
|
||
84 | */
|
||
85 | 6587 | cesar | public java.lang.String getActionCommand()
|
86 | 6431 | cesar | { |
87 | return this._actionCommand; |
||
88 | 6587 | cesar | } //-- java.lang.String getActionCommand()
|
89 | 6431 | cesar | |
90 | /**
|
||
91 | * Returns the value of field 'elements'.
|
||
92 | *
|
||
93 | * @return the value of field 'elements'.
|
||
94 | */
|
||
95 | public java.lang.Object getElements()
|
||
96 | { |
||
97 | return this._elements; |
||
98 | } //-- java.lang.Object getElements()
|
||
99 | |||
100 | /**
|
||
101 | 6619 | cesar | * Returns the value of field 'label'.
|
102 | *
|
||
103 | * @return the value of field 'label'.
|
||
104 | */
|
||
105 | public java.lang.String getLabel()
|
||
106 | { |
||
107 | return this._label; |
||
108 | } //-- java.lang.String getLabel()
|
||
109 | |||
110 | /**
|
||
111 | 6431 | cesar | * Returns the value of field 'name'.
|
112 | *
|
||
113 | * @return the value of field 'name'.
|
||
114 | */
|
||
115 | 6587 | cesar | public java.lang.String getName()
|
116 | 6431 | cesar | { |
117 | return this._name; |
||
118 | 6587 | cesar | } //-- java.lang.String getName()
|
119 | 6431 | cesar | |
120 | /**
|
||
121 | 6587 | cesar | * Returns the value of field 'position'.
|
122 | *
|
||
123 | * @return the value of field 'position'.
|
||
124 | */
|
||
125 | public java.lang.Object getPosition()
|
||
126 | { |
||
127 | return this._position; |
||
128 | } //-- java.lang.Object getPosition()
|
||
129 | |||
130 | /**
|
||
131 | 6431 | cesar | * Returns the value of field 'value'.
|
132 | *
|
||
133 | * @return the value of field 'value'.
|
||
134 | */
|
||
135 | public java.lang.Object getValue()
|
||
136 | { |
||
137 | return this._value; |
||
138 | } //-- java.lang.Object getValue()
|
||
139 | |||
140 | /**
|
||
141 | * Method isValid
|
||
142 | */
|
||
143 | public boolean isValid() |
||
144 | { |
||
145 | try {
|
||
146 | validate(); |
||
147 | } |
||
148 | catch (org.exolab.castor.xml.ValidationException vex) {
|
||
149 | return false; |
||
150 | } |
||
151 | return true; |
||
152 | } //-- boolean isValid()
|
||
153 | |||
154 | /**
|
||
155 | * Method marshal
|
||
156 | *
|
||
157 | * @param out
|
||
158 | */
|
||
159 | public void marshal(java.io.Writer out) |
||
160 | throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
|
||
161 | { |
||
162 | |||
163 | Marshaller.marshal(this, out);
|
||
164 | } //-- void marshal(java.io.Writer)
|
||
165 | |||
166 | /**
|
||
167 | * Method marshal
|
||
168 | *
|
||
169 | * @param handler
|
||
170 | */
|
||
171 | public void marshal(org.xml.sax.ContentHandler handler) |
||
172 | throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
|
||
173 | { |
||
174 | |||
175 | Marshaller.marshal(this, handler);
|
||
176 | } //-- void marshal(org.xml.sax.ContentHandler)
|
||
177 | |||
178 | /**
|
||
179 | * Sets the value of field 'actionCommand'.
|
||
180 | *
|
||
181 | * @param actionCommand the value of field 'actionCommand'.
|
||
182 | */
|
||
183 | 6587 | cesar | public void setActionCommand(java.lang.String actionCommand) |
184 | 6431 | cesar | { |
185 | this._actionCommand = actionCommand;
|
||
186 | 6587 | cesar | } //-- void setActionCommand(java.lang.String)
|
187 | 6431 | cesar | |
188 | /**
|
||
189 | * Sets the value of field 'elements'.
|
||
190 | *
|
||
191 | * @param elements the value of field 'elements'.
|
||
192 | */
|
||
193 | public void setElements(java.lang.Object elements) |
||
194 | { |
||
195 | this._elements = elements;
|
||
196 | } //-- void setElements(java.lang.Object)
|
||
197 | |||
198 | /**
|
||
199 | 6619 | cesar | * Sets the value of field 'label'.
|
200 | *
|
||
201 | * @param label the value of field 'label'.
|
||
202 | */
|
||
203 | public void setLabel(java.lang.String label) |
||
204 | { |
||
205 | this._label = label;
|
||
206 | } //-- void setLabel(java.lang.String)
|
||
207 | |||
208 | /**
|
||
209 | 6431 | cesar | * Sets the value of field 'name'.
|
210 | *
|
||
211 | * @param name the value of field 'name'.
|
||
212 | */
|
||
213 | 6587 | cesar | public void setName(java.lang.String name) |
214 | 6431 | cesar | { |
215 | this._name = name;
|
||
216 | 6587 | cesar | } //-- void setName(java.lang.String)
|
217 | 6431 | cesar | |
218 | /**
|
||
219 | 6587 | cesar | * Sets the value of field 'position'.
|
220 | *
|
||
221 | * @param position the value of field 'position'.
|
||
222 | */
|
||
223 | public void setPosition(java.lang.Object position) |
||
224 | { |
||
225 | this._position = position;
|
||
226 | } //-- void setPosition(java.lang.Object)
|
||
227 | |||
228 | /**
|
||
229 | 6431 | cesar | * Sets the value of field 'value'.
|
230 | *
|
||
231 | * @param value the value of field 'value'.
|
||
232 | */
|
||
233 | public void setValue(java.lang.Object value) |
||
234 | { |
||
235 | this._value = value;
|
||
236 | } //-- void setValue(java.lang.Object)
|
||
237 | |||
238 | /**
|
||
239 | * Method unmarshal
|
||
240 | *
|
||
241 | * @param reader
|
||
242 | */
|
||
243 | public static java.lang.Object unmarshal(java.io.Reader reader) |
||
244 | throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
|
||
245 | { |
||
246 | return (com.iver.andami.plugins.config.generate.ComboScale) Unmarshaller.unmarshal(com.iver.andami.plugins.config.generate.ComboScale.class, reader);
|
||
247 | } //-- java.lang.Object unmarshal(java.io.Reader)
|
||
248 | |||
249 | /**
|
||
250 | * Method validate
|
||
251 | */
|
||
252 | public void validate() |
||
253 | throws org.exolab.castor.xml.ValidationException
|
||
254 | { |
||
255 | org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
|
||
256 | validator.validate(this);
|
||
257 | } //-- void validate()
|
||
258 | |||
259 | } |