KickJava   Java API By Example, From Geeks To Geeks.

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


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

29 public class Rol 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       //----------------/
43
//- Constructors -/
44
//----------------/
45

46     public Rol() {
47         super();
48     } //-- com.calipso.reportgenerator.reportdefinitions.Rol()
49

50
51       //-----------/
52
//- Methods -/
53
//-----------/
54

55     /**
56      * Method getNameReturns the value of field 'name'.
57      *
58      * @return the value of field 'name'.
59      */

60     public java.lang.String JavaDoc getName()
61     {
62         return this._name;
63     } //-- java.lang.String getName()
64

65     /**
66      * Method isValid
67      */

68     public boolean isValid()
69     {
70         try {
71             validate();
72         }
73         catch (org.exolab.castor.xml.ValidationException vex) {
74             return false;
75         }
76         return true;
77     } //-- boolean isValid()
78

79     /**
80      * Method marshal
81      *
82      * @param out
83      */

84     public void marshal(java.io.Writer JavaDoc out)
85         throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
86     {
87         
88         Marshaller.marshal(this, out);
89     } //-- void marshal(java.io.Writer)
90

91     /**
92      * Method marshal
93      *
94      * @param handler
95      */

96     public void marshal(org.xml.sax.ContentHandler JavaDoc handler)
97         throws java.io.IOException JavaDoc, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
98     {
99         
100         Marshaller.marshal(this, handler);
101     } //-- void marshal(org.xml.sax.ContentHandler)
102

103     /**
104      * Method setNameSets the value of field 'name'.
105      *
106      * @param name the value of field 'name'.
107      */

108     public void setName(java.lang.String JavaDoc name)
109     {
110         this._name = name;
111     } //-- void setName(java.lang.String)
112

113     /**
114      * Method unmarshal
115      *
116      * @param reader
117      */

118     public static com.calipso.reportgenerator.reportdefinitions.Rol unmarshal(java.io.Reader JavaDoc reader)
119         throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
120     {
121         return (com.calipso.reportgenerator.reportdefinitions.Rol) Unmarshaller.unmarshal(com.calipso.reportgenerator.reportdefinitions.Rol.class, reader);
122     } //-- com.calipso.reportgenerator.reportdefinitions.Rol unmarshal(java.io.Reader)
123

124     /**
125      * Method validate
126      */

127     public void validate()
128         throws org.exolab.castor.xml.ValidationException
129     {
130         org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
131         validator.validate(this);
132     } //-- void validate()
133

134 }
135
Popular Tags