1 7 8 package org.alfresco.example.webservice.authoring; 9 10 public class CheckoutResult implements java.io.Serializable { 11 private org.alfresco.example.webservice.types.Reference[] originals; 12 private org.alfresco.example.webservice.types.Reference[] workingCopies; 13 14 public CheckoutResult() { 15 } 16 17 public CheckoutResult( 18 org.alfresco.example.webservice.types.Reference[] originals, 19 org.alfresco.example.webservice.types.Reference[] workingCopies) { 20 this.originals = originals; 21 this.workingCopies = workingCopies; 22 } 23 24 25 30 public org.alfresco.example.webservice.types.Reference[] getOriginals() { 31 return originals; 32 } 33 34 35 40 public void setOriginals(org.alfresco.example.webservice.types.Reference[] originals) { 41 this.originals = originals; 42 } 43 44 public org.alfresco.example.webservice.types.Reference getOriginals(int i) { 45 return this.originals[i]; 46 } 47 48 public void setOriginals(int i, org.alfresco.example.webservice.types.Reference _value) { 49 this.originals[i] = _value; 50 } 51 52 53 58 public org.alfresco.example.webservice.types.Reference[] getWorkingCopies() { 59 return workingCopies; 60 } 61 62 63 68 public void setWorkingCopies(org.alfresco.example.webservice.types.Reference[] workingCopies) { 69 this.workingCopies = workingCopies; 70 } 71 72 public org.alfresco.example.webservice.types.Reference getWorkingCopies(int i) { 73 return this.workingCopies[i]; 74 } 75 76 public void setWorkingCopies(int i, org.alfresco.example.webservice.types.Reference _value) { 77 this.workingCopies[i] = _value; 78 } 79 80 private java.lang.Object __equalsCalc = null; 81 public synchronized boolean equals(java.lang.Object obj) { 82 if (!(obj instanceof CheckoutResult)) return false; 83 CheckoutResult other = (CheckoutResult) 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.originals==null && other.getOriginals()==null) || 93 (this.originals!=null && 94 java.util.Arrays.equals(this.originals, other.getOriginals()))) && 95 ((this.workingCopies==null && other.getWorkingCopies()==null) || 96 (this.workingCopies!=null && 97 java.util.Arrays.equals(this.workingCopies, other.getWorkingCopies()))); 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 (getOriginals() != null) { 110 for (int i=0; 111 i<java.lang.reflect.Array.getLength(getOriginals()); 112 i++) { 113 java.lang.Object obj = java.lang.reflect.Array.get(getOriginals(), i); 114 if (obj != null && 115 !obj.getClass().isArray()) { 116 _hashCode += obj.hashCode(); 117 } 118 } 119 } 120 if (getWorkingCopies() != null) { 121 for (int i=0; 122 i<java.lang.reflect.Array.getLength(getWorkingCopies()); 123 i++) { 124 java.lang.Object obj = java.lang.reflect.Array.get(getWorkingCopies(), 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(CheckoutResult.class, true); 138 139 static { 140 typeDesc.setXmlType(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/service/authoring/1.0", "CheckoutResult")); 141 org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc(); 142 elemField.setFieldName("originals"); 143 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/service/authoring/1.0", "originals")); 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("workingCopies"); 151 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/service/authoring/1.0", "workingCopies")); 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 |