KickJava   Java API By Example, From Geeks To Geeks.

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


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.FilterDefinitionFilterTypeType;
15 import com.calipso.reportgenerator.reportdefinitions.types.ReportDataType;
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 FilterDefinition.
28  *
29  * @version $Revision$ $Date$
30  */

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

38     /**
39      * Field _name
40      */

41     private java.lang.String JavaDoc _name;
42
43     /**
44      * Field _dimensionName
45      */

46     private java.lang.String JavaDoc _dimensionName;
47
48     /**
49      * Field _dataType
50      */

51     private com.calipso.reportgenerator.reportdefinitions.types.ReportDataType _dataType;
52
53     /**
54      * Field _filterType
55      */

56     private com.calipso.reportgenerator.reportdefinitions.types.FilterDefinitionFilterTypeType _filterType;
57
58     /**
59      * Field _visual
60      */

61     private boolean _visual;
62
63     /**
64      * keeps track of state for field: _visual
65      */

66     private boolean _has_visual;
67
68
69       //----------------/
70
//- Constructors -/
71
//----------------/
72

73     public FilterDefinition() {
74         super();
75     } //-- com.calipso.reportgenerator.reportdefinitions.FilterDefinition()
76

77
78       //-----------/
79
//- Methods -/
80
//-----------/
81

82     /**
83      * Method getDataTypeReturns the value of field 'dataType'.
84      *
85      * @return the value of field 'dataType'.
86      */

87     public com.calipso.reportgenerator.reportdefinitions.types.ReportDataType getDataType()
88     {
89         return this._dataType;
90     } //-- com.calipso.reportgenerator.reportdefinitions.types.ReportDataType getDataType()
91

92     /**
93      * Method getDimensionNameReturns the value of field
94      * 'dimensionName'.
95      *
96      * @return the value of field 'dimensionName'.
97      */

98     public java.lang.String JavaDoc getDimensionName()
99     {
100         return this._dimensionName;
101     } //-- java.lang.String getDimensionName()
102

103     /**
104      * Method getFilterTypeReturns the value of field 'filterType'.
105      *
106      * @return the value of field 'filterType'.
107      */

108     public com.calipso.reportgenerator.reportdefinitions.types.FilterDefinitionFilterTypeType getFilterType()
109     {
110         return this._filterType;
111     } //-- com.calipso.reportgenerator.reportdefinitions.types.FilterDefinitionFilterTypeType getFilterType()
112

113     /**
114      * Method getNameReturns the value of field 'name'.
115      *
116      * @return the value of field 'name'.
117      */

118     public java.lang.String JavaDoc getName()
119     {
120         return this._name;
121     } //-- java.lang.String getName()
122

123     /**
124      * Method getVisualReturns the value of field 'visual'.
125      *
126      * @return the value of field 'visual'.
127      */

128     public boolean getVisual()
129     {
130         return this._visual;
131     } //-- boolean getVisual()
132

133     /**
134      * Method hasVisual
135      */

136     public boolean hasVisual()
137     {
138         return this._has_visual;
139     } //-- boolean hasVisual()
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 JavaDoc 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 JavaDoc handler)
173         throws java.io.IOException JavaDoc, 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 setDataTypeSets the value of field 'dataType'.
181      *
182      * @param dataType the value of field 'dataType'.
183      */

184     public void setDataType(com.calipso.reportgenerator.reportdefinitions.types.ReportDataType dataType)
185     {
186         this._dataType = dataType;
187     } //-- void setDataType(com.calipso.reportgenerator.reportdefinitions.types.ReportDataType)
188

189     /**
190      * Method setDimensionNameSets the value of field
191      * 'dimensionName'.
192      *
193      * @param dimensionName the value of field 'dimensionName'.
194      */

195     public void setDimensionName(java.lang.String JavaDoc dimensionName)
196     {
197         this._dimensionName = dimensionName;
198     } //-- void setDimensionName(java.lang.String)
199

200     /**
201      * Method setFilterTypeSets the value of field 'filterType'.
202      *
203      * @param filterType the value of field 'filterType'.
204      */

205     public void setFilterType(com.calipso.reportgenerator.reportdefinitions.types.FilterDefinitionFilterTypeType filterType)
206     {
207         this._filterType = filterType;
208     } //-- void setFilterType(com.calipso.reportgenerator.reportdefinitions.types.FilterDefinitionFilterTypeType)
209

210     /**
211      * Method setNameSets the value of field 'name'.
212      *
213      * @param name the value of field 'name'.
214      */

215     public void setName(java.lang.String JavaDoc name)
216     {
217         this._name = name;
218     } //-- void setName(java.lang.String)
219

220     /**
221      * Method setVisualSets the value of field 'visual'.
222      *
223      * @param visual the value of field 'visual'.
224      */

225     public void setVisual(boolean visual)
226     {
227         this._visual = visual;
228         this._has_visual = true;
229     } //-- void setVisual(boolean)
230

231     /**
232      * Method unmarshal
233      *
234      * @param reader
235      */

236     public static com.calipso.reportgenerator.reportdefinitions.FilterDefinition unmarshal(java.io.Reader JavaDoc reader)
237         throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
238     {
239         return (com.calipso.reportgenerator.reportdefinitions.FilterDefinition) Unmarshaller.unmarshal(com.calipso.reportgenerator.reportdefinitions.FilterDefinition.class, reader);
240     } //-- com.calipso.reportgenerator.reportdefinitions.FilterDefinition unmarshal(java.io.Reader)
241

242     /**
243      * Method validate
244      */

245     public void validate()
246         throws org.exolab.castor.xml.ValidationException
247     {
248         org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
249         validator.validate(this);
250     } //-- void validate()
251

252 }
253
Popular Tags