KickJava   Java API By Example, From Geeks To Geeks.

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


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 ActionDefinition.
26  *
27  * @version $Revision$ $Date$
28  */

29 public class ActionDefinition 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 _expression
48      */

49     private java.lang.String JavaDoc _expression;
50
51     /**
52      * Field _metric
53      */

54     private java.lang.String JavaDoc _metric;
55
56
57       //----------------/
58
//- Constructors -/
59
//----------------/
60

61     public ActionDefinition() {
62         super();
63     } //-- com.calipso.reportgenerator.reportdefinitions.ActionDefinition()
64

65
66       //-----------/
67
//- Methods -/
68
//-----------/
69

70     /**
71      * Method getDescriptionReturns the value of field
72      * 'description'.
73      *
74      * @return the value of field 'description'.
75      */

76     public java.lang.String JavaDoc getDescription()
77     {
78         return this._description;
79     } //-- java.lang.String getDescription()
80

81     /**
82      * Method getExpressionReturns the value of field 'expression'.
83      *
84      * @return the value of field 'expression'.
85      */

86     public java.lang.String JavaDoc getExpression()
87     {
88         return this._expression;
89     } //-- java.lang.String getExpression()
90

91     /**
92      * Method getMetricReturns the value of field 'metric'.
93      *
94      * @return the value of field 'metric'.
95      */

96     public java.lang.String JavaDoc getMetric()
97     {
98         return this._metric;
99     } //-- java.lang.String getMetric()
100

101     /**
102      * Method getNameReturns the value of field 'name'.
103      *
104      * @return the value of field 'name'.
105      */

106     public java.lang.String JavaDoc getName()
107     {
108         return this._name;
109     } //-- java.lang.String getName()
110

111     /**
112      * Method isValid
113      */

114     public boolean isValid()
115     {
116         try {
117             validate();
118         }
119         catch (org.exolab.castor.xml.ValidationException vex) {
120             return false;
121         }
122         return true;
123     } //-- boolean isValid()
124

125     /**
126      * Method marshal
127      *
128      * @param out
129      */

130     public void marshal(java.io.Writer JavaDoc out)
131         throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
132     {
133         
134         Marshaller.marshal(this, out);
135     } //-- void marshal(java.io.Writer)
136

137     /**
138      * Method marshal
139      *
140      * @param handler
141      */

142     public void marshal(org.xml.sax.ContentHandler JavaDoc handler)
143         throws java.io.IOException JavaDoc, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
144     {
145         
146         Marshaller.marshal(this, handler);
147     } //-- void marshal(org.xml.sax.ContentHandler)
148

149     /**
150      * Method setDescriptionSets the value of field 'description'.
151      *
152      * @param description the value of field 'description'.
153      */

154     public void setDescription(java.lang.String JavaDoc description)
155     {
156         this._description = description;
157     } //-- void setDescription(java.lang.String)
158

159     /**
160      * Method setExpressionSets the value of field 'expression'.
161      *
162      * @param expression the value of field 'expression'.
163      */

164     public void setExpression(java.lang.String JavaDoc expression)
165     {
166         this._expression = expression;
167     } //-- void setExpression(java.lang.String)
168

169     /**
170      * Method setMetricSets the value of field 'metric'.
171      *
172      * @param metric the value of field 'metric'.
173      */

174     public void setMetric(java.lang.String JavaDoc metric)
175     {
176         this._metric = metric;
177     } //-- void setMetric(java.lang.String)
178

179     /**
180      * Method setNameSets the value of field 'name'.
181      *
182      * @param name the value of field 'name'.
183      */

184     public void setName(java.lang.String JavaDoc name)
185     {
186         this._name = name;
187     } //-- void setName(java.lang.String)
188

189     /**
190      * Method unmarshal
191      *
192      * @param reader
193      */

194     public static com.calipso.reportgenerator.reportdefinitions.ActionDefinition unmarshal(java.io.Reader JavaDoc reader)
195         throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
196     {
197         return (com.calipso.reportgenerator.reportdefinitions.ActionDefinition) Unmarshaller.unmarshal(com.calipso.reportgenerator.reportdefinitions.ActionDefinition.class, reader);
198     } //-- com.calipso.reportgenerator.reportdefinitions.ActionDefinition unmarshal(java.io.Reader)
199

200     /**
201      * Method validate
202      */

203     public void validate()
204         throws org.exolab.castor.xml.ValidationException
205     {
206         org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
207         validator.validate(this);
208     } //-- void validate()
209

210 }
211
Popular Tags