1
2
3
4
5
6
7
8 package org.ogf.srm22;
9
10 public class TMetaDataSpace implements java.io.Serializable {
11 private java.lang.String spaceToken;
12
13 private org.ogf.srm22.TReturnStatus status;
14
15 private org.ogf.srm22.TRetentionPolicyInfo retentionPolicyInfo;
16
17 private java.lang.String owner;
18
19 private org.apache.axis.types.UnsignedLong totalSize;
20
21 private org.apache.axis.types.UnsignedLong guaranteedSize;
22
23 private org.apache.axis.types.UnsignedLong unusedSize;
24
25 private java.lang.Integer lifetimeAssigned;
26
27 private java.lang.Integer lifetimeLeft;
28
29 public TMetaDataSpace() {
30 }
31
32 public TMetaDataSpace(
33 java.lang.String spaceToken,
34 org.ogf.srm22.TReturnStatus status,
35 org.ogf.srm22.TRetentionPolicyInfo retentionPolicyInfo,
36 java.lang.String owner,
37 org.apache.axis.types.UnsignedLong totalSize,
38 org.apache.axis.types.UnsignedLong guaranteedSize,
39 org.apache.axis.types.UnsignedLong unusedSize,
40 java.lang.Integer lifetimeAssigned,
41 java.lang.Integer lifetimeLeft) {
42 this.spaceToken = spaceToken;
43 this.status = status;
44 this.retentionPolicyInfo = retentionPolicyInfo;
45 this.owner = owner;
46 this.totalSize = totalSize;
47 this.guaranteedSize = guaranteedSize;
48 this.unusedSize = unusedSize;
49 this.lifetimeAssigned = lifetimeAssigned;
50 this.lifetimeLeft = lifetimeLeft;
51 }
52
53
54
55
56
57
58
59 public java.lang.String getSpaceToken() {
60 return spaceToken;
61 }
62
63
64
65
66
67
68
69 public void setSpaceToken(java.lang.String spaceToken) {
70 this.spaceToken = spaceToken;
71 }
72
73
74
75
76
77
78
79 public org.ogf.srm22.TReturnStatus getStatus() {
80 return status;
81 }
82
83
84
85
86
87
88
89 public void setStatus(org.ogf.srm22.TReturnStatus status) {
90 this.status = status;
91 }
92
93
94
95
96
97
98
99 public org.ogf.srm22.TRetentionPolicyInfo getRetentionPolicyInfo() {
100 return retentionPolicyInfo;
101 }
102
103
104
105
106
107
108
109 public void setRetentionPolicyInfo(org.ogf.srm22.TRetentionPolicyInfo retentionPolicyInfo) {
110 this.retentionPolicyInfo = retentionPolicyInfo;
111 }
112
113
114
115
116
117
118
119 public java.lang.String getOwner() {
120 return owner;
121 }
122
123
124
125
126
127
128
129 public void setOwner(java.lang.String owner) {
130 this.owner = owner;
131 }
132
133
134
135
136
137
138
139 public org.apache.axis.types.UnsignedLong getTotalSize() {
140 return totalSize;
141 }
142
143
144
145
146
147
148
149 public void setTotalSize(org.apache.axis.types.UnsignedLong totalSize) {
150 this.totalSize = totalSize;
151 }
152
153
154
155
156
157
158
159 public org.apache.axis.types.UnsignedLong getGuaranteedSize() {
160 return guaranteedSize;
161 }
162
163
164
165
166
167
168
169 public void setGuaranteedSize(org.apache.axis.types.UnsignedLong guaranteedSize) {
170 this.guaranteedSize = guaranteedSize;
171 }
172
173
174
175
176
177
178
179 public org.apache.axis.types.UnsignedLong getUnusedSize() {
180 return unusedSize;
181 }
182
183
184
185
186
187
188
189 public void setUnusedSize(org.apache.axis.types.UnsignedLong unusedSize) {
190 this.unusedSize = unusedSize;
191 }
192
193
194
195
196
197
198
199 public java.lang.Integer getLifetimeAssigned() {
200 return lifetimeAssigned;
201 }
202
203
204
205
206
207
208
209 public void setLifetimeAssigned(java.lang.Integer lifetimeAssigned) {
210 this.lifetimeAssigned = lifetimeAssigned;
211 }
212
213
214
215
216
217
218
219 public java.lang.Integer getLifetimeLeft() {
220 return lifetimeLeft;
221 }
222
223
224
225
226
227
228
229 public void setLifetimeLeft(java.lang.Integer lifetimeLeft) {
230 this.lifetimeLeft = lifetimeLeft;
231 }
232
233 private java.lang.Object __equalsCalc = null;
234 public synchronized boolean equals(java.lang.Object obj) {
235 if (!(obj instanceof TMetaDataSpace)) return false;
236 TMetaDataSpace other = (TMetaDataSpace) obj;
237 if (obj == null) return false;
238 if (this == obj) return true;
239 if (__equalsCalc != null) {
240 return (__equalsCalc == obj);
241 }
242 __equalsCalc = obj;
243 boolean _equals;
244 _equals = true &&
245 ((this.spaceToken==null && other.getSpaceToken()==null) ||
246 (this.spaceToken!=null &&
247 this.spaceToken.equals(other.getSpaceToken()))) &&
248 ((this.status==null && other.getStatus()==null) ||
249 (this.status!=null &&
250 this.status.equals(other.getStatus()))) &&
251 ((this.retentionPolicyInfo==null && other.getRetentionPolicyInfo()==null) ||
252 (this.retentionPolicyInfo!=null &&
253 this.retentionPolicyInfo.equals(other.getRetentionPolicyInfo()))) &&
254 ((this.owner==null && other.getOwner()==null) ||
255 (this.owner!=null &&
256 this.owner.equals(other.getOwner()))) &&
257 ((this.totalSize==null && other.getTotalSize()==null) ||
258 (this.totalSize!=null &&
259 this.totalSize.equals(other.getTotalSize()))) &&
260 ((this.guaranteedSize==null && other.getGuaranteedSize()==null) ||
261 (this.guaranteedSize!=null &&
262 this.guaranteedSize.equals(other.getGuaranteedSize()))) &&
263 ((this.unusedSize==null && other.getUnusedSize()==null) ||
264 (this.unusedSize!=null &&
265 this.unusedSize.equals(other.getUnusedSize()))) &&
266 ((this.lifetimeAssigned==null && other.getLifetimeAssigned()==null) ||
267 (this.lifetimeAssigned!=null &&
268 this.lifetimeAssigned.equals(other.getLifetimeAssigned()))) &&
269 ((this.lifetimeLeft==null && other.getLifetimeLeft()==null) ||
270 (this.lifetimeLeft!=null &&
271 this.lifetimeLeft.equals(other.getLifetimeLeft())));
272 __equalsCalc = null;
273 return _equals;
274 }
275
276 private boolean __hashCodeCalc = false;
277 public synchronized int hashCode() {
278 if (__hashCodeCalc) {
279 return 0;
280 }
281 __hashCodeCalc = true;
282 int _hashCode = 1;
283 if (getSpaceToken() != null) {
284 _hashCode += getSpaceToken().hashCode();
285 }
286 if (getStatus() != null) {
287 _hashCode += getStatus().hashCode();
288 }
289 if (getRetentionPolicyInfo() != null) {
290 _hashCode += getRetentionPolicyInfo().hashCode();
291 }
292 if (getOwner() != null) {
293 _hashCode += getOwner().hashCode();
294 }
295 if (getTotalSize() != null) {
296 _hashCode += getTotalSize().hashCode();
297 }
298 if (getGuaranteedSize() != null) {
299 _hashCode += getGuaranteedSize().hashCode();
300 }
301 if (getUnusedSize() != null) {
302 _hashCode += getUnusedSize().hashCode();
303 }
304 if (getLifetimeAssigned() != null) {
305 _hashCode += getLifetimeAssigned().hashCode();
306 }
307 if (getLifetimeLeft() != null) {
308 _hashCode += getLifetimeLeft().hashCode();
309 }
310 __hashCodeCalc = false;
311 return _hashCode;
312 }
313
314
315 private static org.apache.axis.description.TypeDesc typeDesc =
316 new org.apache.axis.description.TypeDesc(TMetaDataSpace.class, true);
317
318 static {
319 typeDesc.setXmlType(new javax.xml.namespace.QName("http://srm.lbl.gov/StorageResourceManager", "TMetaDataSpace"));
320 org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
321 elemField.setFieldName("spaceToken");
322 elemField.setXmlName(new javax.xml.namespace.QName("", "spaceToken"));
323 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
324 elemField.setNillable(false);
325 typeDesc.addFieldDesc(elemField);
326 elemField = new org.apache.axis.description.ElementDesc();
327 elemField.setFieldName("status");
328 elemField.setXmlName(new javax.xml.namespace.QName("", "status"));
329 elemField.setXmlType(new javax.xml.namespace.QName("http://srm.lbl.gov/StorageResourceManager", "TReturnStatus"));
330 elemField.setMinOccurs(0);
331 elemField.setNillable(true);
332 typeDesc.addFieldDesc(elemField);
333 elemField = new org.apache.axis.description.ElementDesc();
334 elemField.setFieldName("retentionPolicyInfo");
335 elemField.setXmlName(new javax.xml.namespace.QName("", "retentionPolicyInfo"));
336 elemField.setXmlType(new javax.xml.namespace.QName("http://srm.lbl.gov/StorageResourceManager", "TRetentionPolicyInfo"));
337 elemField.setMinOccurs(0);
338 elemField.setNillable(true);
339 typeDesc.addFieldDesc(elemField);
340 elemField = new org.apache.axis.description.ElementDesc();
341 elemField.setFieldName("owner");
342 elemField.setXmlName(new javax.xml.namespace.QName("", "owner"));
343 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
344 elemField.setMinOccurs(0);
345 elemField.setNillable(true);
346 typeDesc.addFieldDesc(elemField);
347 elemField = new org.apache.axis.description.ElementDesc();
348 elemField.setFieldName("totalSize");
349 elemField.setXmlName(new javax.xml.namespace.QName("", "totalSize"));
350 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "unsignedLong"));
351 elemField.setMinOccurs(0);
352 elemField.setNillable(true);
353 typeDesc.addFieldDesc(elemField);
354 elemField = new org.apache.axis.description.ElementDesc();
355 elemField.setFieldName("guaranteedSize");
356 elemField.setXmlName(new javax.xml.namespace.QName("", "guaranteedSize"));
357 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "unsignedLong"));
358 elemField.setMinOccurs(0);
359 elemField.setNillable(true);
360 typeDesc.addFieldDesc(elemField);
361 elemField = new org.apache.axis.description.ElementDesc();
362 elemField.setFieldName("unusedSize");
363 elemField.setXmlName(new javax.xml.namespace.QName("", "unusedSize"));
364 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "unsignedLong"));
365 elemField.setMinOccurs(0);
366 elemField.setNillable(true);
367 typeDesc.addFieldDesc(elemField);
368 elemField = new org.apache.axis.description.ElementDesc();
369 elemField.setFieldName("lifetimeAssigned");
370 elemField.setXmlName(new javax.xml.namespace.QName("", "lifetimeAssigned"));
371 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
372 elemField.setMinOccurs(0);
373 elemField.setNillable(true);
374 typeDesc.addFieldDesc(elemField);
375 elemField = new org.apache.axis.description.ElementDesc();
376 elemField.setFieldName("lifetimeLeft");
377 elemField.setXmlName(new javax.xml.namespace.QName("", "lifetimeLeft"));
378 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
379 elemField.setMinOccurs(0);
380 elemField.setNillable(true);
381 typeDesc.addFieldDesc(elemField);
382 }
383
384
385
386
387 public static org.apache.axis.description.TypeDesc getTypeDesc() {
388 return typeDesc;
389 }
390
391
392
393
394 public static org.apache.axis.encoding.Serializer getSerializer(
395 java.lang.String mechType,
396 java.lang.Class _javaType,
397 javax.xml.namespace.QName _xmlType) {
398 return
399 new org.apache.axis.encoding.ser.BeanSerializer(
400 _javaType, _xmlType, typeDesc);
401 }
402
403
404
405
406 public static org.apache.axis.encoding.Deserializer getDeserializer(
407 java.lang.String mechType,
408 java.lang.Class _javaType,
409 javax.xml.namespace.QName _xmlType) {
410 return
411 new org.apache.axis.encoding.ser.BeanDeserializer(
412 _javaType, _xmlType, typeDesc);
413 }
414
415 }