1
2
3
4
5
6
7
8 package fr.in2p3.jsaga.generated.session;
9
10
11
12
13
14 import java.io.IOException;
15 import java.io.Reader;
16 import java.io.Serializable;
17 import java.io.Writer;
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;
23
24
25
26
27
28
29 public class FilterType implements java.io.Serializable {
30
31
32
33
34
35
36
37
38
39 private java.lang.String _domain;
40
41
42
43
44 private java.lang.String _host;
45
46
47
48
49 private int _port;
50
51
52
53
54 private boolean _has_port;
55
56
57
58
59 private boolean _isPortOptional = false;
60
61
62
63
64 private boolean _has_isPortOptional;
65
66
67
68
69 private java.lang.String _basepath;
70
71
72
73
74
75
76 public FilterType()
77 {
78 super();
79 }
80
81
82
83
84
85
86
87
88
89
90 public void deleteIsPortOptional()
91 {
92 this._has_isPortOptional= false;
93 }
94
95
96
97
98
99 public void deletePort()
100 {
101 this._has_port= false;
102 }
103
104
105
106
107
108
109
110 public java.lang.String getBasepath()
111 {
112 return this._basepath;
113 }
114
115
116
117
118
119
120
121 public java.lang.String getDomain()
122 {
123 return this._domain;
124 }
125
126
127
128
129
130
131
132 public java.lang.String getHost()
133 {
134 return this._host;
135 }
136
137
138
139
140
141
142
143 public boolean getIsPortOptional()
144 {
145 return this._isPortOptional;
146 }
147
148
149
150
151
152
153
154 public int getPort()
155 {
156 return this._port;
157 }
158
159
160
161
162
163
164
165
166 public boolean hasIsPortOptional()
167 {
168 return this._has_isPortOptional;
169 }
170
171
172
173
174
175
176
177
178 public boolean hasPort()
179 {
180 return this._has_port;
181 }
182
183
184
185
186
187
188
189
190 public boolean isValid()
191 {
192 try {
193 validate();
194 }
195 catch (org.exolab.castor.xml.ValidationException vex) {
196 return false;
197 }
198 return true;
199 }
200
201
202
203
204
205
206
207
208 public void marshal(java.io.Writer out)
209 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
210 {
211
212 Marshaller.marshal(this, out);
213 }
214
215
216
217
218
219
220
221
222 public void marshal(org.xml.sax.ContentHandler handler)
223 throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
224 {
225
226 Marshaller.marshal(this, handler);
227 }
228
229
230
231
232
233
234 public void setBasepath(java.lang.String basepath)
235 {
236 this._basepath = basepath;
237 }
238
239
240
241
242
243
244 public void setDomain(java.lang.String domain)
245 {
246 this._domain = domain;
247 }
248
249
250
251
252
253
254 public void setHost(java.lang.String host)
255 {
256 this._host = host;
257 }
258
259
260
261
262
263
264 public void setIsPortOptional(boolean isPortOptional)
265 {
266 this._isPortOptional = isPortOptional;
267 this._has_isPortOptional = true;
268 }
269
270
271
272
273
274
275 public void setPort(int port)
276 {
277 this._port = port;
278 this._has_port = true;
279 }
280
281
282
283
284
285
286
287
288
289 public static java.lang.Object unmarshal(java.io.Reader reader)
290 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
291 {
292 return (fr.in2p3.jsaga.generated.session.FilterType) Unmarshaller.unmarshal(fr.in2p3.jsaga.generated.session.FilterType.class, reader);
293 }
294
295
296
297
298
299 public void validate()
300 throws org.exolab.castor.xml.ValidationException
301 {
302 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
303 validator.validate(this);
304 }
305
306 }