1 7 8 package org.alfresco.repo.webservice.action; 9 10 public class ParameterDefinition implements java.io.Serializable { 11 private java.lang.String name; 12 13 private java.lang.String type; 14 15 private boolean isMandatory; 16 17 private java.lang.String displayLabel; 18 19 public ParameterDefinition() { 20 } 21 22 public ParameterDefinition( 23 java.lang.String name, 24 java.lang.String type, 25 boolean isMandatory, 26 java.lang.String displayLabel) { 27 this.name = name; 28 this.type = type; 29 this.isMandatory = isMandatory; 30 this.displayLabel = displayLabel; 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 getType() { 60 return type; 61 } 62 63 64 69 public void setType(java.lang.String type) { 70 this.type = type; 71 } 72 73 74 79 public boolean isIsMandatory() { 80 return isMandatory; 81 } 82 83 84 89 public void setIsMandatory(boolean isMandatory) { 90 this.isMandatory = isMandatory; 91 } 92 93 94 99 public java.lang.String getDisplayLabel() { 100 return displayLabel; 101 } 102 103 104 109 public void setDisplayLabel(java.lang.String displayLabel) { 110 this.displayLabel = displayLabel; 111 } 112 113 private java.lang.Object __equalsCalc = null; 114 public synchronized boolean equals(java.lang.Object obj) { 115 if (!(obj instanceof ParameterDefinition)) return false; 116 ParameterDefinition other = (ParameterDefinition) 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.type==null && other.getType()==null) || 129 (this.type!=null && 130 this.type.equals(other.getType()))) && 131 this.isMandatory == other.isIsMandatory() && 132 ((this.displayLabel==null && other.getDisplayLabel()==null) || 133 (this.displayLabel!=null && 134 this.displayLabel.equals(other.getDisplayLabel()))); 135 __equalsCalc = null; 136 return _equals; 137 } 138 139 private boolean __hashCodeCalc = false; 140 public synchronized int hashCode() { 141 if (__hashCodeCalc) { 142 return 0; 143 } 144 __hashCodeCalc = true; 145 int _hashCode = 1; 146 if (getName() != null) { 147 _hashCode += getName().hashCode(); 148 } 149 if (getType() != null) { 150 _hashCode += getType().hashCode(); 151 } 152 _hashCode += (isIsMandatory() ? Boolean.TRUE : Boolean.FALSE).hashCode(); 153 if (getDisplayLabel() != null) { 154 _hashCode += getDisplayLabel().hashCode(); 155 } 156 __hashCodeCalc = false; 157 return _hashCode; 158 } 159 160 private static org.apache.axis.description.TypeDesc typeDesc = 162 new org.apache.axis.description.TypeDesc(ParameterDefinition.class, true); 163 164 static { 165 typeDesc.setXmlType(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/service/action/1.0", "ParameterDefinition")); 166 org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc(); 167 elemField.setFieldName("name"); 168 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/service/action/1.0", "name")); 169 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.w3.org/2001/XMLSchema", "string")); 170 elemField.setNillable(false); 171 typeDesc.addFieldDesc(elemField); 172 elemField = new org.apache.axis.description.ElementDesc(); 173 elemField.setFieldName("type"); 174 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/service/action/1.0", "type")); 175 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.w3.org/2001/XMLSchema", "string")); 176 elemField.setNillable(false); 177 typeDesc.addFieldDesc(elemField); 178 elemField = new org.apache.axis.description.ElementDesc(); 179 elemField.setFieldName("isMandatory"); 180 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/service/action/1.0", "isMandatory")); 181 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.w3.org/2001/XMLSchema", "boolean")); 182 elemField.setNillable(false); 183 typeDesc.addFieldDesc(elemField); 184 elemField = new org.apache.axis.description.ElementDesc(); 185 elemField.setFieldName("displayLabel"); 186 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/service/action/1.0", "displayLabel")); 187 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.w3.org/2001/XMLSchema", "string")); 188 elemField.setNillable(true); 189 typeDesc.addFieldDesc(elemField); 190 } 191 192 195 public static org.apache.axis.description.TypeDesc getTypeDesc() { 196 return typeDesc; 197 } 198 199 202 public static org.apache.axis.encoding.Serializer getSerializer( 203 java.lang.String mechType, 204 java.lang.Class _javaType, 205 javax.xml.namespace.QName _xmlType) { 206 return 207 new org.apache.axis.encoding.ser.BeanSerializer( 208 _javaType, _xmlType, typeDesc); 209 } 210 211 214 public static org.apache.axis.encoding.Deserializer getDeserializer( 215 java.lang.String mechType, 216 java.lang.Class _javaType, 217 javax.xml.namespace.QName _xmlType) { 218 return 219 new org.apache.axis.encoding.ser.BeanDeserializer( 220 _javaType, _xmlType, typeDesc); 221 } 222 223 } 224 | Popular Tags |