1 7 8 package org.alfresco.repo.webservice.types; 9 10 public class Classification implements java.io.Serializable { 11 private java.lang.String classification; 12 13 private org.alfresco.repo.webservice.types.Category rootCategory; 14 15 private java.lang.String title; 16 17 private java.lang.String description; 18 19 public Classification() { 20 } 21 22 public Classification( 23 java.lang.String classification, 24 org.alfresco.repo.webservice.types.Category rootCategory, 25 java.lang.String title, 26 java.lang.String description) { 27 this.classification = classification; 28 this.rootCategory = rootCategory; 29 this.title = title; 30 this.description = description; 31 } 32 33 34 39 public java.lang.String getClassification() { 40 return classification; 41 } 42 43 44 49 public void setClassification(java.lang.String classification) { 50 this.classification = classification; 51 } 52 53 54 59 public org.alfresco.repo.webservice.types.Category getRootCategory() { 60 return rootCategory; 61 } 62 63 64 69 public void setRootCategory(org.alfresco.repo.webservice.types.Category rootCategory) { 70 this.rootCategory = rootCategory; 71 } 72 73 74 79 public java.lang.String getTitle() { 80 return title; 81 } 82 83 84 89 public void setTitle(java.lang.String title) { 90 this.title = title; 91 } 92 93 94 99 public java.lang.String getDescription() { 100 return description; 101 } 102 103 104 109 public void setDescription(java.lang.String description) { 110 this.description = description; 111 } 112 113 private java.lang.Object __equalsCalc = null; 114 public synchronized boolean equals(java.lang.Object obj) { 115 if (!(obj instanceof Classification)) return false; 116 Classification other = (Classification) obj; 117 if (obj == null) return false; 118 if (this == obj) return true; 119 if (__equalsCalc != null) { 120 return (__equalsCalc == obj); 121 } 122 __equalsCalc = obj; 123 boolean _equals; 124 _equals = true && 125 ((this.classification==null && other.getClassification()==null) || 126 (this.classification!=null && 127 this.classification.equals(other.getClassification()))) && 128 ((this.rootCategory==null && other.getRootCategory()==null) || 129 (this.rootCategory!=null && 130 this.rootCategory.equals(other.getRootCategory()))) && 131 ((this.title==null && other.getTitle()==null) || 132 (this.title!=null && 133 this.title.equals(other.getTitle()))) && 134 ((this.description==null && other.getDescription()==null) || 135 (this.description!=null && 136 this.description.equals(other.getDescription()))); 137 __equalsCalc = null; 138 return _equals; 139 } 140 141 private boolean __hashCodeCalc = false; 142 public synchronized int hashCode() { 143 if (__hashCodeCalc) { 144 return 0; 145 } 146 __hashCodeCalc = true; 147 int _hashCode = 1; 148 if (getClassification() != null) { 149 _hashCode += getClassification().hashCode(); 150 } 151 if (getRootCategory() != null) { 152 _hashCode += getRootCategory().hashCode(); 153 } 154 if (getTitle() != null) { 155 _hashCode += getTitle().hashCode(); 156 } 157 if (getDescription() != null) { 158 _hashCode += getDescription().hashCode(); 159 } 160 __hashCodeCalc = false; 161 return _hashCode; 162 } 163 164 private static org.apache.axis.description.TypeDesc typeDesc = 166 new org.apache.axis.description.TypeDesc(Classification.class, true); 167 168 static { 169 typeDesc.setXmlType(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "Classification")); 170 org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc(); 171 elemField.setFieldName("classification"); 172 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "classification")); 173 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.w3.org/2001/XMLSchema", "string")); 174 elemField.setNillable(false); 175 typeDesc.addFieldDesc(elemField); 176 elemField = new org.apache.axis.description.ElementDesc(); 177 elemField.setFieldName("rootCategory"); 178 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "rootCategory")); 179 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "Category")); 180 elemField.setNillable(false); 181 typeDesc.addFieldDesc(elemField); 182 elemField = new org.apache.axis.description.ElementDesc(); 183 elemField.setFieldName("title"); 184 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "title")); 185 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.w3.org/2001/XMLSchema", "string")); 186 elemField.setMinOccurs(0); 187 elemField.setNillable(false); 188 typeDesc.addFieldDesc(elemField); 189 elemField = new org.apache.axis.description.ElementDesc(); 190 elemField.setFieldName("description"); 191 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "description")); 192 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.w3.org/2001/XMLSchema", "string")); 193 elemField.setMinOccurs(0); 194 elemField.setNillable(false); 195 typeDesc.addFieldDesc(elemField); 196 } 197 198 201 public static org.apache.axis.description.TypeDesc getTypeDesc() { 202 return typeDesc; 203 } 204 205 208 public static org.apache.axis.encoding.Serializer getSerializer( 209 java.lang.String mechType, 210 java.lang.Class _javaType, 211 javax.xml.namespace.QName _xmlType) { 212 return 213 new org.apache.axis.encoding.ser.BeanSerializer( 214 _javaType, _xmlType, typeDesc); 215 } 216 217 220 public static org.apache.axis.encoding.Deserializer getDeserializer( 221 java.lang.String mechType, 222 java.lang.Class _javaType, 223 javax.xml.namespace.QName _xmlType) { 224 return 225 new org.apache.axis.encoding.ser.BeanDeserializer( 226 _javaType, _xmlType, typeDesc); 227 } 228 229 } 230 | Popular Tags |