1
2
3
4
5
6
7
8 package org.exolab.castor.builder.binding.xml;
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23 public class FieldType implements java.io.Serializable {
24
25
26
27
28
29
30
31
32
33 private java.lang.String _name;
34
35
36
37
38 private java.lang.String _javaType;
39
40
41
42
43 private boolean _wrapper;
44
45
46
47
48 private boolean _has_wrapper;
49
50
51
52
53 private java.lang.String _handler;
54
55
56
57
58 private org.exolab.castor.builder.binding.xml.types.FieldTypeCollectionType _collection;
59
60
61
62
63 private org.exolab.castor.builder.binding.xml.types.FieldTypeVisibilityType _visibility;
64
65
66
67
68 private java.lang.String _validator;
69
70
71
72
73
74
75 public FieldType() {
76 super();
77 }
78
79
80
81
82
83
84
85
86 public void deleteWrapper(
87 ) {
88 this._has_wrapper= false;
89 }
90
91
92
93
94
95
96 public org.exolab.castor.builder.binding.xml.types.FieldTypeCollectionType getCollection(
97 ) {
98 return this._collection;
99 }
100
101
102
103
104
105
106 public java.lang.String getHandler(
107 ) {
108 return this._handler;
109 }
110
111
112
113
114
115
116 public java.lang.String getJavaType(
117 ) {
118 return this._javaType;
119 }
120
121
122
123
124
125
126 public java.lang.String getName(
127 ) {
128 return this._name;
129 }
130
131
132
133
134
135
136 public java.lang.String getValidator(
137 ) {
138 return this._validator;
139 }
140
141
142
143
144
145
146 public org.exolab.castor.builder.binding.xml.types.FieldTypeVisibilityType getVisibility(
147 ) {
148 return this._visibility;
149 }
150
151
152
153
154
155
156 public boolean getWrapper(
157 ) {
158 return this._wrapper;
159 }
160
161
162
163
164
165
166 public boolean hasWrapper(
167 ) {
168 return this._has_wrapper;
169 }
170
171
172
173
174
175
176 public boolean isValid(
177 ) {
178 try {
179 validate();
180 } catch (org.exolab.castor.xml.ValidationException vex) {
181 return false;
182 }
183 return true;
184 }
185
186
187
188
189
190
191 public boolean isWrapper(
192 ) {
193 return this._wrapper;
194 }
195
196
197
198
199
200
201
202
203
204
205 public void marshal(
206 final java.io.Writer out)
207 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
208 org.exolab.castor.xml.Marshaller.marshal(this, out);
209 }
210
211
212
213
214
215
216
217
218
219
220
221
222 public void marshal(
223 final org.xml.sax.ContentHandler handler)
224 throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
225 org.exolab.castor.xml.Marshaller.marshal(this, handler);
226 }
227
228
229
230
231
232
233 public void setCollection(
234 final org.exolab.castor.builder.binding.xml.types.FieldTypeCollectionType collection) {
235 this._collection = collection;
236 }
237
238
239
240
241
242
243 public void setHandler(
244 final java.lang.String handler) {
245 this._handler = handler;
246 }
247
248
249
250
251
252
253 public void setJavaType(
254 final java.lang.String javaType) {
255 this._javaType = javaType;
256 }
257
258
259
260
261
262
263 public void setName(
264 final java.lang.String name) {
265 this._name = name;
266 }
267
268
269
270
271
272
273 public void setValidator(
274 final java.lang.String validator) {
275 this._validator = validator;
276 }
277
278
279
280
281
282
283 public void setVisibility(
284 final org.exolab.castor.builder.binding.xml.types.FieldTypeVisibilityType visibility) {
285 this._visibility = visibility;
286 }
287
288
289
290
291
292
293 public void setWrapper(
294 final boolean wrapper) {
295 this._wrapper = wrapper;
296 this._has_wrapper = true;
297 }
298
299
300
301
302
303
304
305
306
307
308
309
310 public static org.exolab.castor.builder.binding.xml.FieldType unmarshalFieldType(
311 final java.io.Reader reader)
312 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
313 return (org.exolab.castor.builder.binding.xml.FieldType) org.exolab.castor.xml.Unmarshaller.unmarshal(org.exolab.castor.builder.binding.xml.FieldType.class, reader);
314 }
315
316
317
318
319
320
321
322 public void validate(
323 )
324 throws org.exolab.castor.xml.ValidationException {
325 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
326 validator.validate(this);
327 }
328
329 }