1 7 8 package org.alfresco.repo.webservice.types; 9 10 public class AssociationDefinition implements java.io.Serializable { 11 private java.lang.String name; 12 13 private java.lang.String title; 14 15 private java.lang.String description; 16 17 private boolean isChild; 18 19 private org.alfresco.repo.webservice.types.RoleDefinition sourceRole; 20 21 private org.alfresco.repo.webservice.types.RoleDefinition targetRole; 22 23 private java.lang.String targetClass; 24 25 public AssociationDefinition() { 26 } 27 28 public AssociationDefinition( 29 java.lang.String name, 30 java.lang.String title, 31 java.lang.String description, 32 boolean isChild, 33 org.alfresco.repo.webservice.types.RoleDefinition sourceRole, 34 org.alfresco.repo.webservice.types.RoleDefinition targetRole, 35 java.lang.String targetClass) { 36 this.name = name; 37 this.title = title; 38 this.description = description; 39 this.isChild = isChild; 40 this.sourceRole = sourceRole; 41 this.targetRole = targetRole; 42 this.targetClass = targetClass; 43 } 44 45 46 51 public java.lang.String getName() { 52 return name; 53 } 54 55 56 61 public void setName(java.lang.String name) { 62 this.name = name; 63 } 64 65 66 71 public java.lang.String getTitle() { 72 return title; 73 } 74 75 76 81 public void setTitle(java.lang.String title) { 82 this.title = title; 83 } 84 85 86 91 public java.lang.String getDescription() { 92 return description; 93 } 94 95 96 101 public void setDescription(java.lang.String description) { 102 this.description = description; 103 } 104 105 106 111 public boolean isIsChild() { 112 return isChild; 113 } 114 115 116 121 public void setIsChild(boolean isChild) { 122 this.isChild = isChild; 123 } 124 125 126 131 public org.alfresco.repo.webservice.types.RoleDefinition getSourceRole() { 132 return sourceRole; 133 } 134 135 136 141 public void setSourceRole(org.alfresco.repo.webservice.types.RoleDefinition sourceRole) { 142 this.sourceRole = sourceRole; 143 } 144 145 146 151 public org.alfresco.repo.webservice.types.RoleDefinition getTargetRole() { 152 return targetRole; 153 } 154 155 156 161 public void setTargetRole(org.alfresco.repo.webservice.types.RoleDefinition targetRole) { 162 this.targetRole = targetRole; 163 } 164 165 166 171 public java.lang.String getTargetClass() { 172 return targetClass; 173 } 174 175 176 181 public void setTargetClass(java.lang.String targetClass) { 182 this.targetClass = targetClass; 183 } 184 185 private java.lang.Object __equalsCalc = null; 186 public synchronized boolean equals(java.lang.Object obj) { 187 if (!(obj instanceof AssociationDefinition)) return false; 188 AssociationDefinition other = (AssociationDefinition) obj; 189 if (obj == null) return false; 190 if (this == obj) return true; 191 if (__equalsCalc != null) { 192 return (__equalsCalc == obj); 193 } 194 __equalsCalc = obj; 195 boolean _equals; 196 _equals = true && 197 ((this.name==null && other.getName()==null) || 198 (this.name!=null && 199 this.name.equals(other.getName()))) && 200 ((this.title==null && other.getTitle()==null) || 201 (this.title!=null && 202 this.title.equals(other.getTitle()))) && 203 ((this.description==null && other.getDescription()==null) || 204 (this.description!=null && 205 this.description.equals(other.getDescription()))) && 206 this.isChild == other.isIsChild() && 207 ((this.sourceRole==null && other.getSourceRole()==null) || 208 (this.sourceRole!=null && 209 this.sourceRole.equals(other.getSourceRole()))) && 210 ((this.targetRole==null && other.getTargetRole()==null) || 211 (this.targetRole!=null && 212 this.targetRole.equals(other.getTargetRole()))) && 213 ((this.targetClass==null && other.getTargetClass()==null) || 214 (this.targetClass!=null && 215 this.targetClass.equals(other.getTargetClass()))); 216 __equalsCalc = null; 217 return _equals; 218 } 219 220 private boolean __hashCodeCalc = false; 221 public synchronized int hashCode() { 222 if (__hashCodeCalc) { 223 return 0; 224 } 225 __hashCodeCalc = true; 226 int _hashCode = 1; 227 if (getName() != null) { 228 _hashCode += getName().hashCode(); 229 } 230 if (getTitle() != null) { 231 _hashCode += getTitle().hashCode(); 232 } 233 if (getDescription() != null) { 234 _hashCode += getDescription().hashCode(); 235 } 236 _hashCode += (isIsChild() ? Boolean.TRUE : Boolean.FALSE).hashCode(); 237 if (getSourceRole() != null) { 238 _hashCode += getSourceRole().hashCode(); 239 } 240 if (getTargetRole() != null) { 241 _hashCode += getTargetRole().hashCode(); 242 } 243 if (getTargetClass() != null) { 244 _hashCode += getTargetClass().hashCode(); 245 } 246 __hashCodeCalc = false; 247 return _hashCode; 248 } 249 250 private static org.apache.axis.description.TypeDesc typeDesc = 252 new org.apache.axis.description.TypeDesc(AssociationDefinition.class, true); 253 254 static { 255 typeDesc.setXmlType(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "AssociationDefinition")); 256 org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc(); 257 elemField.setFieldName("name"); 258 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "name")); 259 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.w3.org/2001/XMLSchema", "string")); 260 elemField.setNillable(false); 261 typeDesc.addFieldDesc(elemField); 262 elemField = new org.apache.axis.description.ElementDesc(); 263 elemField.setFieldName("title"); 264 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "title")); 265 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.w3.org/2001/XMLSchema", "string")); 266 elemField.setMinOccurs(0); 267 elemField.setNillable(false); 268 typeDesc.addFieldDesc(elemField); 269 elemField = new org.apache.axis.description.ElementDesc(); 270 elemField.setFieldName("description"); 271 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "description")); 272 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.w3.org/2001/XMLSchema", "string")); 273 elemField.setMinOccurs(0); 274 elemField.setNillable(false); 275 typeDesc.addFieldDesc(elemField); 276 elemField = new org.apache.axis.description.ElementDesc(); 277 elemField.setFieldName("isChild"); 278 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "isChild")); 279 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.w3.org/2001/XMLSchema", "boolean")); 280 elemField.setNillable(false); 281 typeDesc.addFieldDesc(elemField); 282 elemField = new org.apache.axis.description.ElementDesc(); 283 elemField.setFieldName("sourceRole"); 284 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "sourceRole")); 285 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "RoleDefinition")); 286 elemField.setMinOccurs(0); 287 elemField.setNillable(false); 288 typeDesc.addFieldDesc(elemField); 289 elemField = new org.apache.axis.description.ElementDesc(); 290 elemField.setFieldName("targetRole"); 291 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "targetRole")); 292 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "RoleDefinition")); 293 elemField.setMinOccurs(0); 294 elemField.setNillable(false); 295 typeDesc.addFieldDesc(elemField); 296 elemField = new org.apache.axis.description.ElementDesc(); 297 elemField.setFieldName("targetClass"); 298 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "targetClass")); 299 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.w3.org/2001/XMLSchema", "string")); 300 elemField.setNillable(false); 301 typeDesc.addFieldDesc(elemField); 302 } 303 304 307 public static org.apache.axis.description.TypeDesc getTypeDesc() { 308 return typeDesc; 309 } 310 311 314 public static org.apache.axis.encoding.Serializer getSerializer( 315 java.lang.String mechType, 316 java.lang.Class _javaType, 317 javax.xml.namespace.QName _xmlType) { 318 return 319 new org.apache.axis.encoding.ser.BeanSerializer( 320 _javaType, _xmlType, typeDesc); 321 } 322 323 326 public static org.apache.axis.encoding.Deserializer getDeserializer( 327 java.lang.String mechType, 328 java.lang.Class _javaType, 329 javax.xml.namespace.QName _xmlType) { 330 return 331 new org.apache.axis.encoding.ser.BeanDeserializer( 332 _javaType, _xmlType, typeDesc); 333 } 334 335 } 336 | Popular Tags |