KickJava   Java API By Example, From Geeks To Geeks.

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


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.ParameterValueFilterParameterType;
15 import java.io.IOException JavaDoc;
16 import java.io.Reader JavaDoc;
17 import java.io.Serializable JavaDoc;
18 import java.io.Writer JavaDoc;
19 import org.exolab.castor.xml.MarshalException;
20 import org.exolab.castor.xml.Marshaller;
21 import org.exolab.castor.xml.Unmarshaller;
22 import org.exolab.castor.xml.ValidationException;
23 import org.xml.sax.ContentHandler JavaDoc;
24
25 /**
26  * Class ParameterValue.
27  *
28  * @version $Revision$ $Date$
29  */

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

37     /**
38      * Field _filterDefinitionName
39      */

40     private java.lang.String JavaDoc _filterDefinitionName;
41
42     /**
43      * Field _filterParameter
44      */

45     private com.calipso.reportgenerator.reportdefinitions.types.ParameterValueFilterParameterType _filterParameter;
46
47     /**
48      * Field _defaultValue
49      */

50     private java.lang.String JavaDoc _defaultValue;
51
52
53       //----------------/
54
//- Constructors -/
55
//----------------/
56

57     public ParameterValue() {
58         super();
59     } //-- com.calipso.reportgenerator.reportdefinitions.ParameterValue()
60

61
62       //-----------/
63
//- Methods -/
64
//-----------/
65

66     /**
67      * Method getDefaultValueReturns the value of field
68      * 'defaultValue'.
69      *
70      * @return the value of field 'defaultValue'.
71      */

72     public java.lang.String JavaDoc getDefaultValue()
73     {
74         return this._defaultValue;
75     } //-- java.lang.String getDefaultValue()
76

77     /**
78      * Method getFilterDefinitionNameReturns the value of field
79      * 'filterDefinitionName'.
80      *
81      * @return the value of field 'filterDefinitionName'.
82      */

83     public java.lang.String JavaDoc getFilterDefinitionName()
84     {
85         return this._filterDefinitionName;
86     } //-- java.lang.String getFilterDefinitionName()
87

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

94     public com.calipso.reportgenerator.reportdefinitions.types.ParameterValueFilterParameterType getFilterParameter()
95     {
96         return this._filterParameter;
97     } //-- com.calipso.reportgenerator.reportdefinitions.types.ParameterValueFilterParameterType getFilterParameter()
98

99     /**
100      * Method isValid
101      */

102     public boolean isValid()
103     {
104         try {
105             validate();
106         }
107         catch (org.exolab.castor.xml.ValidationException vex) {
108             return false;
109         }
110         return true;
111     } //-- boolean isValid()
112

113     /**
114      * Method marshal
115      *
116      * @param out
117      */

118     public void marshal(java.io.Writer JavaDoc out)
119         throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
120     {
121         
122         Marshaller.marshal(this, out);
123     } //-- void marshal(java.io.Writer)
124

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

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

137     /**
138      * Method setDefaultValueSets the value of field
139      * 'defaultValue'.
140      *
141      * @param defaultValue the value of field 'defaultValue'.
142      */

143     public void setDefaultValue(java.lang.String JavaDoc defaultValue)
144     {
145         this._defaultValue = defaultValue;
146     } //-- void setDefaultValue(java.lang.String)
147

148     /**
149      * Method setFilterDefinitionNameSets the value of field
150      * 'filterDefinitionName'.
151      *
152      * @param filterDefinitionName the value of field
153      * 'filterDefinitionName'.
154      */

155     public void setFilterDefinitionName(java.lang.String JavaDoc filterDefinitionName)
156     {
157         this._filterDefinitionName = filterDefinitionName;
158     } //-- void setFilterDefinitionName(java.lang.String)
159

160     /**
161      * Method setFilterParameterSets the value of field
162      * 'filterParameter'.
163      *
164      * @param filterParameter the value of field 'filterParameter'.
165      */

166     public void setFilterParameter(com.calipso.reportgenerator.reportdefinitions.types.ParameterValueFilterParameterType filterParameter)
167     {
168         this._filterParameter = filterParameter;
169     } //-- void setFilterParameter(com.calipso.reportgenerator.reportdefinitions.types.ParameterValueFilterParameterType)
170

171     /**
172      * Method unmarshal
173      *
174      * @param reader
175      */

176     public static com.calipso.reportgenerator.reportdefinitions.ParameterValue unmarshal(java.io.Reader JavaDoc reader)
177         throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
178     {
179         return (com.calipso.reportgenerator.reportdefinitions.ParameterValue) Unmarshaller.unmarshal(com.calipso.reportgenerator.reportdefinitions.ParameterValue.class, reader);
180     } //-- com.calipso.reportgenerator.reportdefinitions.ParameterValue unmarshal(java.io.Reader)
181

182     /**
183      * Method validate
184      */

185     public void validate()
186         throws org.exolab.castor.xml.ValidationException
187     {
188         org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
189         validator.validate(this);
190     } //-- void validate()
191

192 }
193
Popular Tags