1 7 8 package org.alfresco.repo.webservice.types; 9 10 public class ClassDefinition 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 java.lang.String superClass; 18 19 private boolean isAspect; 20 21 private org.alfresco.repo.webservice.types.PropertyDefinition[] properties; 22 23 private org.alfresco.repo.webservice.types.AssociationDefinition[] associations; 24 25 public ClassDefinition() { 26 } 27 28 public ClassDefinition( 29 java.lang.String name, 30 java.lang.String title, 31 java.lang.String description, 32 java.lang.String superClass, 33 boolean isAspect, 34 org.alfresco.repo.webservice.types.PropertyDefinition[] properties, 35 org.alfresco.repo.webservice.types.AssociationDefinition[] associations) { 36 this.name = name; 37 this.title = title; 38 this.description = description; 39 this.superClass = superClass; 40 this.isAspect = isAspect; 41 this.properties = properties; 42 this.associations = associations; 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 java.lang.String getSuperClass() { 112 return superClass; 113 } 114 115 116 121 public void setSuperClass(java.lang.String superClass) { 122 this.superClass = superClass; 123 } 124 125 126 131 public boolean isIsAspect() { 132 return isAspect; 133 } 134 135 136 141 public void setIsAspect(boolean isAspect) { 142 this.isAspect = isAspect; 143 } 144 145 146 151 public org.alfresco.repo.webservice.types.PropertyDefinition[] getProperties() { 152 return properties; 153 } 154 155 156 161 public void setProperties(org.alfresco.repo.webservice.types.PropertyDefinition[] properties) { 162 this.properties = properties; 163 } 164 165 public org.alfresco.repo.webservice.types.PropertyDefinition getProperties(int i) { 166 return this.properties[i]; 167 } 168 169 public void setProperties(int i, org.alfresco.repo.webservice.types.PropertyDefinition _value) { 170 this.properties[i] = _value; 171 } 172 173 174 179 public org.alfresco.repo.webservice.types.AssociationDefinition[] getAssociations() { 180 return associations; 181 } 182 183 184 189 public void setAssociations(org.alfresco.repo.webservice.types.AssociationDefinition[] associations) { 190 this.associations = associations; 191 } 192 193 public org.alfresco.repo.webservice.types.AssociationDefinition getAssociations(int i) { 194 return this.associations[i]; 195 } 196 197 public void setAssociations(int i, org.alfresco.repo.webservice.types.AssociationDefinition _value) { 198 this.associations[i] = _value; 199 } 200 201 private java.lang.Object __equalsCalc = null; 202 public synchronized boolean equals(java.lang.Object obj) { 203 if (!(obj instanceof ClassDefinition)) return false; 204 ClassDefinition other = (ClassDefinition) obj; 205 if (obj == null) return false; 206 if (this == obj) return true; 207 if (__equalsCalc != null) { 208 return (__equalsCalc == obj); 209 } 210 __equalsCalc = obj; 211 boolean _equals; 212 _equals = true && 213 ((this.name==null && other.getName()==null) || 214 (this.name!=null && 215 this.name.equals(other.getName()))) && 216 ((this.title==null && other.getTitle()==null) || 217 (this.title!=null && 218 this.title.equals(other.getTitle()))) && 219 ((this.description==null && other.getDescription()==null) || 220 (this.description!=null && 221 this.description.equals(other.getDescription()))) && 222 ((this.superClass==null && other.getSuperClass()==null) || 223 (this.superClass!=null && 224 this.superClass.equals(other.getSuperClass()))) && 225 this.isAspect == other.isIsAspect() && 226 ((this.properties==null && other.getProperties()==null) || 227 (this.properties!=null && 228 java.util.Arrays.equals(this.properties, other.getProperties()))) && 229 ((this.associations==null && other.getAssociations()==null) || 230 (this.associations!=null && 231 java.util.Arrays.equals(this.associations, other.getAssociations()))); 232 __equalsCalc = null; 233 return _equals; 234 } 235 236 private boolean __hashCodeCalc = false; 237 public synchronized int hashCode() { 238 if (__hashCodeCalc) { 239 return 0; 240 } 241 __hashCodeCalc = true; 242 int _hashCode = 1; 243 if (getName() != null) { 244 _hashCode += getName().hashCode(); 245 } 246 if (getTitle() != null) { 247 _hashCode += getTitle().hashCode(); 248 } 249 if (getDescription() != null) { 250 _hashCode += getDescription().hashCode(); 251 } 252 if (getSuperClass() != null) { 253 _hashCode += getSuperClass().hashCode(); 254 } 255 _hashCode += (isIsAspect() ? Boolean.TRUE : Boolean.FALSE).hashCode(); 256 if (getProperties() != null) { 257 for (int i=0; 258 i<java.lang.reflect.Array.getLength(getProperties()); 259 i++) { 260 java.lang.Object obj = java.lang.reflect.Array.get(getProperties(), i); 261 if (obj != null && 262 !obj.getClass().isArray()) { 263 _hashCode += obj.hashCode(); 264 } 265 } 266 } 267 if (getAssociations() != null) { 268 for (int i=0; 269 i<java.lang.reflect.Array.getLength(getAssociations()); 270 i++) { 271 java.lang.Object obj = java.lang.reflect.Array.get(getAssociations(), i); 272 if (obj != null && 273 !obj.getClass().isArray()) { 274 _hashCode += obj.hashCode(); 275 } 276 } 277 } 278 __hashCodeCalc = false; 279 return _hashCode; 280 } 281 282 private static org.apache.axis.description.TypeDesc typeDesc = 284 new org.apache.axis.description.TypeDesc(ClassDefinition.class, true); 285 286 static { 287 typeDesc.setXmlType(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "ClassDefinition")); 288 org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc(); 289 elemField.setFieldName("name"); 290 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "name")); 291 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.w3.org/2001/XMLSchema", "string")); 292 elemField.setNillable(false); 293 typeDesc.addFieldDesc(elemField); 294 elemField = new org.apache.axis.description.ElementDesc(); 295 elemField.setFieldName("title"); 296 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "title")); 297 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.w3.org/2001/XMLSchema", "string")); 298 elemField.setMinOccurs(0); 299 elemField.setNillable(false); 300 typeDesc.addFieldDesc(elemField); 301 elemField = new org.apache.axis.description.ElementDesc(); 302 elemField.setFieldName("description"); 303 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "description")); 304 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.w3.org/2001/XMLSchema", "string")); 305 elemField.setMinOccurs(0); 306 elemField.setNillable(false); 307 typeDesc.addFieldDesc(elemField); 308 elemField = new org.apache.axis.description.ElementDesc(); 309 elemField.setFieldName("superClass"); 310 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "superClass")); 311 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.w3.org/2001/XMLSchema", "string")); 312 elemField.setMinOccurs(0); 313 elemField.setNillable(false); 314 typeDesc.addFieldDesc(elemField); 315 elemField = new org.apache.axis.description.ElementDesc(); 316 elemField.setFieldName("isAspect"); 317 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "isAspect")); 318 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.w3.org/2001/XMLSchema", "boolean")); 319 elemField.setNillable(false); 320 typeDesc.addFieldDesc(elemField); 321 elemField = new org.apache.axis.description.ElementDesc(); 322 elemField.setFieldName("properties"); 323 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "properties")); 324 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "PropertyDefinition")); 325 elemField.setMinOccurs(0); 326 elemField.setNillable(true); 327 elemField.setMaxOccursUnbounded(true); 328 typeDesc.addFieldDesc(elemField); 329 elemField = new org.apache.axis.description.ElementDesc(); 330 elemField.setFieldName("associations"); 331 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "associations")); 332 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "AssociationDefinition")); 333 elemField.setMinOccurs(0); 334 elemField.setNillable(true); 335 elemField.setMaxOccursUnbounded(true); 336 typeDesc.addFieldDesc(elemField); 337 } 338 339 342 public static org.apache.axis.description.TypeDesc getTypeDesc() { 343 return typeDesc; 344 } 345 346 349 public static org.apache.axis.encoding.Serializer getSerializer( 350 java.lang.String mechType, 351 java.lang.Class _javaType, 352 javax.xml.namespace.QName _xmlType) { 353 return 354 new org.apache.axis.encoding.ser.BeanSerializer( 355 _javaType, _xmlType, typeDesc); 356 } 357 358 361 public static org.apache.axis.encoding.Deserializer getDeserializer( 362 java.lang.String mechType, 363 java.lang.Class _javaType, 364 javax.xml.namespace.QName _xmlType) { 365 return 366 new org.apache.axis.encoding.ser.BeanDeserializer( 367 _javaType, _xmlType, typeDesc); 368 } 369 370 } 371 | Popular Tags |