1
7
8 package oasis.names.tc.wsrp.v1.types;
9
10 public class RegistrationData implements java.io.Serializable {
11 private java.lang.String consumerName;
12 private java.lang.String consumerAgent;
13 private boolean methodGetSupported;
14 private java.lang.String[] consumerModes;
15 private java.lang.String[] consumerWindowStates;
16 private java.lang.String[] consumerUserScopes;
17 private java.lang.String[] customUserProfileData;
18 private oasis.names.tc.wsrp.v1.types.Property[] registrationProperties;
19 private oasis.names.tc.wsrp.v1.types.Extension[] extensions;
20
21 public RegistrationData() {
22 }
23
24 public RegistrationData(
25 java.lang.String consumerAgent,
26 java.lang.String[] consumerModes,
27 java.lang.String consumerName,
28 java.lang.String[] consumerUserScopes,
29 java.lang.String[] consumerWindowStates,
30 java.lang.String[] customUserProfileData,
31 oasis.names.tc.wsrp.v1.types.Extension[] extensions,
32 boolean methodGetSupported,
33 oasis.names.tc.wsrp.v1.types.Property[] registrationProperties) {
34 this.consumerName = consumerName;
35 this.consumerAgent = consumerAgent;
36 this.methodGetSupported = methodGetSupported;
37 this.consumerModes = consumerModes;
38 this.consumerWindowStates = consumerWindowStates;
39 this.consumerUserScopes = consumerUserScopes;
40 this.customUserProfileData = customUserProfileData;
41 this.registrationProperties = registrationProperties;
42 this.extensions = extensions;
43 }
44
45
46
51 public java.lang.String getConsumerName() {
52 return consumerName;
53 }
54
55
56
61 public void setConsumerName(java.lang.String consumerName) {
62 this.consumerName = consumerName;
63 }
64
65
66
71 public java.lang.String getConsumerAgent() {
72 return consumerAgent;
73 }
74
75
76
81 public void setConsumerAgent(java.lang.String consumerAgent) {
82 this.consumerAgent = consumerAgent;
83 }
84
85
86
91 public boolean isMethodGetSupported() {
92 return methodGetSupported;
93 }
94
95
96
101 public void setMethodGetSupported(boolean methodGetSupported) {
102 this.methodGetSupported = methodGetSupported;
103 }
104
105
106
111 public java.lang.String[] getConsumerModes() {
112 return consumerModes;
113 }
114
115
116
121 public void setConsumerModes(java.lang.String[] consumerModes) {
122 this.consumerModes = consumerModes;
123 }
124
125 public java.lang.String getConsumerModes(int i) {
126 return this.consumerModes[i];
127 }
128
129 public void setConsumerModes(int i, java.lang.String _value) {
130 this.consumerModes[i] = _value;
131 }
132
133
134
139 public java.lang.String[] getConsumerWindowStates() {
140 return consumerWindowStates;
141 }
142
143
144
149 public void setConsumerWindowStates(java.lang.String[] consumerWindowStates) {
150 this.consumerWindowStates = consumerWindowStates;
151 }
152
153 public java.lang.String getConsumerWindowStates(int i) {
154 return this.consumerWindowStates[i];
155 }
156
157 public void setConsumerWindowStates(int i, java.lang.String _value) {
158 this.consumerWindowStates[i] = _value;
159 }
160
161
162
167 public java.lang.String[] getConsumerUserScopes() {
168 return consumerUserScopes;
169 }
170
171
172
177 public void setConsumerUserScopes(java.lang.String[] consumerUserScopes) {
178 this.consumerUserScopes = consumerUserScopes;
179 }
180
181 public java.lang.String getConsumerUserScopes(int i) {
182 return this.consumerUserScopes[i];
183 }
184
185 public void setConsumerUserScopes(int i, java.lang.String _value) {
186 this.consumerUserScopes[i] = _value;
187 }
188
189
190
195 public java.lang.String[] getCustomUserProfileData() {
196 return customUserProfileData;
197 }
198
199
200
205 public void setCustomUserProfileData(java.lang.String[] customUserProfileData) {
206 this.customUserProfileData = customUserProfileData;
207 }
208
209 public java.lang.String getCustomUserProfileData(int i) {
210 return this.customUserProfileData[i];
211 }
212
213 public void setCustomUserProfileData(int i, java.lang.String _value) {
214 this.customUserProfileData[i] = _value;
215 }
216
217
218
223 public oasis.names.tc.wsrp.v1.types.Property[] getRegistrationProperties() {
224 return registrationProperties;
225 }
226
227
228
233 public void setRegistrationProperties(oasis.names.tc.wsrp.v1.types.Property[] registrationProperties) {
234 this.registrationProperties = registrationProperties;
235 }
236
237 public oasis.names.tc.wsrp.v1.types.Property getRegistrationProperties(int i) {
238 return this.registrationProperties[i];
239 }
240
241 public void setRegistrationProperties(int i, oasis.names.tc.wsrp.v1.types.Property _value) {
242 this.registrationProperties[i] = _value;
243 }
244
245
246
251 public oasis.names.tc.wsrp.v1.types.Extension[] getExtensions() {
252 return extensions;
253 }
254
255
256
261 public void setExtensions(oasis.names.tc.wsrp.v1.types.Extension[] extensions) {
262 this.extensions = extensions;
263 }
264
265 public oasis.names.tc.wsrp.v1.types.Extension getExtensions(int i) {
266 return this.extensions[i];
267 }
268
269 public void setExtensions(int i, oasis.names.tc.wsrp.v1.types.Extension _value) {
270 this.extensions[i] = _value;
271 }
272
273 private java.lang.Object __equalsCalc = null;
274 public synchronized boolean equals(java.lang.Object obj) {
275 if (!(obj instanceof RegistrationData)) return false;
276 RegistrationData other = (RegistrationData) obj;
277 if (obj == null) return false;
278 if (this == obj) return true;
279 if (__equalsCalc != null) {
280 return (__equalsCalc == obj);
281 }
282 __equalsCalc = obj;
283 boolean _equals;
284 _equals = true &&
285 ((this.consumerName==null && other.getConsumerName()==null) ||
286 (this.consumerName!=null &&
287 this.consumerName.equals(other.getConsumerName()))) &&
288 ((this.consumerAgent==null && other.getConsumerAgent()==null) ||
289 (this.consumerAgent!=null &&
290 this.consumerAgent.equals(other.getConsumerAgent()))) &&
291 this.methodGetSupported == other.isMethodGetSupported() &&
292 ((this.consumerModes==null && other.getConsumerModes()==null) ||
293 (this.consumerModes!=null &&
294 java.util.Arrays.equals(this.consumerModes, other.getConsumerModes()))) &&
295 ((this.consumerWindowStates==null && other.getConsumerWindowStates()==null) ||
296 (this.consumerWindowStates!=null &&
297 java.util.Arrays.equals(this.consumerWindowStates, other.getConsumerWindowStates()))) &&
298 ((this.consumerUserScopes==null && other.getConsumerUserScopes()==null) ||
299 (this.consumerUserScopes!=null &&
300 java.util.Arrays.equals(this.consumerUserScopes, other.getConsumerUserScopes()))) &&
301 ((this.customUserProfileData==null && other.getCustomUserProfileData()==null) ||
302 (this.customUserProfileData!=null &&
303 java.util.Arrays.equals(this.customUserProfileData, other.getCustomUserProfileData()))) &&
304 ((this.registrationProperties==null && other.getRegistrationProperties()==null) ||
305 (this.registrationProperties!=null &&
306 java.util.Arrays.equals(this.registrationProperties, other.getRegistrationProperties()))) &&
307 ((this.extensions==null && other.getExtensions()==null) ||
308 (this.extensions!=null &&
309 java.util.Arrays.equals(this.extensions, other.getExtensions())));
310 __equalsCalc = null;
311 return _equals;
312 }
313
314 private boolean __hashCodeCalc = false;
315 public synchronized int hashCode() {
316 if (__hashCodeCalc) {
317 return 0;
318 }
319 __hashCodeCalc = true;
320 int _hashCode = 1;
321 if (getConsumerName() != null) {
322 _hashCode += getConsumerName().hashCode();
323 }
324 if (getConsumerAgent() != null) {
325 _hashCode += getConsumerAgent().hashCode();
326 }
327 _hashCode += (isMethodGetSupported() ? Boolean.TRUE : Boolean.FALSE).hashCode();
328 if (getConsumerModes() != null) {
329 for (int i=0;
330 i<java.lang.reflect.Array.getLength(getConsumerModes());
331 i++) {
332 java.lang.Object obj = java.lang.reflect.Array.get(getConsumerModes(), i);
333 if (obj != null &&
334 !obj.getClass().isArray()) {
335 _hashCode += obj.hashCode();
336 }
337 }
338 }
339 if (getConsumerWindowStates() != null) {
340 for (int i=0;
341 i<java.lang.reflect.Array.getLength(getConsumerWindowStates());
342 i++) {
343 java.lang.Object obj = java.lang.reflect.Array.get(getConsumerWindowStates(), i);
344 if (obj != null &&
345 !obj.getClass().isArray()) {
346 _hashCode += obj.hashCode();
347 }
348 }
349 }
350 if (getConsumerUserScopes() != null) {
351 for (int i=0;
352 i<java.lang.reflect.Array.getLength(getConsumerUserScopes());
353 i++) {
354 java.lang.Object obj = java.lang.reflect.Array.get(getConsumerUserScopes(), i);
355 if (obj != null &&
356 !obj.getClass().isArray()) {
357 _hashCode += obj.hashCode();
358 }
359 }
360 }
361 if (getCustomUserProfileData() != null) {
362 for (int i=0;
363 i<java.lang.reflect.Array.getLength(getCustomUserProfileData());
364 i++) {
365 java.lang.Object obj = java.lang.reflect.Array.get(getCustomUserProfileData(), i);
366 if (obj != null &&
367 !obj.getClass().isArray()) {
368 _hashCode += obj.hashCode();
369 }
370 }
371 }
372 if (getRegistrationProperties() != null) {
373 for (int i=0;
374 i<java.lang.reflect.Array.getLength(getRegistrationProperties());
375 i++) {
376 java.lang.Object obj = java.lang.reflect.Array.get(getRegistrationProperties(), i);
377 if (obj != null &&
378 !obj.getClass().isArray()) {
379 _hashCode += obj.hashCode();
380 }
381 }
382 }
383 if (getExtensions() != null) {
384 for (int i=0;
385 i<java.lang.reflect.Array.getLength(getExtensions());
386 i++) {
387 java.lang.Object obj = java.lang.reflect.Array.get(getExtensions(), i);
388 if (obj != null &&
389 !obj.getClass().isArray()) {
390 _hashCode += obj.hashCode();
391 }
392 }
393 }
394 __hashCodeCalc = false;
395 return _hashCode;
396 }
397
398 private static org.apache.axis.description.TypeDesc typeDesc =
400 new org.apache.axis.description.TypeDesc(RegistrationData.class, true);
401
402 static {
403 typeDesc.setXmlType(new javax.xml.namespace.QName("urn:oasis:names:tc:wsrp:v1:types", "RegistrationData"));
404 org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
405 elemField.setFieldName("consumerName");
406 elemField.setXmlName(new javax.xml.namespace.QName("urn:oasis:names:tc:wsrp:v1:types", "consumerName"));
407 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
408 typeDesc.addFieldDesc(elemField);
409 elemField = new org.apache.axis.description.ElementDesc();
410 elemField.setFieldName("consumerAgent");
411 elemField.setXmlName(new javax.xml.namespace.QName("urn:oasis:names:tc:wsrp:v1:types", "consumerAgent"));
412 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
413 typeDesc.addFieldDesc(elemField);
414 elemField = new org.apache.axis.description.ElementDesc();
415 elemField.setFieldName("methodGetSupported");
416 elemField.setXmlName(new javax.xml.namespace.QName("urn:oasis:names:tc:wsrp:v1:types", "methodGetSupported"));
417 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
418 typeDesc.addFieldDesc(elemField);
419 elemField = new org.apache.axis.description.ElementDesc();
420 elemField.setFieldName("consumerModes");
421 elemField.setXmlName(new javax.xml.namespace.QName("urn:oasis:names:tc:wsrp:v1:types", "consumerModes"));
422 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
423 elemField.setMinOccurs(0);
424 typeDesc.addFieldDesc(elemField);
425 elemField = new org.apache.axis.description.ElementDesc();
426 elemField.setFieldName("consumerWindowStates");
427 elemField.setXmlName(new javax.xml.namespace.QName("urn:oasis:names:tc:wsrp:v1:types", "consumerWindowStates"));
428 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
429 elemField.setMinOccurs(0);
430 typeDesc.addFieldDesc(elemField);
431 elemField = new org.apache.axis.description.ElementDesc();
432 elemField.setFieldName("consumerUserScopes");
433 elemField.setXmlName(new javax.xml.namespace.QName("urn:oasis:names:tc:wsrp:v1:types", "consumerUserScopes"));
434 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
435 elemField.setMinOccurs(0);
436 typeDesc.addFieldDesc(elemField);
437 elemField = new org.apache.axis.description.ElementDesc();
438 elemField.setFieldName("customUserProfileData");
439 elemField.setXmlName(new javax.xml.namespace.QName("urn:oasis:names:tc:wsrp:v1:types", "customUserProfileData"));
440 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
441 elemField.setMinOccurs(0);
442 typeDesc.addFieldDesc(elemField);
443 elemField = new org.apache.axis.description.ElementDesc();
444 elemField.setFieldName("registrationProperties");
445 elemField.setXmlName(new javax.xml.namespace.QName("urn:oasis:names:tc:wsrp:v1:types", "registrationProperties"));
446 elemField.setXmlType(new javax.xml.namespace.QName("urn:oasis:names:tc:wsrp:v1:types", "Property"));
447 elemField.setMinOccurs(0);
448 typeDesc.addFieldDesc(elemField);
449 elemField = new org.apache.axis.description.ElementDesc();
450 elemField.setFieldName("extensions");
451 elemField.setXmlName(new javax.xml.namespace.QName("urn:oasis:names:tc:wsrp:v1:types", "extensions"));
452 elemField.setXmlType(new javax.xml.namespace.QName("urn:oasis:names:tc:wsrp:v1:types", "Extension"));
453 elemField.setMinOccurs(0);
454 typeDesc.addFieldDesc(elemField);
455 }
456
457
460 public static org.apache.axis.description.TypeDesc getTypeDesc() {
461 return typeDesc;
462 }
463
464
467 public static org.apache.axis.encoding.Serializer getSerializer(
468 java.lang.String mechType,
469 java.lang.Class _javaType,
470 javax.xml.namespace.QName _xmlType) {
471 return
472 new org.apache.axis.encoding.ser.BeanSerializer(
473 _javaType, _xmlType, typeDesc);
474 }
475
476
479 public static org.apache.axis.encoding.Deserializer getDeserializer(
480 java.lang.String mechType,
481 java.lang.Class _javaType,
482 javax.xml.namespace.QName _xmlType) {
483 return
484 new org.apache.axis.encoding.ser.BeanDeserializer(
485 _javaType, _xmlType, typeDesc);
486 }
487
488 }
489