1 7 8 package org.alfresco.example.webservice.types; 9 10 public class Reference implements java.io.Serializable { 11 private org.alfresco.example.webservice.types.Store store; 12 private java.lang.String uuid; 13 private java.lang.String path; 14 15 public Reference() { 16 } 17 18 public Reference( 19 org.alfresco.example.webservice.types.Store store, 20 java.lang.String uuid, 21 java.lang.String path) { 22 this.store = store; 23 this.uuid = uuid; 24 this.path = path; 25 } 26 27 28 33 public org.alfresco.example.webservice.types.Store getStore() { 34 return store; 35 } 36 37 38 43 public void setStore(org.alfresco.example.webservice.types.Store store) { 44 this.store = store; 45 } 46 47 48 53 public java.lang.String getUuid() { 54 return uuid; 55 } 56 57 58 63 public void setUuid(java.lang.String uuid) { 64 this.uuid = uuid; 65 } 66 67 68 73 public java.lang.String getPath() { 74 return path; 75 } 76 77 78 83 public void setPath(java.lang.String path) { 84 this.path = path; 85 } 86 87 private java.lang.Object __equalsCalc = null; 88 public synchronized boolean equals(java.lang.Object obj) { 89 if (!(obj instanceof Reference)) return false; 90 Reference other = (Reference) obj; 91 if (obj == null) return false; 92 if (this == obj) return true; 93 if (__equalsCalc != null) { 94 return (__equalsCalc == obj); 95 } 96 __equalsCalc = obj; 97 boolean _equals; 98 _equals = true && 99 ((this.store==null && other.getStore()==null) || 100 (this.store!=null && 101 this.store.equals(other.getStore()))) && 102 ((this.uuid==null && other.getUuid()==null) || 103 (this.uuid!=null && 104 this.uuid.equals(other.getUuid()))) && 105 ((this.path==null && other.getPath()==null) || 106 (this.path!=null && 107 this.path.equals(other.getPath()))); 108 __equalsCalc = null; 109 return _equals; 110 } 111 112 private boolean __hashCodeCalc = false; 113 public synchronized int hashCode() { 114 if (__hashCodeCalc) { 115 return 0; 116 } 117 __hashCodeCalc = true; 118 int _hashCode = 1; 119 if (getStore() != null) { 120 _hashCode += getStore().hashCode(); 121 } 122 if (getUuid() != null) { 123 _hashCode += getUuid().hashCode(); 124 } 125 if (getPath() != null) { 126 _hashCode += getPath().hashCode(); 127 } 128 __hashCodeCalc = false; 129 return _hashCode; 130 } 131 132 private static org.apache.axis.description.TypeDesc typeDesc = 134 new org.apache.axis.description.TypeDesc(Reference.class, true); 135 136 static { 137 typeDesc.setXmlType(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "Reference")); 138 org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc(); 139 elemField.setFieldName("store"); 140 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "store")); 141 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "Store")); 142 elemField.setNillable(false); 143 typeDesc.addFieldDesc(elemField); 144 elemField = new org.apache.axis.description.ElementDesc(); 145 elemField.setFieldName("uuid"); 146 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "uuid")); 147 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "UUID")); 148 elemField.setMinOccurs(0); 149 elemField.setNillable(false); 150 typeDesc.addFieldDesc(elemField); 151 elemField = new org.apache.axis.description.ElementDesc(); 152 elemField.setFieldName("path"); 153 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "path")); 154 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "Path")); 155 elemField.setMinOccurs(0); 156 elemField.setNillable(false); 157 typeDesc.addFieldDesc(elemField); 158 } 159 160 163 public static org.apache.axis.description.TypeDesc getTypeDesc() { 164 return typeDesc; 165 } 166 167 170 public static org.apache.axis.encoding.Serializer getSerializer( 171 java.lang.String mechType, 172 java.lang.Class _javaType, 173 javax.xml.namespace.QName _xmlType) { 174 return 175 new org.apache.axis.encoding.ser.BeanSerializer( 176 _javaType, _xmlType, typeDesc); 177 } 178 179 182 public static org.apache.axis.encoding.Deserializer getDeserializer( 183 java.lang.String mechType, 184 java.lang.Class _javaType, 185 javax.xml.namespace.QName _xmlType) { 186 return 187 new org.apache.axis.encoding.ser.BeanDeserializer( 188 _javaType, _xmlType, typeDesc); 189 } 190 191 } 192 | Popular Tags |