1 7 8 package org.alfresco.example.webservice.types; 9 10 public class Version implements java.io.Serializable { 11 private org.alfresco.example.webservice.types.Reference id; 12 private java.util.Calendar created; 13 private java.lang.String creator; 14 private java.lang.String label; 15 private boolean major; 16 private org.alfresco.example.webservice.types.NamedValue[] commentaries; 17 18 public Version() { 19 } 20 21 public Version( 22 org.alfresco.example.webservice.types.Reference id, 23 java.util.Calendar created, 24 java.lang.String creator, 25 java.lang.String label, 26 boolean major, 27 org.alfresco.example.webservice.types.NamedValue[] commentaries) { 28 this.id = id; 29 this.created = created; 30 this.creator = creator; 31 this.label = label; 32 this.major = major; 33 this.commentaries = commentaries; 34 } 35 36 37 42 public org.alfresco.example.webservice.types.Reference getId() { 43 return id; 44 } 45 46 47 52 public void setId(org.alfresco.example.webservice.types.Reference id) { 53 this.id = id; 54 } 55 56 57 62 public java.util.Calendar getCreated() { 63 return created; 64 } 65 66 67 72 public void setCreated(java.util.Calendar created) { 73 this.created = created; 74 } 75 76 77 82 public java.lang.String getCreator() { 83 return creator; 84 } 85 86 87 92 public void setCreator(java.lang.String creator) { 93 this.creator = creator; 94 } 95 96 97 102 public java.lang.String getLabel() { 103 return label; 104 } 105 106 107 112 public void setLabel(java.lang.String label) { 113 this.label = label; 114 } 115 116 117 122 public boolean isMajor() { 123 return major; 124 } 125 126 127 132 public void setMajor(boolean major) { 133 this.major = major; 134 } 135 136 137 142 public org.alfresco.example.webservice.types.NamedValue[] getCommentaries() { 143 return commentaries; 144 } 145 146 147 152 public void setCommentaries(org.alfresco.example.webservice.types.NamedValue[] commentaries) { 153 this.commentaries = commentaries; 154 } 155 156 public org.alfresco.example.webservice.types.NamedValue getCommentaries(int i) { 157 return this.commentaries[i]; 158 } 159 160 public void setCommentaries(int i, org.alfresco.example.webservice.types.NamedValue _value) { 161 this.commentaries[i] = _value; 162 } 163 164 private java.lang.Object __equalsCalc = null; 165 public synchronized boolean equals(java.lang.Object obj) { 166 if (!(obj instanceof Version)) return false; 167 Version other = (Version) obj; 168 if (obj == null) return false; 169 if (this == obj) return true; 170 if (__equalsCalc != null) { 171 return (__equalsCalc == obj); 172 } 173 __equalsCalc = obj; 174 boolean _equals; 175 _equals = true && 176 ((this.id==null && other.getId()==null) || 177 (this.id!=null && 178 this.id.equals(other.getId()))) && 179 ((this.created==null && other.getCreated()==null) || 180 (this.created!=null && 181 this.created.equals(other.getCreated()))) && 182 ((this.creator==null && other.getCreator()==null) || 183 (this.creator!=null && 184 this.creator.equals(other.getCreator()))) && 185 ((this.label==null && other.getLabel()==null) || 186 (this.label!=null && 187 this.label.equals(other.getLabel()))) && 188 this.major == other.isMajor() && 189 ((this.commentaries==null && other.getCommentaries()==null) || 190 (this.commentaries!=null && 191 java.util.Arrays.equals(this.commentaries, other.getCommentaries()))); 192 __equalsCalc = null; 193 return _equals; 194 } 195 196 private boolean __hashCodeCalc = false; 197 public synchronized int hashCode() { 198 if (__hashCodeCalc) { 199 return 0; 200 } 201 __hashCodeCalc = true; 202 int _hashCode = 1; 203 if (getId() != null) { 204 _hashCode += getId().hashCode(); 205 } 206 if (getCreated() != null) { 207 _hashCode += getCreated().hashCode(); 208 } 209 if (getCreator() != null) { 210 _hashCode += getCreator().hashCode(); 211 } 212 if (getLabel() != null) { 213 _hashCode += getLabel().hashCode(); 214 } 215 _hashCode += (isMajor() ? Boolean.TRUE : Boolean.FALSE).hashCode(); 216 if (getCommentaries() != null) { 217 for (int i=0; 218 i<java.lang.reflect.Array.getLength(getCommentaries()); 219 i++) { 220 java.lang.Object obj = java.lang.reflect.Array.get(getCommentaries(), i); 221 if (obj != null && 222 !obj.getClass().isArray()) { 223 _hashCode += obj.hashCode(); 224 } 225 } 226 } 227 __hashCodeCalc = false; 228 return _hashCode; 229 } 230 231 private static org.apache.axis.description.TypeDesc typeDesc = 233 new org.apache.axis.description.TypeDesc(Version.class, true); 234 235 static { 236 typeDesc.setXmlType(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "Version")); 237 org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc(); 238 elemField.setFieldName("id"); 239 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "id")); 240 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "Reference")); 241 elemField.setNillable(false); 242 typeDesc.addFieldDesc(elemField); 243 elemField = new org.apache.axis.description.ElementDesc(); 244 elemField.setFieldName("created"); 245 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "created")); 246 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.w3.org/2001/XMLSchema", "dateTime")); 247 elemField.setMinOccurs(0); 248 elemField.setNillable(false); 249 typeDesc.addFieldDesc(elemField); 250 elemField = new org.apache.axis.description.ElementDesc(); 251 elemField.setFieldName("creator"); 252 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "creator")); 253 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.w3.org/2001/XMLSchema", "string")); 254 elemField.setMinOccurs(0); 255 elemField.setNillable(false); 256 typeDesc.addFieldDesc(elemField); 257 elemField = new org.apache.axis.description.ElementDesc(); 258 elemField.setFieldName("label"); 259 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "label")); 260 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.w3.org/2001/XMLSchema", "string")); 261 elemField.setMinOccurs(0); 262 elemField.setNillable(false); 263 typeDesc.addFieldDesc(elemField); 264 elemField = new org.apache.axis.description.ElementDesc(); 265 elemField.setFieldName("major"); 266 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "major")); 267 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.w3.org/2001/XMLSchema", "boolean")); 268 elemField.setNillable(false); 269 typeDesc.addFieldDesc(elemField); 270 elemField = new org.apache.axis.description.ElementDesc(); 271 elemField.setFieldName("commentaries"); 272 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "commentaries")); 273 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "NamedValue")); 274 elemField.setMinOccurs(0); 275 elemField.setNillable(false); 276 elemField.setMaxOccursUnbounded(true); 277 typeDesc.addFieldDesc(elemField); 278 } 279 280 283 public static org.apache.axis.description.TypeDesc getTypeDesc() { 284 return typeDesc; 285 } 286 287 290 public static org.apache.axis.encoding.Serializer getSerializer( 291 java.lang.String mechType, 292 java.lang.Class _javaType, 293 javax.xml.namespace.QName _xmlType) { 294 return 295 new org.apache.axis.encoding.ser.BeanSerializer( 296 _javaType, _xmlType, typeDesc); 297 } 298 299 302 public static org.apache.axis.encoding.Deserializer getDeserializer( 303 java.lang.String mechType, 304 java.lang.Class _javaType, 305 javax.xml.namespace.QName _xmlType) { 306 return 307 new org.apache.axis.encoding.ser.BeanDeserializer( 308 _javaType, _xmlType, typeDesc); 309 } 310 311 } 312 | Popular Tags |