1
2
3
4
5
6
7
8 package org.apache.jetspeed.xml.api.jcm;
9
10
11
12
13
14 import java.io.Reader;
15 import java.io.Serializable;
16 import java.io.Writer;
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;
21
22 /***
23 *
24 * @version $Revision$ $Date$
25 **/
26 public class Textinput implements java.io.Serializable {
27
28
29
30
31
32
33 private java.lang.String _title;
34
35 private java.lang.String _link;
36
37 private java.lang.String _description;
38
39 private java.lang.String _name;
40
41
42
43
44
45
46 public Textinput() {
47 super();
48 }
49
50
51
52
53
54
55 /***
56 **/
57 public java.lang.String getDescription()
58 {
59 return this._description;
60 }
61
62 /***
63 **/
64 public java.lang.String getLink()
65 {
66 return this._link;
67 }
68
69 /***
70 **/
71 public java.lang.String getName()
72 {
73 return this._name;
74 }
75
76 /***
77 **/
78 public java.lang.String getTitle()
79 {
80 return this._title;
81 }
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 }
95
96 /***
97 *
98 * @param out
99 **/
100 public void marshal(java.io.Writer out)
101 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
102 {
103
104 Marshaller.marshal(this, out);
105 }
106
107 /***
108 *
109 * @param handler
110 **/
111 public void marshal(org.xml.sax.DocumentHandler handler)
112 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
113 {
114
115 Marshaller.marshal(this, handler);
116 }
117
118 /***
119 *
120 * @param description
121 **/
122 public void setDescription(java.lang.String description)
123 {
124 this._description = description;
125 }
126
127 /***
128 *
129 * @param link
130 **/
131 public void setLink(java.lang.String link)
132 {
133 this._link = link;
134 }
135
136 /***
137 *
138 * @param name
139 **/
140 public void setName(java.lang.String name)
141 {
142 this._name = name;
143 }
144
145 /***
146 *
147 * @param title
148 **/
149 public void setTitle(java.lang.String title)
150 {
151 this._title = title;
152 }
153
154 /***
155 *
156 * @param reader
157 **/
158 public static org.apache.jetspeed.xml.api.jcm.Textinput unmarshal(java.io.Reader 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 }
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 }
172
173 }