1 7 8 package org.alfresco.repo.webservice.types; 9 10 public class ValueDefinition implements java.io.Serializable { 11 private java.lang.String name; 12 13 private java.lang.String title; 14 15 private java.lang.String description; 16 17 private java.lang.String dataType; 18 19 public ValueDefinition() { 20 } 21 22 public ValueDefinition( 23 java.lang.String name, 24 java.lang.String title, 25 java.lang.String description, 26 java.lang.String dataType) { 27 this.name = name; 28 this.title = title; 29 this.description = description; 30 this.dataType = dataType; 31 } 32 33 34 39 public java.lang.String getName() { 40 return name; 41 } 42 43 44 49 public void setName(java.lang.String name) { 50 this.name = name; 51 } 52 53 54 59 public java.lang.String getTitle() { 60 return title; 61 } 62 63 64 69 public void setTitle(java.lang.String title) { 70 this.title = title; 71 } 72 73 74 79 public java.lang.String getDescription() { 80 return description; 81 } 82 83 84 89 public void setDescription(java.lang.String description) { 90 this.description = description; 91 } 92 93 94 99 public java.lang.String getDataType() { 100 return dataType; 101 } 102 103 104 109 public void setDataType(java.lang.String dataType) { 110 this.dataType = dataType; 111 } 112 113 private java.lang.Object __equalsCalc = null; 114 public synchronized boolean equals(java.lang.Object obj) { 115 if (!(obj instanceof ValueDefinition)) return false; 116 ValueDefinition other = (ValueDefinition) 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.name==null && other.getName()==null) || 126 (this.name!=null && 127 this.name.equals(other.getName()))) && 128 ((this.title==null && other.getTitle()==null) || 129 (this.title!=null && 130 this.title.equals(other.getTitle()))) && 131 ((this.description==null && other.getDescription()==null) || 132 (this.description!=null && 133 this.description.equals(other.getDescription()))) && 134 ((this.dataType==null && other.getDataType()==null) || 135 (this.dataType!=null && 136 this.dataType.equals(other.getDataType()))); 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 (getName() != null) { 149 _hashCode += getName().hashCode(); 150 } 151 if (getTitle() != null) { 152 _hashCode += getTitle().hashCode(); 153 } 154 if (getDescription() != null) { 155 _hashCode += getDescription().hashCode(); 156 } 157 if (getDataType() != null) { 158 _hashCode += getDataType().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(ValueDefinition.class, true); 167 168 static { 169 typeDesc.setXmlType(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "ValueDefinition")); 170 org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc(); 171 elemField.setFieldName("name"); 172 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "name")); 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("title"); 178 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "title")); 179 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.w3.org/2001/XMLSchema", "string")); 180 elemField.setMinOccurs(0); 181 elemField.setNillable(false); 182 typeDesc.addFieldDesc(elemField); 183 elemField = new org.apache.axis.description.ElementDesc(); 184 elemField.setFieldName("description"); 185 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "description")); 186 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.w3.org/2001/XMLSchema", "string")); 187 elemField.setMinOccurs(0); 188 elemField.setNillable(false); 189 typeDesc.addFieldDesc(elemField); 190 elemField = new org.apache.axis.description.ElementDesc(); 191 elemField.setFieldName("dataType"); 192 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "dataType")); 193 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.w3.org/2001/XMLSchema", "string")); 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 |