1 7 8 package org.alfresco.example.webservice.types; 9 10 public class ClassDefinition implements java.io.Serializable { 11 private java.lang.String name; 12 private java.lang.String title; 13 private java.lang.String description; 14 private java.lang.String superClass; 15 private boolean isAspect; 16 private org.alfresco.example.webservice.types.PropertyDefinition[] properties; 17 private org.alfresco.example.webservice.types.AssociationDefinition[] associations; 18 19 public ClassDefinition() { 20 } 21 22 public ClassDefinition( 23 java.lang.String name, 24 java.lang.String title, 25 java.lang.String description, 26 java.lang.String superClass, 27 boolean isAspect, 28 org.alfresco.example.webservice.types.PropertyDefinition[] properties, 29 org.alfresco.example.webservice.types.AssociationDefinition[] associations) { 30 this.name = name; 31 this.title = title; 32 this.description = description; 33 this.superClass = superClass; 34 this.isAspect = isAspect; 35 this.properties = properties; 36 this.associations = associations; 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 java.lang.String getSuperClass() { 106 return superClass; 107 } 108 109 110 115 public void setSuperClass(java.lang.String superClass) { 116 this.superClass = superClass; 117 } 118 119 120 125 public boolean isIsAspect() { 126 return isAspect; 127 } 128 129 130 135 public void setIsAspect(boolean isAspect) { 136 this.isAspect = isAspect; 137 } 138 139 140 145 public org.alfresco.example.webservice.types.PropertyDefinition[] getProperties() { 146 return properties; 147 } 148 149 150 155 public void setProperties(org.alfresco.example.webservice.types.PropertyDefinition[] properties) { 156 this.properties = properties; 157 } 158 159 public org.alfresco.example.webservice.types.PropertyDefinition getProperties(int i) { 160 return this.properties[i]; 161 } 162 163 public void setProperties(int i, org.alfresco.example.webservice.types.PropertyDefinition _value) { 164 this.properties[i] = _value; 165 } 166 167 168 173 public org.alfresco.example.webservice.types.AssociationDefinition[] getAssociations() { 174 return associations; 175 } 176 177 178 183 public void setAssociations(org.alfresco.example.webservice.types.AssociationDefinition[] associations) { 184 this.associations = associations; 185 } 186 187 public org.alfresco.example.webservice.types.AssociationDefinition getAssociations(int i) { 188 return this.associations[i]; 189 } 190 191 public void setAssociations(int i, org.alfresco.example.webservice.types.AssociationDefinition _value) { 192 this.associations[i] = _value; 193 } 194 195 private java.lang.Object __equalsCalc = null; 196 public synchronized boolean equals(java.lang.Object obj) { 197 if (!(obj instanceof ClassDefinition)) return false; 198 ClassDefinition other = (ClassDefinition) obj; 199 if (obj == null) return false; 200 if (this == obj) return true; 201 if (__equalsCalc != null) { 202 return (__equalsCalc == obj); 203 } 204 __equalsCalc = obj; 205 boolean _equals; 206 _equals = true && 207 ((this.name==null && other.getName()==null) || 208 (this.name!=null && 209 this.name.equals(other.getName()))) && 210 ((this.title==null && other.getTitle()==null) || 211 (this.title!=null && 212 this.title.equals(other.getTitle()))) && 213 ((this.description==null && other.getDescription()==null) || 214 (this.description!=null && 215 this.description.equals(other.getDescription()))) && 216 ((this.superClass==null && other.getSuperClass()==null) || 217 (this.superClass!=null && 218 this.superClass.equals(other.getSuperClass()))) && 219 this.isAspect == other.isIsAspect() && 220 ((this.properties==null && other.getProperties()==null) || 221 (this.properties!=null && 222 java.util.Arrays.equals(this.properties, other.getProperties()))) && 223 ((this.associations==null && other.getAssociations()==null) || 224 (this.associations!=null && 225 java.util.Arrays.equals(this.associations, other.getAssociations()))); 226 __equalsCalc = null; 227 return _equals; 228 } 229 230 private boolean __hashCodeCalc = false; 231 public synchronized int hashCode() { 232 if (__hashCodeCalc) { 233 return 0; 234 } 235 __hashCodeCalc = true; 236 int _hashCode = 1; 237 if (getName() != null) { 238 _hashCode += getName().hashCode(); 239 } 240 if (getTitle() != null) { 241 _hashCode += getTitle().hashCode(); 242 } 243 if (getDescription() != null) { 244 _hashCode += getDescription().hashCode(); 245 } 246 if (getSuperClass() != null) { 247 _hashCode += getSuperClass().hashCode(); 248 } 249 _hashCode += (isIsAspect() ? Boolean.TRUE : Boolean.FALSE).hashCode(); 250 if (getProperties() != null) { 251 for (int i=0; 252 i<java.lang.reflect.Array.getLength(getProperties()); 253 i++) { 254 java.lang.Object obj = java.lang.reflect.Array.get(getProperties(), i); 255 if (obj != null && 256 !obj.getClass().isArray()) { 257 _hashCode += obj.hashCode(); 258 } 259 } 260 } 261 if (getAssociations() != null) { 262 for (int i=0; 263 i<java.lang.reflect.Array.getLength(getAssociations()); 264 i++) { 265 java.lang.Object obj = java.lang.reflect.Array.get(getAssociations(), i); 266 if (obj != null && 267 !obj.getClass().isArray()) { 268 _hashCode += obj.hashCode(); 269 } 270 } 271 } 272 __hashCodeCalc = false; 273 return _hashCode; 274 } 275 276 private static org.apache.axis.description.TypeDesc typeDesc = 278 new org.apache.axis.description.TypeDesc(ClassDefinition.class, true); 279 280 static { 281 typeDesc.setXmlType(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "ClassDefinition")); 282 org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc(); 283 elemField.setFieldName("name"); 284 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "name")); 285 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "Name")); 286 elemField.setNillable(false); 287 typeDesc.addFieldDesc(elemField); 288 elemField = new org.apache.axis.description.ElementDesc(); 289 elemField.setFieldName("title"); 290 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "title")); 291 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.w3.org/2001/XMLSchema", "string")); 292 elemField.setMinOccurs(0); 293 elemField.setNillable(false); 294 typeDesc.addFieldDesc(elemField); 295 elemField = new org.apache.axis.description.ElementDesc(); 296 elemField.setFieldName("description"); 297 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "description")); 298 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.w3.org/2001/XMLSchema", "string")); 299 elemField.setMinOccurs(0); 300 elemField.setNillable(false); 301 typeDesc.addFieldDesc(elemField); 302 elemField = new org.apache.axis.description.ElementDesc(); 303 elemField.setFieldName("superClass"); 304 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "superClass")); 305 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "Name")); 306 elemField.setMinOccurs(0); 307 elemField.setNillable(false); 308 typeDesc.addFieldDesc(elemField); 309 elemField = new org.apache.axis.description.ElementDesc(); 310 elemField.setFieldName("isAspect"); 311 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "isAspect")); 312 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.w3.org/2001/XMLSchema", "boolean")); 313 elemField.setNillable(false); 314 typeDesc.addFieldDesc(elemField); 315 elemField = new org.apache.axis.description.ElementDesc(); 316 elemField.setFieldName("properties"); 317 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "properties")); 318 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "PropertyDefinition")); 319 elemField.setMinOccurs(0); 320 elemField.setNillable(true); 321 elemField.setMaxOccursUnbounded(true); 322 typeDesc.addFieldDesc(elemField); 323 elemField = new org.apache.axis.description.ElementDesc(); 324 elemField.setFieldName("associations"); 325 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "associations")); 326 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "AssociationDefinition")); 327 elemField.setMinOccurs(0); 328 elemField.setNillable(true); 329 elemField.setMaxOccursUnbounded(true); 330 typeDesc.addFieldDesc(elemField); 331 } 332 333 336 public static org.apache.axis.description.TypeDesc getTypeDesc() { 337 return typeDesc; 338 } 339 340 343 public static org.apache.axis.encoding.Serializer getSerializer( 344 java.lang.String mechType, 345 java.lang.Class _javaType, 346 javax.xml.namespace.QName _xmlType) { 347 return 348 new org.apache.axis.encoding.ser.BeanSerializer( 349 _javaType, _xmlType, typeDesc); 350 } 351 352 355 public static org.apache.axis.encoding.Deserializer getDeserializer( 356 java.lang.String mechType, 357 java.lang.Class _javaType, 358 javax.xml.namespace.QName _xmlType) { 359 return 360 new org.apache.axis.encoding.ser.BeanDeserializer( 361 _javaType, _xmlType, typeDesc); 362 } 363 364 } 365 | Popular Tags |