KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > calipso > reportgenerator > reportdefinitions > LightBoxDefinition


1 /*
2  * This class was automatically generated with
3  * <a HREF="http://www.castor.org">Castor 0.9.4.3</a>, using an XML
4  * Schema.
5  * $Id$
6  */

7
8 package com.calipso.reportgenerator.reportdefinitions;
9
10   //---------------------------------/
11
//- Imported classes and packages -/
12
//---------------------------------/
13

14 import com.calipso.reportgenerator.reportdefinitions.types.LightBoxDefinitionParameterType;
15 import com.calipso.reportgenerator.reportdefinitions.types.LightBoxDefinitionTypeType;
16 import java.io.IOException JavaDoc;
17 import java.io.Reader JavaDoc;
18 import java.io.Serializable JavaDoc;
19 import java.io.Writer JavaDoc;
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 JavaDoc;
25
26 /**
27  * Class LightBoxDefinition.
28  *
29  * @version $Revision$ $Date$
30  */

31 public class LightBoxDefinition implements java.io.Serializable JavaDoc {
32
33
34       //--------------------------/
35
//- Class/Member Variables -/
36
//--------------------------/
37

38     /**
39      * Field _metricName
40      */

41     private java.lang.String JavaDoc _metricName;
42
43     /**
44      * Field _type
45      */

46     private com.calipso.reportgenerator.reportdefinitions.types.LightBoxDefinitionTypeType _type;
47
48     /**
49      * Field _parameter
50      */

51     private com.calipso.reportgenerator.reportdefinitions.types.LightBoxDefinitionParameterType _parameter;
52
53     /**
54      * Field _colorRed
55      */

56     private int _colorRed;
57
58     /**
59      * keeps track of state for field: _colorRed
60      */

61     private boolean _has_colorRed;
62
63     /**
64      * Field _colorGreen
65      */

66     private int _colorGreen;
67
68     /**
69      * keeps track of state for field: _colorGreen
70      */

71     private boolean _has_colorGreen;
72
73     /**
74      * Field _colorBlue
75      */

76     private int _colorBlue;
77
78     /**
79      * keeps track of state for field: _colorBlue
80      */

81     private boolean _has_colorBlue;
82
83     /**
84      * Field _value
85      */

86     private java.lang.String JavaDoc _value;
87
88
89       //----------------/
90
//- Constructors -/
91
//----------------/
92

93     public LightBoxDefinition() {
94         super();
95     } //-- com.calipso.reportgenerator.reportdefinitions.LightBoxDefinition()
96

97
98       //-----------/
99
//- Methods -/
100
//-----------/
101

102     /**
103      * Method getColorBlueReturns the value of field 'colorBlue'.
104      *
105      * @return the value of field 'colorBlue'.
106      */

107     public int getColorBlue()
108     {
109         return this._colorBlue;
110     } //-- int getColorBlue()
111

112     /**
113      * Method getColorGreenReturns the value of field 'colorGreen'.
114      *
115      * @return the value of field 'colorGreen'.
116      */

117     public int getColorGreen()
118     {
119         return this._colorGreen;
120     } //-- int getColorGreen()
121

122     /**
123      * Method getColorRedReturns the value of field 'colorRed'.
124      *
125      * @return the value of field 'colorRed'.
126      */

127     public int getColorRed()
128     {
129         return this._colorRed;
130     } //-- int getColorRed()
131

132     /**
133      * Method getMetricNameReturns the value of field 'metricName'.
134      *
135      * @return the value of field 'metricName'.
136      */

137     public java.lang.String JavaDoc getMetricName()
138     {
139         return this._metricName;
140     } //-- java.lang.String getMetricName()
141

142     /**
143      * Method getParameterReturns the value of field 'parameter'.
144      *
145      * @return the value of field 'parameter'.
146      */

147     public com.calipso.reportgenerator.reportdefinitions.types.LightBoxDefinitionParameterType getParameter()
148     {
149         return this._parameter;
150     } //-- com.calipso.reportgenerator.reportdefinitions.types.LightBoxDefinitionParameterType getParameter()
151

152     /**
153      * Method getTypeReturns the value of field 'type'.
154      *
155      * @return the value of field 'type'.
156      */

157     public com.calipso.reportgenerator.reportdefinitions.types.LightBoxDefinitionTypeType getType()
158     {
159         return this._type;
160     } //-- com.calipso.reportgenerator.reportdefinitions.types.LightBoxDefinitionTypeType getType()
161

162     /**
163      * Method getValueReturns the value of field 'value'.
164      *
165      * @return the value of field 'value'.
166      */

167     public java.lang.String JavaDoc getValue()
168     {
169         return this._value;
170     } //-- java.lang.String getValue()
171

172     /**
173      * Method hasColorBlue
174      */

175     public boolean hasColorBlue()
176     {
177         return this._has_colorBlue;
178     } //-- boolean hasColorBlue()
179

180     /**
181      * Method hasColorGreen
182      */

183     public boolean hasColorGreen()
184     {
185         return this._has_colorGreen;
186     } //-- boolean hasColorGreen()
187

188     /**
189      * Method hasColorRed
190      */

191     public boolean hasColorRed()
192     {
193         return this._has_colorRed;
194     } //-- boolean hasColorRed()
195

196     /**
197      * Method isValid
198      */

199     public boolean isValid()
200     {
201         try {
202             validate();
203         }
204         catch (org.exolab.castor.xml.ValidationException vex) {
205             return false;
206         }
207         return true;
208     } //-- boolean isValid()
209

210     /**
211      * Method marshal
212      *
213      * @param out
214      */

215     public void marshal(java.io.Writer JavaDoc out)
216         throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
217     {
218         
219         Marshaller.marshal(this, out);
220     } //-- void marshal(java.io.Writer)
221

222     /**
223      * Method marshal
224      *
225      * @param handler
226      */

227     public void marshal(org.xml.sax.ContentHandler JavaDoc handler)
228         throws java.io.IOException JavaDoc, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
229     {
230         
231         Marshaller.marshal(this, handler);
232     } //-- void marshal(org.xml.sax.ContentHandler)
233

234     /**
235      * Method setColorBlueSets the value of field 'colorBlue'.
236      *
237      * @param colorBlue the value of field 'colorBlue'.
238      */

239     public void setColorBlue(int colorBlue)
240     {
241         this._colorBlue = colorBlue;
242         this._has_colorBlue = true;
243     } //-- void setColorBlue(int)
244

245     /**
246      * Method setColorGreenSets the value of field 'colorGreen'.
247      *
248      * @param colorGreen the value of field 'colorGreen'.
249      */

250     public void setColorGreen(int colorGreen)
251     {
252         this._colorGreen = colorGreen;
253         this._has_colorGreen = true;
254     } //-- void setColorGreen(int)
255

256     /**
257      * Method setColorRedSets the value of field 'colorRed'.
258      *
259      * @param colorRed the value of field 'colorRed'.
260      */

261     public void setColorRed(int colorRed)
262     {
263         this._colorRed = colorRed;
264         this._has_colorRed = true;
265     } //-- void setColorRed(int)
266

267     /**
268      * Method setMetricNameSets the value of field 'metricName'.
269      *
270      * @param metricName the value of field 'metricName'.
271      */

272     public void setMetricName(java.lang.String JavaDoc metricName)
273     {
274         this._metricName = metricName;
275     } //-- void setMetricName(java.lang.String)
276

277     /**
278      * Method setParameterSets the value of field 'parameter'.
279      *
280      * @param parameter the value of field 'parameter'.
281      */

282     public void setParameter(com.calipso.reportgenerator.reportdefinitions.types.LightBoxDefinitionParameterType parameter)
283     {
284         this._parameter = parameter;
285     } //-- void setParameter(com.calipso.reportgenerator.reportdefinitions.types.LightBoxDefinitionParameterType)
286

287     /**
288      * Method setTypeSets the value of field 'type'.
289      *
290      * @param type the value of field 'type'.
291      */

292     public void setType(com.calipso.reportgenerator.reportdefinitions.types.LightBoxDefinitionTypeType type)
293     {
294         this._type = type;
295     } //-- void setType(com.calipso.reportgenerator.reportdefinitions.types.LightBoxDefinitionTypeType)
296

297     /**
298      * Method setValueSets the value of field 'value'.
299      *
300      * @param value the value of field 'value'.
301      */

302     public void setValue(java.lang.String JavaDoc value)
303     {
304         this._value = value;
305     } //-- void setValue(java.lang.String)
306

307     /**
308      * Method unmarshal
309      *
310      * @param reader
311      */

312     public static com.calipso.reportgenerator.reportdefinitions.LightBoxDefinition unmarshal(java.io.Reader JavaDoc reader)
313         throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
314     {
315         return (com.calipso.reportgenerator.reportdefinitions.LightBoxDefinition) Unmarshaller.unmarshal(com.calipso.reportgenerator.reportdefinitions.LightBoxDefinition.class, reader);
316     } //-- com.calipso.reportgenerator.reportdefinitions.LightBoxDefinition unmarshal(java.io.Reader)
317

318     /**
319      * Method validate
320      */

321     public void validate()
322         throws org.exolab.castor.xml.ValidationException
323     {
324         org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
325         validator.validate(this);
326     } //-- void validate()
327

328 }
329
Popular Tags