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