KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > jetspeed > xml > api > jcm > Textinput


1 /*
2  * This class was automatically generated with
3  * <a HREF="http://castor.exolab.org">Castor 0.9.2</a>, using an
4  * XML Schema.
5  * $Id$
6  */

7
8 package org.apache.jetspeed.xml.api.jcm;
9
10   //---------------------------------/
11
//- Imported classes and packages -/
12
//---------------------------------/
13

14 import java.io.Reader JavaDoc;
15 import java.io.Serializable JavaDoc;
16 import java.io.Writer JavaDoc;
17 import org.exolab.castor.xml.*;
18 import org.exolab.castor.xml.MarshalException;
19 import org.exolab.castor.xml.ValidationException;
20 import org.xml.sax.DocumentHandler JavaDoc;
21
22 /**
23  *
24  * @version $Revision$ $Date$
25 **/

26 public class Textinput implements java.io.Serializable JavaDoc {
27
28
29       //--------------------------/
30
//- Class/Member Variables -/
31
//--------------------------/
32

33     private java.lang.String JavaDoc _title;
34
35     private java.lang.String JavaDoc _link;
36
37     private java.lang.String JavaDoc _description;
38
39     private java.lang.String JavaDoc _name;
40
41
42       //----------------/
43
//- Constructors -/
44
//----------------/
45

46     public Textinput() {
47         super();
48     } //-- org.apache.jetspeed.xml.api.jcm.Textinput()
49

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

55     /**
56     **/

57     public java.lang.String JavaDoc getDescription()
58     {
59         return this._description;
60     } //-- java.lang.String getDescription()
61

62     /**
63     **/

64     public java.lang.String JavaDoc getLink()
65     {
66         return this._link;
67     } //-- java.lang.String getLink()
68

69     /**
70     **/

71     public java.lang.String JavaDoc getName()
72     {
73         return this._name;
74     } //-- java.lang.String getName()
75

76     /**
77     **/

78     public java.lang.String JavaDoc getTitle()
79     {
80         return this._title;
81     } //-- java.lang.String getTitle()
82

83     /**
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      *
98      * @param out
99     **/

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

107     /**
108      *
109      * @param handler
110     **/

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

118     /**
119      *
120      * @param description
121     **/

122     public void setDescription(java.lang.String JavaDoc description)
123     {
124         this._description = description;
125     } //-- void setDescription(java.lang.String)
126

127     /**
128      *
129      * @param link
130     **/

131     public void setLink(java.lang.String JavaDoc link)
132     {
133         this._link = link;
134     } //-- void setLink(java.lang.String)
135

136     /**
137      *
138      * @param name
139     **/

140     public void setName(java.lang.String JavaDoc name)
141     {
142         this._name = name;
143     } //-- void setName(java.lang.String)
144

145     /**
146      *
147      * @param title
148     **/

149     public void setTitle(java.lang.String JavaDoc title)
150     {
151         this._title = title;
152     } //-- void setTitle(java.lang.String)
153

154     /**
155      *
156      * @param reader
157     **/

158     public static org.apache.jetspeed.xml.api.jcm.Textinput unmarshal(java.io.Reader JavaDoc reader)
159         throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
160     {
161         return (org.apache.jetspeed.xml.api.jcm.Textinput) Unmarshaller.unmarshal(org.apache.jetspeed.xml.api.jcm.Textinput.class, reader);
162     } //-- org.apache.jetspeed.xml.api.jcm.Textinput unmarshal(java.io.Reader)
163

164     /**
165     **/

166     public void validate()
167         throws org.exolab.castor.xml.ValidationException
168     {
169         org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
170         validator.validate(this);
171     } //-- void validate()
172

173 }
174
Popular Tags