KickJava   Java API By Example, From Geeks To Geeks.

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


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

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

36     /**
37      * Field _viewParamName
38      */

39     private java.lang.String JavaDoc _viewParamName;
40
41     /**
42      * Field _viewParamValue
43      */

44     private java.lang.String JavaDoc _viewParamValue;
45
46
47       //----------------/
48
//- Constructors -/
49
//----------------/
50

51     public ViewParameterValue() {
52         super();
53     } //-- com.calipso.reportgenerator.reportdefinitions.ViewParameterValue()
54

55
56       //-----------/
57
//- Methods -/
58
//-----------/
59

60     /**
61      * Method getViewParamNameReturns the value of field
62      * 'viewParamName'.
63      *
64      * @return the value of field 'viewParamName'.
65      */

66     public java.lang.String JavaDoc getViewParamName()
67     {
68         return this._viewParamName;
69     } //-- java.lang.String getViewParamName()
70

71     /**
72      * Method getViewParamValueReturns the value of field
73      * 'viewParamValue'.
74      *
75      * @return the value of field 'viewParamValue'.
76      */

77     public java.lang.String JavaDoc getViewParamValue()
78     {
79         return this._viewParamValue;
80     } //-- java.lang.String getViewParamValue()
81

82     /**
83      * Method isValid
84      */

85     public boolean isValid()
86     {
87         try {
88             validate();
89         }
90         catch (org.exolab.castor.xml.ValidationException vex) {
91             return false;
92         }
93         return true;
94     } //-- boolean isValid()
95

96     /**
97      * Method marshal
98      *
99      * @param out
100      */

101     public void marshal(java.io.Writer JavaDoc out)
102         throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
103     {
104         
105         Marshaller.marshal(this, out);
106     } //-- void marshal(java.io.Writer)
107

108     /**
109      * Method marshal
110      *
111      * @param handler
112      */

113     public void marshal(org.xml.sax.ContentHandler JavaDoc handler)
114         throws java.io.IOException JavaDoc, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
115     {
116         
117         Marshaller.marshal(this, handler);
118     } //-- void marshal(org.xml.sax.ContentHandler)
119

120     /**
121      * Method setViewParamNameSets the value of field
122      * 'viewParamName'.
123      *
124      * @param viewParamName the value of field 'viewParamName'.
125      */

126     public void setViewParamName(java.lang.String JavaDoc viewParamName)
127     {
128         this._viewParamName = viewParamName;
129     } //-- void setViewParamName(java.lang.String)
130

131     /**
132      * Method setViewParamValueSets the value of field
133      * 'viewParamValue'.
134      *
135      * @param viewParamValue the value of field 'viewParamValue'.
136      */

137     public void setViewParamValue(java.lang.String JavaDoc viewParamValue)
138     {
139         this._viewParamValue = viewParamValue;
140     } //-- void setViewParamValue(java.lang.String)
141

142     /**
143      * Method unmarshal
144      *
145      * @param reader
146      */

147     public static com.calipso.reportgenerator.reportdefinitions.ViewParameterValue unmarshal(java.io.Reader JavaDoc reader)
148         throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
149     {
150         return (com.calipso.reportgenerator.reportdefinitions.ViewParameterValue) Unmarshaller.unmarshal(com.calipso.reportgenerator.reportdefinitions.ViewParameterValue.class, reader);
151     } //-- com.calipso.reportgenerator.reportdefinitions.ViewParameterValue unmarshal(java.io.Reader)
152

153     /**
154      * Method validate
155      */

156     public void validate()
157         throws org.exolab.castor.xml.ValidationException
158     {
159         org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
160         validator.validate(this);
161     } //-- void validate()
162

163 }
164
Popular Tags