1
7
8 package oasis.names.tc.wsrp.v1.types;
9
10 public class ServiceDescription implements java.io.Serializable {
11 private boolean requiresRegistration;
12 private oasis.names.tc.wsrp.v1.types.PortletDescription[] offeredPortlets;
13 private oasis.names.tc.wsrp.v1.types.ItemDescription[] userCategoryDescriptions;
14 private oasis.names.tc.wsrp.v1.types.ItemDescription[] customUserProfileItemDescriptions;
15 private oasis.names.tc.wsrp.v1.types.ItemDescription[] customWindowStateDescriptions;
16 private oasis.names.tc.wsrp.v1.types.ItemDescription[] customModeDescriptions;
17 private oasis.names.tc.wsrp.v1.types.CookieProtocol requiresInitCookie;
18 private oasis.names.tc.wsrp.v1.types.ModelDescription registrationPropertyDescription;
19 private java.lang.String[] locales;
20 private oasis.names.tc.wsrp.v1.types.ResourceList resourceList;
21 private oasis.names.tc.wsrp.v1.types.Extension[] extensions;
22
23 public ServiceDescription() {
24 }
25
26 public ServiceDescription(
27 oasis.names.tc.wsrp.v1.types.ItemDescription[] customModeDescriptions,
28 oasis.names.tc.wsrp.v1.types.ItemDescription[] customUserProfileItemDescriptions,
29 oasis.names.tc.wsrp.v1.types.ItemDescription[] customWindowStateDescriptions,
30 oasis.names.tc.wsrp.v1.types.Extension[] extensions,
31 java.lang.String[] locales,
32 oasis.names.tc.wsrp.v1.types.PortletDescription[] offeredPortlets,
33 oasis.names.tc.wsrp.v1.types.ModelDescription registrationPropertyDescription,
34 oasis.names.tc.wsrp.v1.types.CookieProtocol requiresInitCookie,
35 boolean requiresRegistration,
36 oasis.names.tc.wsrp.v1.types.ResourceList resourceList,
37 oasis.names.tc.wsrp.v1.types.ItemDescription[] userCategoryDescriptions) {
38 this.requiresRegistration = requiresRegistration;
39 this.offeredPortlets = offeredPortlets;
40 this.userCategoryDescriptions = userCategoryDescriptions;
41 this.customUserProfileItemDescriptions = customUserProfileItemDescriptions;
42 this.customWindowStateDescriptions = customWindowStateDescriptions;
43 this.customModeDescriptions = customModeDescriptions;
44 this.requiresInitCookie = requiresInitCookie;
45 this.registrationPropertyDescription = registrationPropertyDescription;
46 this.locales = locales;
47 this.resourceList = resourceList;
48 this.extensions = extensions;
49 }
50
51
52
57 public boolean isRequiresRegistration() {
58 return requiresRegistration;
59 }
60
61
62
67 public void setRequiresRegistration(boolean requiresRegistration) {
68 this.requiresRegistration = requiresRegistration;
69 }
70
71
72
77 public oasis.names.tc.wsrp.v1.types.PortletDescription[] getOfferedPortlets() {
78 return offeredPortlets;
79 }
80
81
82
87 public void setOfferedPortlets(oasis.names.tc.wsrp.v1.types.PortletDescription[] offeredPortlets) {
88 this.offeredPortlets = offeredPortlets;
89 }
90
91 public oasis.names.tc.wsrp.v1.types.PortletDescription getOfferedPortlets(int i) {
92 return this.offeredPortlets[i];
93 }
94
95 public void setOfferedPortlets(int i, oasis.names.tc.wsrp.v1.types.PortletDescription _value) {
96 this.offeredPortlets[i] = _value;
97 }
98
99
100
105 public oasis.names.tc.wsrp.v1.types.ItemDescription[] getUserCategoryDescriptions() {
106 return userCategoryDescriptions;
107 }
108
109
110
115 public void setUserCategoryDescriptions(oasis.names.tc.wsrp.v1.types.ItemDescription[] userCategoryDescriptions) {
116 this.userCategoryDescriptions = userCategoryDescriptions;
117 }
118
119 public oasis.names.tc.wsrp.v1.types.ItemDescription getUserCategoryDescriptions(int i) {
120 return this.userCategoryDescriptions[i];
121 }
122
123 public void setUserCategoryDescriptions(int i, oasis.names.tc.wsrp.v1.types.ItemDescription _value) {
124 this.userCategoryDescriptions[i] = _value;
125 }
126
127
128
133 public oasis.names.tc.wsrp.v1.types.ItemDescription[] getCustomUserProfileItemDescriptions() {
134 return customUserProfileItemDescriptions;
135 }
136
137
138
143 public void setCustomUserProfileItemDescriptions(oasis.names.tc.wsrp.v1.types.ItemDescription[] customUserProfileItemDescriptions) {
144 this.customUserProfileItemDescriptions = customUserProfileItemDescriptions;
145 }
146
147 public oasis.names.tc.wsrp.v1.types.ItemDescription getCustomUserProfileItemDescriptions(int i) {
148 return this.customUserProfileItemDescriptions[i];
149 }
150
151 public void setCustomUserProfileItemDescriptions(int i, oasis.names.tc.wsrp.v1.types.ItemDescription _value) {
152 this.customUserProfileItemDescriptions[i] = _value;
153 }
154
155
156
161 public oasis.names.tc.wsrp.v1.types.ItemDescription[] getCustomWindowStateDescriptions() {
162 return customWindowStateDescriptions;
163 }
164
165
166
171 public void setCustomWindowStateDescriptions(oasis.names.tc.wsrp.v1.types.ItemDescription[] customWindowStateDescriptions) {
172 this.customWindowStateDescriptions = customWindowStateDescriptions;
173 }
174
175 public oasis.names.tc.wsrp.v1.types.ItemDescription getCustomWindowStateDescriptions(int i) {
176 return this.customWindowStateDescriptions[i];
177 }
178
179 public void setCustomWindowStateDescriptions(int i, oasis.names.tc.wsrp.v1.types.ItemDescription _value) {
180 this.customWindowStateDescriptions[i] = _value;
181 }
182
183
184
189 public oasis.names.tc.wsrp.v1.types.ItemDescription[] getCustomModeDescriptions() {
190 return customModeDescriptions;
191 }
192
193
194
199 public void setCustomModeDescriptions(oasis.names.tc.wsrp.v1.types.ItemDescription[] customModeDescriptions) {
200 this.customModeDescriptions = customModeDescriptions;
201 }
202
203 public oasis.names.tc.wsrp.v1.types.ItemDescription getCustomModeDescriptions(int i) {
204 return this.customModeDescriptions[i];
205 }
206
207 public void setCustomModeDescriptions(int i, oasis.names.tc.wsrp.v1.types.ItemDescription _value) {
208 this.customModeDescriptions[i] = _value;
209 }
210
211
212
217 public oasis.names.tc.wsrp.v1.types.CookieProtocol getRequiresInitCookie() {
218 return requiresInitCookie;
219 }
220
221
222
227 public void setRequiresInitCookie(oasis.names.tc.wsrp.v1.types.CookieProtocol requiresInitCookie) {
228 this.requiresInitCookie = requiresInitCookie;
229 }
230
231
232
237 public oasis.names.tc.wsrp.v1.types.ModelDescription getRegistrationPropertyDescription() {
238 return registrationPropertyDescription;
239 }
240
241
242
247 public void setRegistrationPropertyDescription(oasis.names.tc.wsrp.v1.types.ModelDescription registrationPropertyDescription) {
248 this.registrationPropertyDescription = registrationPropertyDescription;
249 }
250
251
252
257 public java.lang.String[] getLocales() {
258 return locales;
259 }
260
261
262
267 public void setLocales(java.lang.String[] locales) {
268 this.locales = locales;
269 }
270
271 public java.lang.String getLocales(int i) {
272 return this.locales[i];
273 }
274
275 public void setLocales(int i, java.lang.String _value) {
276 this.locales[i] = _value;
277 }
278
279
280
285 public oasis.names.tc.wsrp.v1.types.ResourceList getResourceList() {
286 return resourceList;
287 }
288
289
290
295 public void setResourceList(oasis.names.tc.wsrp.v1.types.ResourceList resourceList) {
296 this.resourceList = resourceList;
297 }
298
299
300
305 public oasis.names.tc.wsrp.v1.types.Extension[] getExtensions() {
306 return extensions;
307 }
308
309
310
315 public void setExtensions(oasis.names.tc.wsrp.v1.types.Extension[] extensions) {
316 this.extensions = extensions;
317 }
318
319 public oasis.names.tc.wsrp.v1.types.Extension getExtensions(int i) {
320 return this.extensions[i];
321 }
322
323 public void setExtensions(int i, oasis.names.tc.wsrp.v1.types.Extension _value) {
324 this.extensions[i] = _value;
325 }
326
327 private java.lang.Object __equalsCalc = null;
328 public synchronized boolean equals(java.lang.Object obj) {
329 if (!(obj instanceof ServiceDescription)) return false;
330 ServiceDescription other = (ServiceDescription) obj;
331 if (obj == null) return false;
332 if (this == obj) return true;
333 if (__equalsCalc != null) {
334 return (__equalsCalc == obj);
335 }
336 __equalsCalc = obj;
337 boolean _equals;
338 _equals = true &&
339 this.requiresRegistration == other.isRequiresRegistration() &&
340 ((this.offeredPortlets==null && other.getOfferedPortlets()==null) ||
341 (this.offeredPortlets!=null &&
342 java.util.Arrays.equals(this.offeredPortlets, other.getOfferedPortlets()))) &&
343 ((this.userCategoryDescriptions==null && other.getUserCategoryDescriptions()==null) ||
344 (this.userCategoryDescriptions!=null &&
345 java.util.Arrays.equals(this.userCategoryDescriptions, other.getUserCategoryDescriptions()))) &&
346 ((this.customUserProfileItemDescriptions==null && other.getCustomUserProfileItemDescriptions()==null) ||
347 (this.customUserProfileItemDescriptions!=null &&
348 java.util.Arrays.equals(this.customUserProfileItemDescriptions, other.getCustomUserProfileItemDescriptions()))) &&
349 ((this.customWindowStateDescriptions==null && other.getCustomWindowStateDescriptions()==null) ||
350 (this.customWindowStateDescriptions!=null &&
351 java.util.Arrays.equals(this.customWindowStateDescriptions, other.getCustomWindowStateDescriptions()))) &&
352 ((this.customModeDescriptions==null && other.getCustomModeDescriptions()==null) ||
353 (this.customModeDescriptions!=null &&
354 java.util.Arrays.equals(this.customModeDescriptions, other.getCustomModeDescriptions()))) &&
355 ((this.requiresInitCookie==null && other.getRequiresInitCookie()==null) ||
356 (this.requiresInitCookie!=null &&
357 this.requiresInitCookie.equals(other.getRequiresInitCookie()))) &&
358 ((this.registrationPropertyDescription==null && other.getRegistrationPropertyDescription()==null) ||
359 (this.registrationPropertyDescription!=null &&
360 this.registrationPropertyDescription.equals(other.getRegistrationPropertyDescription()))) &&
361 ((this.locales==null && other.getLocales()==null) ||
362 (this.locales!=null &&
363 java.util.Arrays.equals(this.locales, other.getLocales()))) &&
364 ((this.resourceList==null && other.getResourceList()==null) ||
365 (this.resourceList!=null &&
366 this.resourceList.equals(other.getResourceList()))) &&
367 ((this.extensions==null && other.getExtensions()==null) ||
368 (this.extensions!=null &&
369 java.util.Arrays.equals(this.extensions, other.getExtensions())));
370 __equalsCalc = null;
371 return _equals;
372 }
373
374 private boolean __hashCodeCalc = false;
375 public synchronized int hashCode() {
376 if (__hashCodeCalc) {
377 return 0;
378 }
379 __hashCodeCalc = true;
380 int _hashCode = 1;
381 _hashCode += (isRequiresRegistration() ? Boolean.TRUE : Boolean.FALSE).hashCode();
382 if (getOfferedPortlets() != null) {
383 for (int i=0;
384 i<java.lang.reflect.Array.getLength(getOfferedPortlets());
385 i++) {
386 java.lang.Object obj = java.lang.reflect.Array.get(getOfferedPortlets(), i);
387 if (obj != null &&
388 !obj.getClass().isArray()) {
389 _hashCode += obj.hashCode();
390 }
391 }
392 }
393 if (getUserCategoryDescriptions() != null) {
394 for (int i=0;
395 i<java.lang.reflect.Array.getLength(getUserCategoryDescriptions());
396 i++) {
397 java.lang.Object obj = java.lang.reflect.Array.get(getUserCategoryDescriptions(), i);
398 if (obj != null &&
399 !obj.getClass().isArray()) {
400 _hashCode += obj.hashCode();
401 }
402 }
403 }
404 if (getCustomUserProfileItemDescriptions() != null) {
405 for (int i=0;
406 i<java.lang.reflect.Array.getLength(getCustomUserProfileItemDescriptions());
407 i++) {
408 java.lang.Object obj = java.lang.reflect.Array.get(getCustomUserProfileItemDescriptions(), i);
409 if (obj != null &&
410 !obj.getClass().isArray()) {
411 _hashCode += obj.hashCode();
412 }
413 }
414 }
415 if (getCustomWindowStateDescriptions() != null) {
416 for (int i=0;
417 i<java.lang.reflect.Array.getLength(getCustomWindowStateDescriptions());
418 i++) {
419 java.lang.Object obj = java.lang.reflect.Array.get(getCustomWindowStateDescriptions(), i);
420 if (obj != null &&
421 !obj.getClass().isArray()) {
422 _hashCode += obj.hashCode();
423 }
424 }
425 }
426 if (getCustomModeDescriptions() != null) {
427 for (int i=0;
428 i<java.lang.reflect.Array.getLength(getCustomModeDescriptions());
429 i++) {
430 java.lang.Object obj = java.lang.reflect.Array.get(getCustomModeDescriptions(), i);
431 if (obj != null &&
432 !obj.getClass().isArray()) {
433 _hashCode += obj.hashCode();
434 }
435 }
436 }
437 if (getRequiresInitCookie() != null) {
438 _hashCode += getRequiresInitCookie().hashCode();
439 }
440 if (getRegistrationPropertyDescription() != null) {
441 _hashCode += getRegistrationPropertyDescription().hashCode();
442 }
443 if (getLocales() != null) {
444 for (int i=0;
445 i<java.lang.reflect.Array.getLength(getLocales());
446 i++) {
447 java.lang.Object obj = java.lang.reflect.Array.get(getLocales(), i);
448 if (obj != null &&
449 !obj.getClass().isArray()) {
450 _hashCode += obj.hashCode();
451 }
452 }
453 }
454 if (getResourceList() != null) {
455 _hashCode += getResourceList().hashCode();
456 }
457 if (getExtensions() != null) {
458 for (int i=0;
459 i<java.lang.reflect.Array.getLength(getExtensions());
460 i++) {
461 java.lang.Object obj = java.lang.reflect.Array.get(getExtensions(), i);
462 if (obj != null &&
463 !obj.getClass().isArray()) {
464 _hashCode += obj.hashCode();
465 }
466 }
467 }
468 __hashCodeCalc = false;
469 return _hashCode;
470 }
471
472 private static org.apache.axis.description.TypeDesc typeDesc =
474 new org.apache.axis.description.TypeDesc(ServiceDescription.class, true);
475
476 static {
477 typeDesc.setXmlType(new javax.xml.namespace.QName("urn:oasis:names:tc:wsrp:v1:types", "ServiceDescription"));
478 org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
479 elemField.setFieldName("requiresRegistration");
480 elemField.setXmlName(new javax.xml.namespace.QName("urn:oasis:names:tc:wsrp:v1:types", "requiresRegistration"));
481 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
482 typeDesc.addFieldDesc(elemField);
483 elemField = new org.apache.axis.description.ElementDesc();
484 elemField.setFieldName("offeredPortlets");
485 elemField.setXmlName(new javax.xml.namespace.QName("urn:oasis:names:tc:wsrp:v1:types", "offeredPortlets"));
486 elemField.setXmlType(new javax.xml.namespace.QName("urn:oasis:names:tc:wsrp:v1:types", "PortletDescription"));
487 elemField.setMinOccurs(0);
488 typeDesc.addFieldDesc(elemField);
489 elemField = new org.apache.axis.description.ElementDesc();
490 elemField.setFieldName("userCategoryDescriptions");
491 elemField.setXmlName(new javax.xml.namespace.QName("urn:oasis:names:tc:wsrp:v1:types", "userCategoryDescriptions"));
492 elemField.setXmlType(new javax.xml.namespace.QName("urn:oasis:names:tc:wsrp:v1:types", "ItemDescription"));
493 elemField.setMinOccurs(0);
494 typeDesc.addFieldDesc(elemField);
495 elemField = new org.apache.axis.description.ElementDesc();
496 elemField.setFieldName("customUserProfileItemDescriptions");
497 elemField.setXmlName(new javax.xml.namespace.QName("urn:oasis:names:tc:wsrp:v1:types", "customUserProfileItemDescriptions"));
498 elemField.setXmlType(new javax.xml.namespace.QName("urn:oasis:names:tc:wsrp:v1:types", "ItemDescription"));
499 elemField.setMinOccurs(0);
500 typeDesc.addFieldDesc(elemField);
501 elemField = new org.apache.axis.description.ElementDesc();
502 elemField.setFieldName("customWindowStateDescriptions");
503 elemField.setXmlName(new javax.xml.namespace.QName("urn:oasis:names:tc:wsrp:v1:types", "customWindowStateDescriptions"));
504 elemField.setXmlType(new javax.xml.namespace.QName("urn:oasis:names:tc:wsrp:v1:types", "ItemDescription"));
505 elemField.setMinOccurs(0);
506 typeDesc.addFieldDesc(elemField);
507 elemField = new org.apache.axis.description.ElementDesc();
508 elemField.setFieldName("customModeDescriptions");
509 elemField.setXmlName(new javax.xml.namespace.QName("urn:oasis:names:tc:wsrp:v1:types", "customModeDescriptions"));
510 elemField.setXmlType(new javax.xml.namespace.QName("urn:oasis:names:tc:wsrp:v1:types", "ItemDescription"));
511 elemField.setMinOccurs(0);
512 typeDesc.addFieldDesc(elemField);
513 elemField = new org.apache.axis.description.ElementDesc();
514 elemField.setFieldName("requiresInitCookie");
515 elemField.setXmlName(new javax.xml.namespace.QName("urn:oasis:names:tc:wsrp:v1:types", "requiresInitCookie"));
516 elemField.setXmlType(new javax.xml.namespace.QName("urn:oasis:names:tc:wsrp:v1:types", "CookieProtocol"));
517 elemField.setMinOccurs(0);
518 typeDesc.addFieldDesc(elemField);
519 elemField = new org.apache.axis.description.ElementDesc();
520 elemField.setFieldName("registrationPropertyDescription");
521 elemField.setXmlName(new javax.xml.namespace.QName("urn:oasis:names:tc:wsrp:v1:types", "registrationPropertyDescription"));
522 elemField.setXmlType(new javax.xml.namespace.QName("urn:oasis:names:tc:wsrp:v1:types", "ModelDescription"));
523 elemField.setMinOccurs(0);
524 typeDesc.addFieldDesc(elemField);
525 elemField = new org.apache.axis.description.ElementDesc();
526 elemField.setFieldName("locales");
527 elemField.setXmlName(new javax.xml.namespace.QName("urn:oasis:names:tc:wsrp:v1:types", "locales"));
528 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
529 elemField.setMinOccurs(0);
530 typeDesc.addFieldDesc(elemField);
531 elemField = new org.apache.axis.description.ElementDesc();
532 elemField.setFieldName("resourceList");
533 elemField.setXmlName(new javax.xml.namespace.QName("urn:oasis:names:tc:wsrp:v1:types", "resourceList"));
534 elemField.setXmlType(new javax.xml.namespace.QName("urn:oasis:names:tc:wsrp:v1:types", "ResourceList"));
535 elemField.setMinOccurs(0);
536 typeDesc.addFieldDesc(elemField);
537 elemField = new org.apache.axis.description.ElementDesc();
538 elemField.setFieldName("extensions");
539 elemField.setXmlName(new javax.xml.namespace.QName("urn:oasis:names:tc:wsrp:v1:types", "extensions"));
540 elemField.setXmlType(new javax.xml.namespace.QName("urn:oasis:names:tc:wsrp:v1:types", "Extension"));
541 elemField.setMinOccurs(0);
542 typeDesc.addFieldDesc(elemField);
543 }
544
545
548 public static org.apache.axis.description.TypeDesc getTypeDesc() {
549 return typeDesc;
550 }
551
552
555 public static org.apache.axis.encoding.Serializer getSerializer(
556 java.lang.String mechType,
557 java.lang.Class _javaType,
558 javax.xml.namespace.QName _xmlType) {
559 return
560 new org.apache.axis.encoding.ser.BeanSerializer(
561 _javaType, _xmlType, typeDesc);
562 }
563
564
567 public static org.apache.axis.encoding.Deserializer getDeserializer(
568 java.lang.String mechType,
569 java.lang.Class _javaType,
570 javax.xml.namespace.QName _xmlType) {
571 return
572 new org.apache.axis.encoding.ser.BeanDeserializer(
573 _javaType, _xmlType, typeDesc);
574 }
575
576 }
577