1 7 8 package org.alfresco.example.webservice.authoring; 9 10 public class CancelCheckoutResult implements java.io.Serializable { 11 private org.alfresco.example.webservice.types.Reference[] workingCopies; 12 private org.alfresco.example.webservice.types.Reference[] originals; 13 14 public CancelCheckoutResult() { 15 } 16 17 public CancelCheckoutResult( 18 org.alfresco.example.webservice.types.Reference[] workingCopies, 19 org.alfresco.example.webservice.types.Reference[] originals) { 20 this.workingCopies = workingCopies; 21 this.originals = originals; 22 } 23 24 25 30 public org.alfresco.example.webservice.types.Reference[] getWorkingCopies() { 31 return workingCopies; 32 } 33 34 35 40 public void setWorkingCopies(org.alfresco.example.webservice.types.Reference[] workingCopies) { 41 this.workingCopies = workingCopies; 42 } 43 44 public org.alfresco.example.webservice.types.Reference getWorkingCopies(int i) { 45 return this.workingCopies[i]; 46 } 47 48 public void setWorkingCopies(int i, org.alfresco.example.webservice.types.Reference _value) { 49 this.workingCopies[i] = _value; 50 } 51 52 53 58 public org.alfresco.example.webservice.types.Reference[] getOriginals() { 59 return originals; 60 } 61 62 63 68 public void setOriginals(org.alfresco.example.webservice.types.Reference[] originals) { 69 this.originals = originals; 70 } 71 72 public org.alfresco.example.webservice.types.Reference getOriginals(int i) { 73 return this.originals[i]; 74 } 75 76 public void setOriginals(int i, org.alfresco.example.webservice.types.Reference _value) { 77 this.originals[i] = _value; 78 } 79 80 private java.lang.Object __equalsCalc = null; 81 public synchronized boolean equals(java.lang.Object obj) { 82 if (!(obj instanceof CancelCheckoutResult)) return false; 83 CancelCheckoutResult other = (CancelCheckoutResult) obj; 84 if (obj == null) return false; 85 if (this == obj) return true; 86 if (__equalsCalc != null) { 87 return (__equalsCalc == obj); 88 } 89 __equalsCalc = obj; 90 boolean _equals; 91 _equals = true && 92 ((this.workingCopies==null && other.getWorkingCopies()==null) || 93 (this.workingCopies!=null && 94 java.util.Arrays.equals(this.workingCopies, other.getWorkingCopies()))) && 95 ((this.originals==null && other.getOriginals()==null) || 96 (this.originals!=null && 97 java.util.Arrays.equals(this.originals, other.getOriginals()))); 98 __equalsCalc = null; 99 return _equals; 100 } 101 102 private boolean __hashCodeCalc = false; 103 public synchronized int hashCode() { 104 if (__hashCodeCalc) { 105 return 0; 106 } 107 __hashCodeCalc = true; 108 int _hashCode = 1; 109 if (getWorkingCopies() != null) { 110 for (int i=0; 111 i<java.lang.reflect.Array.getLength(getWorkingCopies()); 112 i++) { 113 java.lang.Object obj = java.lang.reflect.Array.get(getWorkingCopies(), i); 114 if (obj != null && 115 !obj.getClass().isArray()) { 116 _hashCode += obj.hashCode(); 117 } 118 } 119 } 120 if (getOriginals() != null) { 121 for (int i=0; 122 i<java.lang.reflect.Array.getLength(getOriginals()); 123 i++) { 124 java.lang.Object obj = java.lang.reflect.Array.get(getOriginals(), i); 125 if (obj != null && 126 !obj.getClass().isArray()) { 127 _hashCode += obj.hashCode(); 128 } 129 } 130 } 131 __hashCodeCalc = false; 132 return _hashCode; 133 } 134 135 private static org.apache.axis.description.TypeDesc typeDesc = 137 new org.apache.axis.description.TypeDesc(CancelCheckoutResult.class, true); 138 139 static { 140 typeDesc.setXmlType(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/service/authoring/1.0", "CancelCheckoutResult")); 141 org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc(); 142 elemField.setFieldName("workingCopies"); 143 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/service/authoring/1.0", "workingCopies")); 144 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "Reference")); 145 elemField.setMinOccurs(0); 146 elemField.setNillable(false); 147 elemField.setMaxOccursUnbounded(true); 148 typeDesc.addFieldDesc(elemField); 149 elemField = new org.apache.axis.description.ElementDesc(); 150 elemField.setFieldName("originals"); 151 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/service/authoring/1.0", "originals")); 152 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "Reference")); 153 elemField.setMinOccurs(0); 154 elemField.setNillable(false); 155 elemField.setMaxOccursUnbounded(true); 156 typeDesc.addFieldDesc(elemField); 157 } 158 159 162 public static org.apache.axis.description.TypeDesc getTypeDesc() { 163 return typeDesc; 164 } 165 166 169 public static org.apache.axis.encoding.Serializer getSerializer( 170 java.lang.String mechType, 171 java.lang.Class _javaType, 172 javax.xml.namespace.QName _xmlType) { 173 return 174 new org.apache.axis.encoding.ser.BeanSerializer( 175 _javaType, _xmlType, typeDesc); 176 } 177 178 181 public static org.apache.axis.encoding.Deserializer getDeserializer( 182 java.lang.String mechType, 183 java.lang.Class _javaType, 184 javax.xml.namespace.QName _xmlType) { 185 return 186 new org.apache.axis.encoding.ser.BeanDeserializer( 187 _javaType, _xmlType, typeDesc); 188 } 189 190 } 191 | Popular Tags |