1 7 8 package org.alfresco.example.webservice.types; 9 10 public class AssociationDefinition implements java.io.Serializable { 11 private java.lang.String name; 12 private java.lang.String title; 13 private java.lang.String description; 14 private boolean isChild; 15 private org.alfresco.example.webservice.types.RoleDefinition sourceRole; 16 private org.alfresco.example.webservice.types.RoleDefinition targetRole; 17 private java.lang.String targetClass; 18 19 public AssociationDefinition() { 20 } 21 22 public AssociationDefinition( 23 java.lang.String name, 24 java.lang.String title, 25 java.lang.String description, 26 boolean isChild, 27 org.alfresco.example.webservice.types.RoleDefinition sourceRole, 28 org.alfresco.example.webservice.types.RoleDefinition targetRole, 29 java.lang.String targetClass) { 30 this.name = name; 31 this.title = title; 32 this.description = description; 33 this.isChild = isChild; 34 this.sourceRole = sourceRole; 35 this.targetRole = targetRole; 36 this.targetClass = targetClass; 37 } 38 39 40 45 public java.lang.String getName() { 46 return name; 47 } 48 49 50 55 public void setName(java.lang.String name) { 56 this.name = name; 57 } 58 59 60 65 public java.lang.String getTitle() { 66 return title; 67 } 68 69 70 75 public void setTitle(java.lang.String title) { 76 this.title = title; 77 } 78 79 80 85 public java.lang.String getDescription() { 86 return description; 87 } 88 89 90 95 public void setDescription(java.lang.String description) { 96 this.description = description; 97 } 98 99 100 105 public boolean isIsChild() { 106 return isChild; 107 } 108 109 110 115 public void setIsChild(boolean isChild) { 116 this.isChild = isChild; 117 } 118 119 120 125 public org.alfresco.example.webservice.types.RoleDefinition getSourceRole() { 126 return sourceRole; 127 } 128 129 130 135 public void setSourceRole(org.alfresco.example.webservice.types.RoleDefinition sourceRole) { 136 this.sourceRole = sourceRole; 137 } 138 139 140 145 public org.alfresco.example.webservice.types.RoleDefinition getTargetRole() { 146 return targetRole; 147 } 148 149 150 155 public void setTargetRole(org.alfresco.example.webservice.types.RoleDefinition targetRole) { 156 this.targetRole = targetRole; 157 } 158 159 160 165 public java.lang.String getTargetClass() { 166 return targetClass; 167 } 168 169 170 175 public void setTargetClass(java.lang.String targetClass) { 176 this.targetClass = targetClass; 177 } 178 179 private java.lang.Object __equalsCalc = null; 180 public synchronized boolean equals(java.lang.Object obj) { 181 if (!(obj instanceof AssociationDefinition)) return false; 182 AssociationDefinition other = (AssociationDefinition) obj; 183 if (obj == null) return false; 184 if (this == obj) return true; 185 if (__equalsCalc != null) { 186 return (__equalsCalc == obj); 187 } 188 __equalsCalc = obj; 189 boolean _equals; 190 _equals = true && 191 ((this.name==null && other.getName()==null) || 192 (this.name!=null && 193 this.name.equals(other.getName()))) && 194 ((this.title==null && other.getTitle()==null) || 195 (this.title!=null && 196 this.title.equals(other.getTitle()))) && 197 ((this.description==null && other.getDescription()==null) || 198 (this.description!=null && 199 this.description.equals(other.getDescription()))) && 200 this.isChild == other.isIsChild() && 201 ((this.sourceRole==null && other.getSourceRole()==null) || 202 (this.sourceRole!=null && 203 this.sourceRole.equals(other.getSourceRole()))) && 204 ((this.targetRole==null && other.getTargetRole()==null) || 205 (this.targetRole!=null && 206 this.targetRole.equals(other.getTargetRole()))) && 207 ((this.targetClass==null && other.getTargetClass()==null) || 208 (this.targetClass!=null && 209 this.targetClass.equals(other.getTargetClass()))); 210 __equalsCalc = null; 211 return _equals; 212 } 213 214 private boolean __hashCodeCalc = false; 215 public synchronized int hashCode() { 216 if (__hashCodeCalc) { 217 return 0; 218 } 219 __hashCodeCalc = true; 220 int _hashCode = 1; 221 if (getName() != null) { 222 _hashCode += getName().hashCode(); 223 } 224 if (getTitle() != null) { 225 _hashCode += getTitle().hashCode(); 226 } 227 if (getDescription() != null) { 228 _hashCode += getDescription().hashCode(); 229 } 230 _hashCode += (isIsChild() ? Boolean.TRUE : Boolean.FALSE).hashCode(); 231 if (getSourceRole() != null) { 232 _hashCode += getSourceRole().hashCode(); 233 } 234 if (getTargetRole() != null) { 235 _hashCode += getTargetRole().hashCode(); 236 } 237 if (getTargetClass() != null) { 238 _hashCode += getTargetClass().hashCode(); 239 } 240 __hashCodeCalc = false; 241 return _hashCode; 242 } 243 244 private static org.apache.axis.description.TypeDesc typeDesc = 246 new org.apache.axis.description.TypeDesc(AssociationDefinition.class, true); 247 248 static { 249 typeDesc.setXmlType(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "AssociationDefinition")); 250 org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc(); 251 elemField.setFieldName("name"); 252 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "name")); 253 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "Name")); 254 elemField.setNillable(false); 255 typeDesc.addFieldDesc(elemField); 256 elemField = new org.apache.axis.description.ElementDesc(); 257 elemField.setFieldName("title"); 258 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "title")); 259 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.w3.org/2001/XMLSchema", "string")); 260 elemField.setMinOccurs(0); 261 elemField.setNillable(false); 262 typeDesc.addFieldDesc(elemField); 263 elemField = new org.apache.axis.description.ElementDesc(); 264 elemField.setFieldName("description"); 265 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "description")); 266 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.w3.org/2001/XMLSchema", "string")); 267 elemField.setMinOccurs(0); 268 elemField.setNillable(false); 269 typeDesc.addFieldDesc(elemField); 270 elemField = new org.apache.axis.description.ElementDesc(); 271 elemField.setFieldName("isChild"); 272 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "isChild")); 273 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.w3.org/2001/XMLSchema", "boolean")); 274 elemField.setNillable(false); 275 typeDesc.addFieldDesc(elemField); 276 elemField = new org.apache.axis.description.ElementDesc(); 277 elemField.setFieldName("sourceRole"); 278 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "sourceRole")); 279 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "RoleDefinition")); 280 elemField.setMinOccurs(0); 281 elemField.setNillable(false); 282 typeDesc.addFieldDesc(elemField); 283 elemField = new org.apache.axis.description.ElementDesc(); 284 elemField.setFieldName("targetRole"); 285 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "targetRole")); 286 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "RoleDefinition")); 287 elemField.setMinOccurs(0); 288 elemField.setNillable(false); 289 typeDesc.addFieldDesc(elemField); 290 elemField = new org.apache.axis.description.ElementDesc(); 291 elemField.setFieldName("targetClass"); 292 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "targetClass")); 293 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "Name")); 294 elemField.setNillable(false); 295 typeDesc.addFieldDesc(elemField); 296 } 297 298 301 public static org.apache.axis.description.TypeDesc getTypeDesc() { 302 return typeDesc; 303 } 304 305 308 public static org.apache.axis.encoding.Serializer getSerializer( 309 java.lang.String mechType, 310 java.lang.Class _javaType, 311 javax.xml.namespace.QName _xmlType) { 312 return 313 new org.apache.axis.encoding.ser.BeanSerializer( 314 _javaType, _xmlType, typeDesc); 315 } 316 317 320 public static org.apache.axis.encoding.Deserializer getDeserializer( 321 java.lang.String mechType, 322 java.lang.Class _javaType, 323 javax.xml.namespace.QName _xmlType) { 324 return 325 new org.apache.axis.encoding.ser.BeanDeserializer( 326 _javaType, _xmlType, typeDesc); 327 } 328 329 } 330 | Popular Tags |