1 7 8 package org.alfresco.repo.webservice.types; 9 10 public class CML implements java.io.Serializable { 11 private org.alfresco.repo.webservice.types.CMLCreate[] create; 12 13 private org.alfresco.repo.webservice.types.CMLAddAspect[] addAspect; 14 15 private org.alfresco.repo.webservice.types.CMLRemoveAspect[] removeAspect; 16 17 private org.alfresco.repo.webservice.types.CMLUpdate[] update; 18 19 private org.alfresco.repo.webservice.types.CMLDelete[] delete; 20 21 private org.alfresco.repo.webservice.types.CMLMove[] move; 22 23 private org.alfresco.repo.webservice.types.CMLCopy[] copy; 24 25 private org.alfresco.repo.webservice.types.CMLAddChild[] addChild; 26 27 private org.alfresco.repo.webservice.types.CMLRemoveChild[] removeChild; 28 29 private org.alfresco.repo.webservice.types.CMLCreateAssociation[] createAssociation; 30 31 private org.alfresco.repo.webservice.types.CMLRemoveAssociation[] removeAssociation; 32 33 public CML() { 34 } 35 36 public CML( 37 org.alfresco.repo.webservice.types.CMLCreate[] create, 38 org.alfresco.repo.webservice.types.CMLAddAspect[] addAspect, 39 org.alfresco.repo.webservice.types.CMLRemoveAspect[] removeAspect, 40 org.alfresco.repo.webservice.types.CMLUpdate[] update, 41 org.alfresco.repo.webservice.types.CMLDelete[] delete, 42 org.alfresco.repo.webservice.types.CMLMove[] move, 43 org.alfresco.repo.webservice.types.CMLCopy[] copy, 44 org.alfresco.repo.webservice.types.CMLAddChild[] addChild, 45 org.alfresco.repo.webservice.types.CMLRemoveChild[] removeChild, 46 org.alfresco.repo.webservice.types.CMLCreateAssociation[] createAssociation, 47 org.alfresco.repo.webservice.types.CMLRemoveAssociation[] removeAssociation) { 48 this.create = create; 49 this.addAspect = addAspect; 50 this.removeAspect = removeAspect; 51 this.update = update; 52 this.delete = delete; 53 this.move = move; 54 this.copy = copy; 55 this.addChild = addChild; 56 this.removeChild = removeChild; 57 this.createAssociation = createAssociation; 58 this.removeAssociation = removeAssociation; 59 } 60 61 62 67 public org.alfresco.repo.webservice.types.CMLCreate[] getCreate() { 68 return create; 69 } 70 71 72 77 public void setCreate(org.alfresco.repo.webservice.types.CMLCreate[] create) { 78 this.create = create; 79 } 80 81 public org.alfresco.repo.webservice.types.CMLCreate getCreate(int i) { 82 return this.create[i]; 83 } 84 85 public void setCreate(int i, org.alfresco.repo.webservice.types.CMLCreate _value) { 86 this.create[i] = _value; 87 } 88 89 90 95 public org.alfresco.repo.webservice.types.CMLAddAspect[] getAddAspect() { 96 return addAspect; 97 } 98 99 100 105 public void setAddAspect(org.alfresco.repo.webservice.types.CMLAddAspect[] addAspect) { 106 this.addAspect = addAspect; 107 } 108 109 public org.alfresco.repo.webservice.types.CMLAddAspect getAddAspect(int i) { 110 return this.addAspect[i]; 111 } 112 113 public void setAddAspect(int i, org.alfresco.repo.webservice.types.CMLAddAspect _value) { 114 this.addAspect[i] = _value; 115 } 116 117 118 123 public org.alfresco.repo.webservice.types.CMLRemoveAspect[] getRemoveAspect() { 124 return removeAspect; 125 } 126 127 128 133 public void setRemoveAspect(org.alfresco.repo.webservice.types.CMLRemoveAspect[] removeAspect) { 134 this.removeAspect = removeAspect; 135 } 136 137 public org.alfresco.repo.webservice.types.CMLRemoveAspect getRemoveAspect(int i) { 138 return this.removeAspect[i]; 139 } 140 141 public void setRemoveAspect(int i, org.alfresco.repo.webservice.types.CMLRemoveAspect _value) { 142 this.removeAspect[i] = _value; 143 } 144 145 146 151 public org.alfresco.repo.webservice.types.CMLUpdate[] getUpdate() { 152 return update; 153 } 154 155 156 161 public void setUpdate(org.alfresco.repo.webservice.types.CMLUpdate[] update) { 162 this.update = update; 163 } 164 165 public org.alfresco.repo.webservice.types.CMLUpdate getUpdate(int i) { 166 return this.update[i]; 167 } 168 169 public void setUpdate(int i, org.alfresco.repo.webservice.types.CMLUpdate _value) { 170 this.update[i] = _value; 171 } 172 173 174 179 public org.alfresco.repo.webservice.types.CMLDelete[] getDelete() { 180 return delete; 181 } 182 183 184 189 public void setDelete(org.alfresco.repo.webservice.types.CMLDelete[] delete) { 190 this.delete = delete; 191 } 192 193 public org.alfresco.repo.webservice.types.CMLDelete getDelete(int i) { 194 return this.delete[i]; 195 } 196 197 public void setDelete(int i, org.alfresco.repo.webservice.types.CMLDelete _value) { 198 this.delete[i] = _value; 199 } 200 201 202 207 public org.alfresco.repo.webservice.types.CMLMove[] getMove() { 208 return move; 209 } 210 211 212 217 public void setMove(org.alfresco.repo.webservice.types.CMLMove[] move) { 218 this.move = move; 219 } 220 221 public org.alfresco.repo.webservice.types.CMLMove getMove(int i) { 222 return this.move[i]; 223 } 224 225 public void setMove(int i, org.alfresco.repo.webservice.types.CMLMove _value) { 226 this.move[i] = _value; 227 } 228 229 230 235 public org.alfresco.repo.webservice.types.CMLCopy[] getCopy() { 236 return copy; 237 } 238 239 240 245 public void setCopy(org.alfresco.repo.webservice.types.CMLCopy[] copy) { 246 this.copy = copy; 247 } 248 249 public org.alfresco.repo.webservice.types.CMLCopy getCopy(int i) { 250 return this.copy[i]; 251 } 252 253 public void setCopy(int i, org.alfresco.repo.webservice.types.CMLCopy _value) { 254 this.copy[i] = _value; 255 } 256 257 258 263 public org.alfresco.repo.webservice.types.CMLAddChild[] getAddChild() { 264 return addChild; 265 } 266 267 268 273 public void setAddChild(org.alfresco.repo.webservice.types.CMLAddChild[] addChild) { 274 this.addChild = addChild; 275 } 276 277 public org.alfresco.repo.webservice.types.CMLAddChild getAddChild(int i) { 278 return this.addChild[i]; 279 } 280 281 public void setAddChild(int i, org.alfresco.repo.webservice.types.CMLAddChild _value) { 282 this.addChild[i] = _value; 283 } 284 285 286 291 public org.alfresco.repo.webservice.types.CMLRemoveChild[] getRemoveChild() { 292 return removeChild; 293 } 294 295 296 301 public void setRemoveChild(org.alfresco.repo.webservice.types.CMLRemoveChild[] removeChild) { 302 this.removeChild = removeChild; 303 } 304 305 public org.alfresco.repo.webservice.types.CMLRemoveChild getRemoveChild(int i) { 306 return this.removeChild[i]; 307 } 308 309 public void setRemoveChild(int i, org.alfresco.repo.webservice.types.CMLRemoveChild _value) { 310 this.removeChild[i] = _value; 311 } 312 313 314 319 public org.alfresco.repo.webservice.types.CMLCreateAssociation[] getCreateAssociation() { 320 return createAssociation; 321 } 322 323 324 329 public void setCreateAssociation(org.alfresco.repo.webservice.types.CMLCreateAssociation[] createAssociation) { 330 this.createAssociation = createAssociation; 331 } 332 333 public org.alfresco.repo.webservice.types.CMLCreateAssociation getCreateAssociation(int i) { 334 return this.createAssociation[i]; 335 } 336 337 public void setCreateAssociation(int i, org.alfresco.repo.webservice.types.CMLCreateAssociation _value) { 338 this.createAssociation[i] = _value; 339 } 340 341 342 347 public org.alfresco.repo.webservice.types.CMLRemoveAssociation[] getRemoveAssociation() { 348 return removeAssociation; 349 } 350 351 352 357 public void setRemoveAssociation(org.alfresco.repo.webservice.types.CMLRemoveAssociation[] removeAssociation) { 358 this.removeAssociation = removeAssociation; 359 } 360 361 public org.alfresco.repo.webservice.types.CMLRemoveAssociation getRemoveAssociation(int i) { 362 return this.removeAssociation[i]; 363 } 364 365 public void setRemoveAssociation(int i, org.alfresco.repo.webservice.types.CMLRemoveAssociation _value) { 366 this.removeAssociation[i] = _value; 367 } 368 369 private java.lang.Object __equalsCalc = null; 370 public synchronized boolean equals(java.lang.Object obj) { 371 if (!(obj instanceof CML)) return false; 372 CML other = (CML) obj; 373 if (obj == null) return false; 374 if (this == obj) return true; 375 if (__equalsCalc != null) { 376 return (__equalsCalc == obj); 377 } 378 __equalsCalc = obj; 379 boolean _equals; 380 _equals = true && 381 ((this.create==null && other.getCreate()==null) || 382 (this.create!=null && 383 java.util.Arrays.equals(this.create, other.getCreate()))) && 384 ((this.addAspect==null && other.getAddAspect()==null) || 385 (this.addAspect!=null && 386 java.util.Arrays.equals(this.addAspect, other.getAddAspect()))) && 387 ((this.removeAspect==null && other.getRemoveAspect()==null) || 388 (this.removeAspect!=null && 389 java.util.Arrays.equals(this.removeAspect, other.getRemoveAspect()))) && 390 ((this.update==null && other.getUpdate()==null) || 391 (this.update!=null && 392 java.util.Arrays.equals(this.update, other.getUpdate()))) && 393 ((this.delete==null && other.getDelete()==null) || 394 (this.delete!=null && 395 java.util.Arrays.equals(this.delete, other.getDelete()))) && 396 ((this.move==null && other.getMove()==null) || 397 (this.move!=null && 398 java.util.Arrays.equals(this.move, other.getMove()))) && 399 ((this.copy==null && other.getCopy()==null) || 400 (this.copy!=null && 401 java.util.Arrays.equals(this.copy, other.getCopy()))) && 402 ((this.addChild==null && other.getAddChild()==null) || 403 (this.addChild!=null && 404 java.util.Arrays.equals(this.addChild, other.getAddChild()))) && 405 ((this.removeChild==null && other.getRemoveChild()==null) || 406 (this.removeChild!=null && 407 java.util.Arrays.equals(this.removeChild, other.getRemoveChild()))) && 408 ((this.createAssociation==null && other.getCreateAssociation()==null) || 409 (this.createAssociation!=null && 410 java.util.Arrays.equals(this.createAssociation, other.getCreateAssociation()))) && 411 ((this.removeAssociation==null && other.getRemoveAssociation()==null) || 412 (this.removeAssociation!=null && 413 java.util.Arrays.equals(this.removeAssociation, other.getRemoveAssociation()))); 414 __equalsCalc = null; 415 return _equals; 416 } 417 418 private boolean __hashCodeCalc = false; 419 public synchronized int hashCode() { 420 if (__hashCodeCalc) { 421 return 0; 422 } 423 __hashCodeCalc = true; 424 int _hashCode = 1; 425 if (getCreate() != null) { 426 for (int i=0; 427 i<java.lang.reflect.Array.getLength(getCreate()); 428 i++) { 429 java.lang.Object obj = java.lang.reflect.Array.get(getCreate(), i); 430 if (obj != null && 431 !obj.getClass().isArray()) { 432 _hashCode += obj.hashCode(); 433 } 434 } 435 } 436 if (getAddAspect() != null) { 437 for (int i=0; 438 i<java.lang.reflect.Array.getLength(getAddAspect()); 439 i++) { 440 java.lang.Object obj = java.lang.reflect.Array.get(getAddAspect(), i); 441 if (obj != null && 442 !obj.getClass().isArray()) { 443 _hashCode += obj.hashCode(); 444 } 445 } 446 } 447 if (getRemoveAspect() != null) { 448 for (int i=0; 449 i<java.lang.reflect.Array.getLength(getRemoveAspect()); 450 i++) { 451 java.lang.Object obj = java.lang.reflect.Array.get(getRemoveAspect(), i); 452 if (obj != null && 453 !obj.getClass().isArray()) { 454 _hashCode += obj.hashCode(); 455 } 456 } 457 } 458 if (getUpdate() != null) { 459 for (int i=0; 460 i<java.lang.reflect.Array.getLength(getUpdate()); 461 i++) { 462 java.lang.Object obj = java.lang.reflect.Array.get(getUpdate(), i); 463 if (obj != null && 464 !obj.getClass().isArray()) { 465 _hashCode += obj.hashCode(); 466 } 467 } 468 } 469 if (getDelete() != null) { 470 for (int i=0; 471 i<java.lang.reflect.Array.getLength(getDelete()); 472 i++) { 473 java.lang.Object obj = java.lang.reflect.Array.get(getDelete(), i); 474 if (obj != null && 475 !obj.getClass().isArray()) { 476 _hashCode += obj.hashCode(); 477 } 478 } 479 } 480 if (getMove() != null) { 481 for (int i=0; 482 i<java.lang.reflect.Array.getLength(getMove()); 483 i++) { 484 java.lang.Object obj = java.lang.reflect.Array.get(getMove(), i); 485 if (obj != null && 486 !obj.getClass().isArray()) { 487 _hashCode += obj.hashCode(); 488 } 489 } 490 } 491 if (getCopy() != null) { 492 for (int i=0; 493 i<java.lang.reflect.Array.getLength(getCopy()); 494 i++) { 495 java.lang.Object obj = java.lang.reflect.Array.get(getCopy(), i); 496 if (obj != null && 497 !obj.getClass().isArray()) { 498 _hashCode += obj.hashCode(); 499 } 500 } 501 } 502 if (getAddChild() != null) { 503 for (int i=0; 504 i<java.lang.reflect.Array.getLength(getAddChild()); 505 i++) { 506 java.lang.Object obj = java.lang.reflect.Array.get(getAddChild(), i); 507 if (obj != null && 508 !obj.getClass().isArray()) { 509 _hashCode += obj.hashCode(); 510 } 511 } 512 } 513 if (getRemoveChild() != null) { 514 for (int i=0; 515 i<java.lang.reflect.Array.getLength(getRemoveChild()); 516 i++) { 517 java.lang.Object obj = java.lang.reflect.Array.get(getRemoveChild(), i); 518 if (obj != null && 519 !obj.getClass().isArray()) { 520 _hashCode += obj.hashCode(); 521 } 522 } 523 } 524 if (getCreateAssociation() != null) { 525 for (int i=0; 526 i<java.lang.reflect.Array.getLength(getCreateAssociation()); 527 i++) { 528 java.lang.Object obj = java.lang.reflect.Array.get(getCreateAssociation(), i); 529 if (obj != null && 530 !obj.getClass().isArray()) { 531 _hashCode += obj.hashCode(); 532 } 533 } 534 } 535 if (getRemoveAssociation() != null) { 536 for (int i=0; 537 i<java.lang.reflect.Array.getLength(getRemoveAssociation()); 538 i++) { 539 java.lang.Object obj = java.lang.reflect.Array.get(getRemoveAssociation(), i); 540 if (obj != null && 541 !obj.getClass().isArray()) { 542 _hashCode += obj.hashCode(); 543 } 544 } 545 } 546 __hashCodeCalc = false; 547 return _hashCode; 548 } 549 550 private static org.apache.axis.description.TypeDesc typeDesc = 552 new org.apache.axis.description.TypeDesc(CML.class, true); 553 554 static { 555 typeDesc.setXmlType(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/cml/1.0", "CML")); 556 org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc(); 557 elemField.setFieldName("create"); 558 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/cml/1.0", "create")); 559 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/cml/1.0", ">CML>create")); 560 elemField.setMinOccurs(0); 561 elemField.setNillable(false); 562 elemField.setMaxOccursUnbounded(true); 563 typeDesc.addFieldDesc(elemField); 564 elemField = new org.apache.axis.description.ElementDesc(); 565 elemField.setFieldName("addAspect"); 566 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/cml/1.0", "addAspect")); 567 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/cml/1.0", ">CML>addAspect")); 568 elemField.setMinOccurs(0); 569 elemField.setNillable(false); 570 elemField.setMaxOccursUnbounded(true); 571 typeDesc.addFieldDesc(elemField); 572 elemField = new org.apache.axis.description.ElementDesc(); 573 elemField.setFieldName("removeAspect"); 574 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/cml/1.0", "removeAspect")); 575 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/cml/1.0", ">CML>removeAspect")); 576 elemField.setMinOccurs(0); 577 elemField.setNillable(false); 578 elemField.setMaxOccursUnbounded(true); 579 typeDesc.addFieldDesc(elemField); 580 elemField = new org.apache.axis.description.ElementDesc(); 581 elemField.setFieldName("update"); 582 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/cml/1.0", "update")); 583 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/cml/1.0", ">CML>update")); 584 elemField.setMinOccurs(0); 585 elemField.setNillable(false); 586 elemField.setMaxOccursUnbounded(true); 587 typeDesc.addFieldDesc(elemField); 588 elemField = new org.apache.axis.description.ElementDesc(); 589 elemField.setFieldName("delete"); 590 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/cml/1.0", "delete")); 591 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/cml/1.0", ">CML>delete")); 592 elemField.setMinOccurs(0); 593 elemField.setNillable(false); 594 elemField.setMaxOccursUnbounded(true); 595 typeDesc.addFieldDesc(elemField); 596 elemField = new org.apache.axis.description.ElementDesc(); 597 elemField.setFieldName("move"); 598 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/cml/1.0", "move")); 599 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/cml/1.0", ">CML>move")); 600 elemField.setMinOccurs(0); 601 elemField.setNillable(false); 602 elemField.setMaxOccursUnbounded(true); 603 typeDesc.addFieldDesc(elemField); 604 elemField = new org.apache.axis.description.ElementDesc(); 605 elemField.setFieldName("copy"); 606 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/cml/1.0", "copy")); 607 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/cml/1.0", ">CML>copy")); 608 elemField.setMinOccurs(0); 609 elemField.setNillable(false); 610 elemField.setMaxOccursUnbounded(true); 611 typeDesc.addFieldDesc(elemField); 612 elemField = new org.apache.axis.description.ElementDesc(); 613 elemField.setFieldName("addChild"); 614 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/cml/1.0", "addChild")); 615 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/cml/1.0", ">CML>addChild")); 616 elemField.setMinOccurs(0); 617 elemField.setNillable(false); 618 elemField.setMaxOccursUnbounded(true); 619 typeDesc.addFieldDesc(elemField); 620 elemField = new org.apache.axis.description.ElementDesc(); 621 elemField.setFieldName("removeChild"); 622 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/cml/1.0", "removeChild")); 623 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/cml/1.0", ">CML>removeChild")); 624 elemField.setMinOccurs(0); 625 elemField.setNillable(false); 626 elemField.setMaxOccursUnbounded(true); 627 typeDesc.addFieldDesc(elemField); 628 elemField = new org.apache.axis.description.ElementDesc(); 629 elemField.setFieldName("createAssociation"); 630 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/cml/1.0", "createAssociation")); 631 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/cml/1.0", ">CML>createAssociation")); 632 elemField.setMinOccurs(0); 633 elemField.setNillable(false); 634 elemField.setMaxOccursUnbounded(true); 635 typeDesc.addFieldDesc(elemField); 636 elemField = new org.apache.axis.description.ElementDesc(); 637 elemField.setFieldName("removeAssociation"); 638 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/cml/1.0", "removeAssociation")); 639 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/cml/1.0", ">CML>removeAssociation")); 640 elemField.setMinOccurs(0); 641 elemField.setNillable(false); 642 elemField.setMaxOccursUnbounded(true); 643 typeDesc.addFieldDesc(elemField); 644 } 645 646 649 public static org.apache.axis.description.TypeDesc getTypeDesc() { 650 return typeDesc; 651 } 652 653 656 public static org.apache.axis.encoding.Serializer getSerializer( 657 java.lang.String mechType, 658 java.lang.Class _javaType, 659 javax.xml.namespace.QName _xmlType) { 660 return 661 new org.apache.axis.encoding.ser.BeanSerializer( 662 _javaType, _xmlType, typeDesc); 663 } 664 665 668 public static org.apache.axis.encoding.Deserializer getDeserializer( 669 java.lang.String mechType, 670 java.lang.Class _javaType, 671 javax.xml.namespace.QName _xmlType) { 672 return 673 new org.apache.axis.encoding.ser.BeanDeserializer( 674 _javaType, _xmlType, typeDesc); 675 } 676 677 } 678 | Popular Tags |