KickJava   Java API By Example, From Geeks To Geeks.

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


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 java.io.IOException JavaDoc;
15 import java.io.Reader JavaDoc;
16 import java.io.Serializable JavaDoc;
17 import java.io.Writer JavaDoc;
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 JavaDoc;
23
24 /**
25  * Class MetricDefinition.
26  *
27  * @version $Revision$ $Date$
28  */

29 public class MetricDefinition implements java.io.Serializable JavaDoc {
30
31
32       //--------------------------/
33
//- Class/Member Variables -/
34
//--------------------------/
35

36     /**
37      * Field _name
38      */

39     private java.lang.String JavaDoc _name;
40
41     /**
42      * Field _description
43      */

44     private java.lang.String JavaDoc _description;
45
46     /**
47      * Field _visible
48      */

49     private boolean _visible;
50
51     /**
52      * keeps track of state for field: _visible
53      */

54     private boolean _has_visible;
55
56     /**
57      * Field _accumulable
58      */

59     private boolean _accumulable;
60
61     /**
62      * keeps track of state for field: _accumulable
63      */

64     private boolean _has_accumulable;
65
66
67       //----------------/
68
//- Constructors -/
69
//----------------/
70

71     public MetricDefinition() {
72         super();
73     } //-- com.calipso.reportgenerator.reportdefinitions.MetricDefinition()
74

75
76       //-----------/
77
//- Methods -/
78
//-----------/
79

80     /**
81      * Method deleteAccumulable
82      */

83     public void deleteAccumulable()
84     {
85         this._has_accumulable= false;
86     } //-- void deleteAccumulable()
87

88     /**
89      * Method getAccumulableReturns the value of field
90      * 'accumulable'.
91      *
92      * @return the value of field 'accumulable'.
93      */

94     public boolean getAccumulable()
95     {
96         return this._accumulable;
97     } //-- boolean getAccumulable()
98

99     /**
100      * Method getDescriptionReturns the value of field
101      * 'description'.
102      *
103      * @return the value of field 'description'.
104      */

105     public java.lang.String JavaDoc getDescription()
106     {
107         return this._description;
108     } //-- java.lang.String getDescription()
109

110     /**
111      * Method getNameReturns the value of field 'name'.
112      *
113      * @return the value of field 'name'.
114      */

115     public java.lang.String JavaDoc getName()
116     {
117         return this._name;
118     } //-- java.lang.String getName()
119

120     /**
121      * Method getVisibleReturns the value of field 'visible'.
122      *
123      * @return the value of field 'visible'.
124      */

125     public boolean getVisible()
126     {
127         return this._visible;
128     } //-- boolean getVisible()
129

130     /**
131      * Method hasAccumulable
132      */

133     public boolean hasAccumulable()
134     {
135         return this._has_accumulable;
136     } //-- boolean hasAccumulable()
137

138     /**
139      * Method hasVisible
140      */

141     public boolean hasVisible()
142     {
143         return this._has_visible;
144     } //-- boolean hasVisible()
145

146     /**
147      * Method isValid
148      */

149     public boolean isValid()
150     {
151         try {
152             validate();
153         }
154         catch (org.exolab.castor.xml.ValidationException vex) {
155             return false;
156         }
157         return true;
158     } //-- boolean isValid()
159

160     /**
161      * Method marshal
162      *
163      * @param out
164      */

165     public void marshal(java.io.Writer JavaDoc out)
166         throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
167     {
168         
169         Marshaller.marshal(this, out);
170     } //-- void marshal(java.io.Writer)
171

172     /**
173      * Method marshal
174      *
175      * @param handler
176      */

177     public void marshal(org.xml.sax.ContentHandler JavaDoc handler)
178         throws java.io.IOException JavaDoc, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
179     {
180         
181         Marshaller.marshal(this, handler);
182     } //-- void marshal(org.xml.sax.ContentHandler)
183

184     /**
185      * Method setAccumulableSets the value of field 'accumulable'.
186      *
187      * @param accumulable the value of field 'accumulable'.
188      */

189     public void setAccumulable(boolean accumulable)
190     {
191         this._accumulable = accumulable;
192         this._has_accumulable = true;
193     } //-- void setAccumulable(boolean)
194

195     /**
196      * Method setDescriptionSets the value of field 'description'.
197      *
198      * @param description the value of field 'description'.
199      */

200     public void setDescription(java.lang.String JavaDoc description)
201     {
202         this._description = description;
203     } //-- void setDescription(java.lang.String)
204

205     /**
206      * Method setNameSets the value of field 'name'.
207      *
208      * @param name the value of field 'name'.
209      */

210     public void setName(java.lang.String JavaDoc name)
211     {
212         this._name = name;
213     } //-- void setName(java.lang.String)
214

215     /**
216      * Method setVisibleSets the value of field 'visible'.
217      *
218      * @param visible the value of field 'visible'.
219      */

220     public void setVisible(boolean visible)
221     {
222         this._visible = visible;
223         this._has_visible = true;
224     } //-- void setVisible(boolean)
225

226     /**
227      * Method unmarshal
228      *
229      * @param reader
230      */

231     public static com.calipso.reportgenerator.reportdefinitions.MetricDefinition unmarshal(java.io.Reader JavaDoc reader)
232         throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
233     {
234         return (com.calipso.reportgenerator.reportdefinitions.MetricDefinition) Unmarshaller.unmarshal(com.calipso.reportgenerator.reportdefinitions.MetricDefinition.class, reader);
235     } //-- com.calipso.reportgenerator.reportdefinitions.MetricDefinition unmarshal(java.io.Reader)
236

237     /**
238      * Method validate
239      */

240     public void validate()
241         throws org.exolab.castor.xml.ValidationException
242     {
243         org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
244         validator.validate(this);
245     } //-- void validate()
246

247 }
248
Popular Tags