1 7 8 package org.alfresco.example.webservice.types; 9 10 public class ValueDefinition 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 dataType; 15 16 public ValueDefinition() { 17 } 18 19 public ValueDefinition( 20 java.lang.String name, 21 java.lang.String title, 22 java.lang.String description, 23 java.lang.String dataType) { 24 this.name = name; 25 this.title = title; 26 this.description = description; 27 this.dataType = dataType; 28 } 29 30 31 36 public java.lang.String getName() { 37 return name; 38 } 39 40 41 46 public void setName(java.lang.String name) { 47 this.name = name; 48 } 49 50 51 56 public java.lang.String getTitle() { 57 return title; 58 } 59 60 61 66 public void setTitle(java.lang.String title) { 67 this.title = title; 68 } 69 70 71 76 public java.lang.String getDescription() { 77 return description; 78 } 79 80 81 86 public void setDescription(java.lang.String description) { 87 this.description = description; 88 } 89 90 91 96 public java.lang.String getDataType() { 97 return dataType; 98 } 99 100 101 106 public void setDataType(java.lang.String dataType) { 107 this.dataType = dataType; 108 } 109 110 private java.lang.Object __equalsCalc = null; 111 public synchronized boolean equals(java.lang.Object obj) { 112 if (!(obj instanceof ValueDefinition)) return false; 113 ValueDefinition other = (ValueDefinition) obj; 114 if (obj == null) return false; 115 if (this == obj) return true; 116 if (__equalsCalc != null) { 117 return (__equalsCalc == obj); 118 } 119 __equalsCalc = obj; 120 boolean _equals; 121 _equals = true && 122 ((this.name==null && other.getName()==null) || 123 (this.name!=null && 124 this.name.equals(other.getName()))) && 125 ((this.title==null && other.getTitle()==null) || 126 (this.title!=null && 127 this.title.equals(other.getTitle()))) && 128 ((this.description==null && other.getDescription()==null) || 129 (this.description!=null && 130 this.description.equals(other.getDescription()))) && 131 ((this.dataType==null && other.getDataType()==null) || 132 (this.dataType!=null && 133 this.dataType.equals(other.getDataType()))); 134 __equalsCalc = null; 135 return _equals; 136 } 137 138 private boolean __hashCodeCalc = false; 139 public synchronized int hashCode() { 140 if (__hashCodeCalc) { 141 return 0; 142 } 143 __hashCodeCalc = true; 144 int _hashCode = 1; 145 if (getName() != null) { 146 _hashCode += getName().hashCode(); 147 } 148 if (getTitle() != null) { 149 _hashCode += getTitle().hashCode(); 150 } 151 if (getDescription() != null) { 152 _hashCode += getDescription().hashCode(); 153 } 154 if (getDataType() != null) { 155 _hashCode += getDataType().hashCode(); 156 } 157 __hashCodeCalc = false; 158 return _hashCode; 159 } 160 161 private static org.apache.axis.description.TypeDesc typeDesc = 163 new org.apache.axis.description.TypeDesc(ValueDefinition.class, true); 164 165 static { 166 typeDesc.setXmlType(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "ValueDefinition")); 167 org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc(); 168 elemField.setFieldName("name"); 169 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "name")); 170 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "Name")); 171 elemField.setNillable(false); 172 typeDesc.addFieldDesc(elemField); 173 elemField = new org.apache.axis.description.ElementDesc(); 174 elemField.setFieldName("title"); 175 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "title")); 176 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.w3.org/2001/XMLSchema", "string")); 177 elemField.setMinOccurs(0); 178 elemField.setNillable(false); 179 typeDesc.addFieldDesc(elemField); 180 elemField = new org.apache.axis.description.ElementDesc(); 181 elemField.setFieldName("description"); 182 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "description")); 183 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.w3.org/2001/XMLSchema", "string")); 184 elemField.setMinOccurs(0); 185 elemField.setNillable(false); 186 typeDesc.addFieldDesc(elemField); 187 elemField = new org.apache.axis.description.ElementDesc(); 188 elemField.setFieldName("dataType"); 189 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "dataType")); 190 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "Name")); 191 elemField.setNillable(false); 192 typeDesc.addFieldDesc(elemField); 193 } 194 195 198 public static org.apache.axis.description.TypeDesc getTypeDesc() { 199 return typeDesc; 200 } 201 202 205 public static org.apache.axis.encoding.Serializer getSerializer( 206 java.lang.String mechType, 207 java.lang.Class _javaType, 208 javax.xml.namespace.QName _xmlType) { 209 return 210 new org.apache.axis.encoding.ser.BeanSerializer( 211 _javaType, _xmlType, typeDesc); 212 } 213 214 217 public static org.apache.axis.encoding.Deserializer getDeserializer( 218 java.lang.String mechType, 219 java.lang.Class _javaType, 220 javax.xml.namespace.QName _xmlType) { 221 return 222 new org.apache.axis.encoding.ser.BeanDeserializer( 223 _javaType, _xmlType, typeDesc); 224 } 225 226 } 227 | Popular Tags |