1 7 8 package org.alfresco.repo.webservice.types; 9 10 public class CMLRemoveAssociation implements java.io.Serializable { 11 private org.alfresco.repo.webservice.types.Predicate from; 12 13 private java.lang.String from_id; 14 15 private org.alfresco.repo.webservice.types.Predicate to; 16 17 private java.lang.String to_id; 18 19 private java.lang.String association; 20 21 public CMLRemoveAssociation() { 22 } 23 24 public CMLRemoveAssociation( 25 org.alfresco.repo.webservice.types.Predicate from, 26 java.lang.String from_id, 27 org.alfresco.repo.webservice.types.Predicate to, 28 java.lang.String to_id, 29 java.lang.String association) { 30 this.from = from; 31 this.from_id = from_id; 32 this.to = to; 33 this.to_id = to_id; 34 this.association = association; 35 } 36 37 38 43 public org.alfresco.repo.webservice.types.Predicate getFrom() { 44 return from; 45 } 46 47 48 53 public void setFrom(org.alfresco.repo.webservice.types.Predicate from) { 54 this.from = from; 55 } 56 57 58 63 public java.lang.String getFrom_id() { 64 return from_id; 65 } 66 67 68 73 public void setFrom_id(java.lang.String from_id) { 74 this.from_id = from_id; 75 } 76 77 78 83 public org.alfresco.repo.webservice.types.Predicate getTo() { 84 return to; 85 } 86 87 88 93 public void setTo(org.alfresco.repo.webservice.types.Predicate to) { 94 this.to = to; 95 } 96 97 98 103 public java.lang.String getTo_id() { 104 return to_id; 105 } 106 107 108 113 public void setTo_id(java.lang.String to_id) { 114 this.to_id = to_id; 115 } 116 117 118 123 public java.lang.String getAssociation() { 124 return association; 125 } 126 127 128 133 public void setAssociation(java.lang.String association) { 134 this.association = association; 135 } 136 137 private java.lang.Object __equalsCalc = null; 138 public synchronized boolean equals(java.lang.Object obj) { 139 if (!(obj instanceof CMLRemoveAssociation)) return false; 140 CMLRemoveAssociation other = (CMLRemoveAssociation) obj; 141 if (obj == null) return false; 142 if (this == obj) return true; 143 if (__equalsCalc != null) { 144 return (__equalsCalc == obj); 145 } 146 __equalsCalc = obj; 147 boolean _equals; 148 _equals = true && 149 ((this.from==null && other.getFrom()==null) || 150 (this.from!=null && 151 this.from.equals(other.getFrom()))) && 152 ((this.from_id==null && other.getFrom_id()==null) || 153 (this.from_id!=null && 154 this.from_id.equals(other.getFrom_id()))) && 155 ((this.to==null && other.getTo()==null) || 156 (this.to!=null && 157 this.to.equals(other.getTo()))) && 158 ((this.to_id==null && other.getTo_id()==null) || 159 (this.to_id!=null && 160 this.to_id.equals(other.getTo_id()))) && 161 ((this.association==null && other.getAssociation()==null) || 162 (this.association!=null && 163 this.association.equals(other.getAssociation()))); 164 __equalsCalc = null; 165 return _equals; 166 } 167 168 private boolean __hashCodeCalc = false; 169 public synchronized int hashCode() { 170 if (__hashCodeCalc) { 171 return 0; 172 } 173 __hashCodeCalc = true; 174 int _hashCode = 1; 175 if (getFrom() != null) { 176 _hashCode += getFrom().hashCode(); 177 } 178 if (getFrom_id() != null) { 179 _hashCode += getFrom_id().hashCode(); 180 } 181 if (getTo() != null) { 182 _hashCode += getTo().hashCode(); 183 } 184 if (getTo_id() != null) { 185 _hashCode += getTo_id().hashCode(); 186 } 187 if (getAssociation() != null) { 188 _hashCode += getAssociation().hashCode(); 189 } 190 __hashCodeCalc = false; 191 return _hashCode; 192 } 193 194 private static org.apache.axis.description.TypeDesc typeDesc = 196 new org.apache.axis.description.TypeDesc(CMLRemoveAssociation.class, true); 197 198 static { 199 typeDesc.setXmlType(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/cml/1.0", ">CML>removeAssociation")); 200 org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc(); 201 elemField.setFieldName("from"); 202 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/cml/1.0", "from")); 203 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "Predicate")); 204 elemField.setMinOccurs(0); 205 elemField.setNillable(false); 206 typeDesc.addFieldDesc(elemField); 207 elemField = new org.apache.axis.description.ElementDesc(); 208 elemField.setFieldName("from_id"); 209 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/cml/1.0", "from_id")); 210 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.w3.org/2001/XMLSchema", "string")); 211 elemField.setMinOccurs(0); 212 elemField.setNillable(false); 213 typeDesc.addFieldDesc(elemField); 214 elemField = new org.apache.axis.description.ElementDesc(); 215 elemField.setFieldName("to"); 216 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/cml/1.0", "to")); 217 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "Predicate")); 218 elemField.setMinOccurs(0); 219 elemField.setNillable(false); 220 typeDesc.addFieldDesc(elemField); 221 elemField = new org.apache.axis.description.ElementDesc(); 222 elemField.setFieldName("to_id"); 223 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/cml/1.0", "to_id")); 224 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.w3.org/2001/XMLSchema", "string")); 225 elemField.setMinOccurs(0); 226 elemField.setNillable(false); 227 typeDesc.addFieldDesc(elemField); 228 elemField = new org.apache.axis.description.ElementDesc(); 229 elemField.setFieldName("association"); 230 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/cml/1.0", "association")); 231 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.w3.org/2001/XMLSchema", "string")); 232 elemField.setNillable(false); 233 typeDesc.addFieldDesc(elemField); 234 } 235 236 239 public static org.apache.axis.description.TypeDesc getTypeDesc() { 240 return typeDesc; 241 } 242 243 246 public static org.apache.axis.encoding.Serializer getSerializer( 247 java.lang.String mechType, 248 java.lang.Class _javaType, 249 javax.xml.namespace.QName _xmlType) { 250 return 251 new org.apache.axis.encoding.ser.BeanSerializer( 252 _javaType, _xmlType, typeDesc); 253 } 254 255 258 public static org.apache.axis.encoding.Deserializer getDeserializer( 259 java.lang.String mechType, 260 java.lang.Class _javaType, 261 javax.xml.namespace.QName _xmlType) { 262 return 263 new org.apache.axis.encoding.ser.BeanDeserializer( 264 _javaType, _xmlType, typeDesc); 265 } 266 267 } 268 | Popular Tags |