1 7 8 package org.alfresco.example.webservice.types; 9 10 public class Category implements java.io.Serializable { 11 private org.alfresco.example.webservice.types.Reference id; 12 private java.lang.String title; 13 private java.lang.String description; 14 15 public Category() { 16 } 17 18 public Category( 19 org.alfresco.example.webservice.types.Reference id, 20 java.lang.String title, 21 java.lang.String description) { 22 this.id = id; 23 this.title = title; 24 this.description = description; 25 } 26 27 28 33 public org.alfresco.example.webservice.types.Reference getId() { 34 return id; 35 } 36 37 38 43 public void setId(org.alfresco.example.webservice.types.Reference id) { 44 this.id = id; 45 } 46 47 48 53 public java.lang.String getTitle() { 54 return title; 55 } 56 57 58 63 public void setTitle(java.lang.String title) { 64 this.title = title; 65 } 66 67 68 73 public java.lang.String getDescription() { 74 return description; 75 } 76 77 78 83 public void setDescription(java.lang.String description) { 84 this.description = description; 85 } 86 87 private java.lang.Object __equalsCalc = null; 88 public synchronized boolean equals(java.lang.Object obj) { 89 if (!(obj instanceof Category)) return false; 90 Category other = (Category) obj; 91 if (obj == null) return false; 92 if (this == obj) return true; 93 if (__equalsCalc != null) { 94 return (__equalsCalc == obj); 95 } 96 __equalsCalc = obj; 97 boolean _equals; 98 _equals = true && 99 ((this.id==null && other.getId()==null) || 100 (this.id!=null && 101 this.id.equals(other.getId()))) && 102 ((this.title==null && other.getTitle()==null) || 103 (this.title!=null && 104 this.title.equals(other.getTitle()))) && 105 ((this.description==null && other.getDescription()==null) || 106 (this.description!=null && 107 this.description.equals(other.getDescription()))); 108 __equalsCalc = null; 109 return _equals; 110 } 111 112 private boolean __hashCodeCalc = false; 113 public synchronized int hashCode() { 114 if (__hashCodeCalc) { 115 return 0; 116 } 117 __hashCodeCalc = true; 118 int _hashCode = 1; 119 if (getId() != null) { 120 _hashCode += getId().hashCode(); 121 } 122 if (getTitle() != null) { 123 _hashCode += getTitle().hashCode(); 124 } 125 if (getDescription() != null) { 126 _hashCode += getDescription().hashCode(); 127 } 128 __hashCodeCalc = false; 129 return _hashCode; 130 } 131 132 private static org.apache.axis.description.TypeDesc typeDesc = 134 new org.apache.axis.description.TypeDesc(Category.class, true); 135 136 static { 137 typeDesc.setXmlType(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "Category")); 138 org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc(); 139 elemField.setFieldName("id"); 140 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "id")); 141 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "Reference")); 142 elemField.setNillable(false); 143 typeDesc.addFieldDesc(elemField); 144 elemField = new org.apache.axis.description.ElementDesc(); 145 elemField.setFieldName("title"); 146 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "title")); 147 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.w3.org/2001/XMLSchema", "string")); 148 elemField.setMinOccurs(0); 149 elemField.setNillable(false); 150 typeDesc.addFieldDesc(elemField); 151 elemField = new org.apache.axis.description.ElementDesc(); 152 elemField.setFieldName("description"); 153 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "description")); 154 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.w3.org/2001/XMLSchema", "string")); 155 elemField.setMinOccurs(0); 156 elemField.setNillable(false); 157 typeDesc.addFieldDesc(elemField); 158 } 159 160 163 public static org.apache.axis.description.TypeDesc getTypeDesc() { 164 return typeDesc; 165 } 166 167 170 public static org.apache.axis.encoding.Serializer getSerializer( 171 java.lang.String mechType, 172 java.lang.Class _javaType, 173 javax.xml.namespace.QName _xmlType) { 174 return 175 new org.apache.axis.encoding.ser.BeanSerializer( 176 _javaType, _xmlType, typeDesc); 177 } 178 179 182 public static org.apache.axis.encoding.Deserializer getDeserializer( 183 java.lang.String mechType, 184 java.lang.Class _javaType, 185 javax.xml.namespace.QName _xmlType) { 186 return 187 new org.apache.axis.encoding.ser.BeanDeserializer( 188 _javaType, _xmlType, typeDesc); 189 } 190 191 } 192 | Popular Tags |