1 7 8 package org.alfresco.repo.webservice.types; 9 10 public class Version implements java.io.Serializable { 11 private org.alfresco.repo.webservice.types.Reference id; 12 13 private java.util.Calendar created; 14 15 private java.lang.String creator; 16 17 private java.lang.String label; 18 19 private boolean major; 20 21 private org.alfresco.repo.webservice.types.NamedValue[] commentaries; 22 23 public Version() { 24 } 25 26 public Version( 27 org.alfresco.repo.webservice.types.Reference id, 28 java.util.Calendar created, 29 java.lang.String creator, 30 java.lang.String label, 31 boolean major, 32 org.alfresco.repo.webservice.types.NamedValue[] commentaries) { 33 this.id = id; 34 this.created = created; 35 this.creator = creator; 36 this.label = label; 37 this.major = major; 38 this.commentaries = commentaries; 39 } 40 41 42 47 public org.alfresco.repo.webservice.types.Reference getId() { 48 return id; 49 } 50 51 52 57 public void setId(org.alfresco.repo.webservice.types.Reference id) { 58 this.id = id; 59 } 60 61 62 67 public java.util.Calendar getCreated() { 68 return created; 69 } 70 71 72 77 public void setCreated(java.util.Calendar created) { 78 this.created = created; 79 } 80 81 82 87 public java.lang.String getCreator() { 88 return creator; 89 } 90 91 92 97 public void setCreator(java.lang.String creator) { 98 this.creator = creator; 99 } 100 101 102 107 public java.lang.String getLabel() { 108 return label; 109 } 110 111 112 117 public void setLabel(java.lang.String label) { 118 this.label = label; 119 } 120 121 122 127 public boolean isMajor() { 128 return major; 129 } 130 131 132 137 public void setMajor(boolean major) { 138 this.major = major; 139 } 140 141 142 147 public org.alfresco.repo.webservice.types.NamedValue[] getCommentaries() { 148 return commentaries; 149 } 150 151 152 157 public void setCommentaries(org.alfresco.repo.webservice.types.NamedValue[] commentaries) { 158 this.commentaries = commentaries; 159 } 160 161 public org.alfresco.repo.webservice.types.NamedValue getCommentaries(int i) { 162 return this.commentaries[i]; 163 } 164 165 public void setCommentaries(int i, org.alfresco.repo.webservice.types.NamedValue _value) { 166 this.commentaries[i] = _value; 167 } 168 169 private java.lang.Object __equalsCalc = null; 170 public synchronized boolean equals(java.lang.Object obj) { 171 if (!(obj instanceof Version)) return false; 172 Version other = (Version) obj; 173 if (obj == null) return false; 174 if (this == obj) return true; 175 if (__equalsCalc != null) { 176 return (__equalsCalc == obj); 177 } 178 __equalsCalc = obj; 179 boolean _equals; 180 _equals = true && 181 ((this.id==null && other.getId()==null) || 182 (this.id!=null && 183 this.id.equals(other.getId()))) && 184 ((this.created==null && other.getCreated()==null) || 185 (this.created!=null && 186 this.created.equals(other.getCreated()))) && 187 ((this.creator==null && other.getCreator()==null) || 188 (this.creator!=null && 189 this.creator.equals(other.getCreator()))) && 190 ((this.label==null && other.getLabel()==null) || 191 (this.label!=null && 192 this.label.equals(other.getLabel()))) && 193 this.major == other.isMajor() && 194 ((this.commentaries==null && other.getCommentaries()==null) || 195 (this.commentaries!=null && 196 java.util.Arrays.equals(this.commentaries, other.getCommentaries()))); 197 __equalsCalc = null; 198 return _equals; 199 } 200 201 private boolean __hashCodeCalc = false; 202 public synchronized int hashCode() { 203 if (__hashCodeCalc) { 204 return 0; 205 } 206 __hashCodeCalc = true; 207 int _hashCode = 1; 208 if (getId() != null) { 209 _hashCode += getId().hashCode(); 210 } 211 if (getCreated() != null) { 212 _hashCode += getCreated().hashCode(); 213 } 214 if (getCreator() != null) { 215 _hashCode += getCreator().hashCode(); 216 } 217 if (getLabel() != null) { 218 _hashCode += getLabel().hashCode(); 219 } 220 _hashCode += (isMajor() ? Boolean.TRUE : Boolean.FALSE).hashCode(); 221 if (getCommentaries() != null) { 222 for (int i=0; 223 i<java.lang.reflect.Array.getLength(getCommentaries()); 224 i++) { 225 java.lang.Object obj = java.lang.reflect.Array.get(getCommentaries(), i); 226 if (obj != null && 227 !obj.getClass().isArray()) { 228 _hashCode += obj.hashCode(); 229 } 230 } 231 } 232 __hashCodeCalc = false; 233 return _hashCode; 234 } 235 236 private static org.apache.axis.description.TypeDesc typeDesc = 238 new org.apache.axis.description.TypeDesc(Version.class, true); 239 240 static { 241 typeDesc.setXmlType(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "Version")); 242 org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc(); 243 elemField.setFieldName("id"); 244 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "id")); 245 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "Reference")); 246 elemField.setNillable(false); 247 typeDesc.addFieldDesc(elemField); 248 elemField = new org.apache.axis.description.ElementDesc(); 249 elemField.setFieldName("created"); 250 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "created")); 251 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.w3.org/2001/XMLSchema", "dateTime")); 252 elemField.setMinOccurs(0); 253 elemField.setNillable(false); 254 typeDesc.addFieldDesc(elemField); 255 elemField = new org.apache.axis.description.ElementDesc(); 256 elemField.setFieldName("creator"); 257 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "creator")); 258 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.w3.org/2001/XMLSchema", "string")); 259 elemField.setMinOccurs(0); 260 elemField.setNillable(false); 261 typeDesc.addFieldDesc(elemField); 262 elemField = new org.apache.axis.description.ElementDesc(); 263 elemField.setFieldName("label"); 264 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "label")); 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("major"); 271 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "major")); 272 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.w3.org/2001/XMLSchema", "boolean")); 273 elemField.setNillable(false); 274 typeDesc.addFieldDesc(elemField); 275 elemField = new org.apache.axis.description.ElementDesc(); 276 elemField.setFieldName("commentaries"); 277 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "commentaries")); 278 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "NamedValue")); 279 elemField.setMinOccurs(0); 280 elemField.setNillable(false); 281 elemField.setMaxOccursUnbounded(true); 282 typeDesc.addFieldDesc(elemField); 283 } 284 285 288 public static org.apache.axis.description.TypeDesc getTypeDesc() { 289 return typeDesc; 290 } 291 292 295 public static org.apache.axis.encoding.Serializer getSerializer( 296 java.lang.String mechType, 297 java.lang.Class _javaType, 298 javax.xml.namespace.QName _xmlType) { 299 return 300 new org.apache.axis.encoding.ser.BeanSerializer( 301 _javaType, _xmlType, typeDesc); 302 } 303 304 307 public static org.apache.axis.encoding.Deserializer getDeserializer( 308 java.lang.String mechType, 309 java.lang.Class _javaType, 310 javax.xml.namespace.QName _xmlType) { 311 return 312 new org.apache.axis.encoding.ser.BeanDeserializer( 313 _javaType, _xmlType, typeDesc); 314 } 315 316 } 317 | Popular Tags |