KickJava   Java API By Example, From Geeks To Geeks.

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


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

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

36     /**
37      * Field _code
38      */

39     private java.lang.String JavaDoc _code;
40
41     /**
42      * Field _value
43      */

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

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

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

60     /**
61      * Method getCodeReturns the value of field 'code'.
62      *
63      * @return the value of field 'code'.
64      */

65     public java.lang.String JavaDoc getCode()
66     {
67         return this._code;
68     } //-- java.lang.String getCode()
69

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

75     public java.lang.String JavaDoc getValue()
76     {
77         return this._value;
78     } //-- java.lang.String getValue()
79

80     /**
81      * Method isValid
82      */

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

94     /**
95      * Method marshal
96      *
97      * @param out
98      */

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

106     /**
107      * Method marshal
108      *
109      * @param handler
110      */

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

118     /**
119      * Method setCodeSets the value of field 'code'.
120      *
121      * @param code the value of field 'code'.
122      */

123     public void setCode(java.lang.String JavaDoc code)
124     {
125         this._code = code;
126     } //-- void setCode(java.lang.String)
127

128     /**
129      * Method setValueSets the value of field 'value'.
130      *
131      * @param value the value of field 'value'.
132      */

133     public void setValue(java.lang.String JavaDoc value)
134     {
135         this._value = value;
136     } //-- void setValue(java.lang.String)
137

138     /**
139      * Method unmarshal
140      *
141      * @param reader
142      */

143     public static com.calipso.reportgenerator.reportdefinitions.Literals unmarshal(java.io.Reader JavaDoc reader)
144         throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
145     {
146         return (com.calipso.reportgenerator.reportdefinitions.Literals) Unmarshaller.unmarshal(com.calipso.reportgenerator.reportdefinitions.Literals.class, reader);
147     } //-- com.calipso.reportgenerator.reportdefinitions.Literals unmarshal(java.io.Reader)
148

149     /**
150      * Method validate
151      */

152     public void validate()
153         throws org.exolab.castor.xml.ValidationException
154     {
155         org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
156         validator.validate(this);
157     } //-- void validate()
158

159 }
160
Popular Tags