1 7 8 package org.alfresco.example.webservice.types; 9 10 public class CMLRemoveAssociation implements java.io.Serializable { 11 private org.alfresco.example.webservice.types.Predicate from; 12 private java.lang.String from_id; 13 private org.alfresco.example.webservice.types.Predicate to; 14 private java.lang.String to_id; 15 private java.lang.String association; 16 17 public CMLRemoveAssociation() { 18 } 19 20 public CMLRemoveAssociation( 21 org.alfresco.example.webservice.types.Predicate from, 22 java.lang.String from_id, 23 org.alfresco.example.webservice.types.Predicate to, 24 java.lang.String to_id, 25 java.lang.String association) { 26 this.from = from; 27 this.from_id = from_id; 28 this.to = to; 29 this.to_id = to_id; 30 this.association = association; 31 } 32 33 34 39 public org.alfresco.example.webservice.types.Predicate getFrom() { 40 return from; 41 } 42 43 44 49 public void setFrom(org.alfresco.example.webservice.types.Predicate from) { 50 this.from = from; 51 } 52 53 54 59 public java.lang.String getFrom_id() { 60 return from_id; 61 } 62 63 64 69 public void setFrom_id(java.lang.String from_id) { 70 this.from_id = from_id; 71 } 72 73 74 79 public org.alfresco.example.webservice.types.Predicate getTo() { 80 return to; 81 } 82 83 84 89 public void setTo(org.alfresco.example.webservice.types.Predicate to) { 90 this.to = to; 91 } 92 93 94 99 public java.lang.String getTo_id() { 100 return to_id; 101 } 102 103 104 109 public void setTo_id(java.lang.String to_id) { 110 this.to_id = to_id; 111 } 112 113 114 119 public java.lang.String getAssociation() { 120 return association; 121 } 122 123 124 129 public void setAssociation(java.lang.String association) { 130 this.association = association; 131 } 132 133 private java.lang.Object __equalsCalc = null; 134 public synchronized boolean equals(java.lang.Object obj) { 135 if (!(obj instanceof CMLRemoveAssociation)) return false; 136 CMLRemoveAssociation other = (CMLRemoveAssociation) obj; 137 if (obj == null) return false; 138 if (this == obj) return true; 139 if (__equalsCalc != null) { 140 return (__equalsCalc == obj); 141 } 142 __equalsCalc = obj; 143 boolean _equals; 144 _equals = true && 145 ((this.from==null && other.getFrom()==null) || 146 (this.from!=null && 147 this.from.equals(other.getFrom()))) && 148 ((this.from_id==null && other.getFrom_id()==null) || 149 (this.from_id!=null && 150 this.from_id.equals(other.getFrom_id()))) && 151 ((this.to==null && other.getTo()==null) || 152 (this.to!=null && 153 this.to.equals(other.getTo()))) && 154 ((this.to_id==null && other.getTo_id()==null) || 155 (this.to_id!=null && 156 this.to_id.equals(other.getTo_id()))) && 157 ((this.association==null && other.getAssociation()==null) || 158 (this.association!=null && 159 this.association.equals(other.getAssociation()))); 160 __equalsCalc = null; 161 return _equals; 162 } 163 164 private boolean __hashCodeCalc = false; 165 public synchronized int hashCode() { 166 if (__hashCodeCalc) { 167 return 0; 168 } 169 __hashCodeCalc = true; 170 int _hashCode = 1; 171 if (getFrom() != null) { 172 _hashCode += getFrom().hashCode(); 173 } 174 if (getFrom_id() != null) { 175 _hashCode += getFrom_id().hashCode(); 176 } 177 if (getTo() != null) { 178 _hashCode += getTo().hashCode(); 179 } 180 if (getTo_id() != null) { 181 _hashCode += getTo_id().hashCode(); 182 } 183 if (getAssociation() != null) { 184 _hashCode += getAssociation().hashCode(); 185 } 186 __hashCodeCalc = false; 187 return _hashCode; 188 } 189 190 private static org.apache.axis.description.TypeDesc typeDesc = 192 new org.apache.axis.description.TypeDesc(CMLRemoveAssociation.class, true); 193 194 static { 195 typeDesc.setXmlType(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/cml/1.0", ">CML>removeAssociation")); 196 org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc(); 197 elemField.setFieldName("from"); 198 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/cml/1.0", "from")); 199 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "Predicate")); 200 elemField.setMinOccurs(0); 201 elemField.setNillable(false); 202 typeDesc.addFieldDesc(elemField); 203 elemField = new org.apache.axis.description.ElementDesc(); 204 elemField.setFieldName("from_id"); 205 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/cml/1.0", "from_id")); 206 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.w3.org/2001/XMLSchema", "string")); 207 elemField.setMinOccurs(0); 208 elemField.setNillable(false); 209 typeDesc.addFieldDesc(elemField); 210 elemField = new org.apache.axis.description.ElementDesc(); 211 elemField.setFieldName("to"); 212 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/cml/1.0", "to")); 213 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "Predicate")); 214 elemField.setMinOccurs(0); 215 elemField.setNillable(false); 216 typeDesc.addFieldDesc(elemField); 217 elemField = new org.apache.axis.description.ElementDesc(); 218 elemField.setFieldName("to_id"); 219 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/cml/1.0", "to_id")); 220 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.w3.org/2001/XMLSchema", "string")); 221 elemField.setMinOccurs(0); 222 elemField.setNillable(false); 223 typeDesc.addFieldDesc(elemField); 224 elemField = new org.apache.axis.description.ElementDesc(); 225 elemField.setFieldName("association"); 226 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/cml/1.0", "association")); 227 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "Name")); 228 elemField.setNillable(false); 229 typeDesc.addFieldDesc(elemField); 230 } 231 232 235 public static org.apache.axis.description.TypeDesc getTypeDesc() { 236 return typeDesc; 237 } 238 239 242 public static org.apache.axis.encoding.Serializer getSerializer( 243 java.lang.String mechType, 244 java.lang.Class _javaType, 245 javax.xml.namespace.QName _xmlType) { 246 return 247 new org.apache.axis.encoding.ser.BeanSerializer( 248 _javaType, _xmlType, typeDesc); 249 } 250 251 254 public static org.apache.axis.encoding.Deserializer getDeserializer( 255 java.lang.String mechType, 256 java.lang.Class _javaType, 257 javax.xml.namespace.QName _xmlType) { 258 return 259 new org.apache.axis.encoding.ser.BeanDeserializer( 260 _javaType, _xmlType, typeDesc); 261 } 262 263 } 264 | Popular Tags |