1 7 8 package org.alfresco.repo.webservice.action; 9 10 public class ActionItemDefinition implements java.io.Serializable { 11 private java.lang.String name; 12 13 private org.alfresco.repo.webservice.action.ActionItemDefinitionType type; 14 15 private java.lang.String title; 16 17 private java.lang.String description; 18 19 private boolean adHocPropertiesAllowed; 20 21 private org.alfresco.repo.webservice.action.ParameterDefinition[] parameterDefinition; 22 23 public ActionItemDefinition() { 24 } 25 26 public ActionItemDefinition( 27 java.lang.String name, 28 org.alfresco.repo.webservice.action.ActionItemDefinitionType type, 29 java.lang.String title, 30 java.lang.String description, 31 boolean adHocPropertiesAllowed, 32 org.alfresco.repo.webservice.action.ParameterDefinition[] parameterDefinition) { 33 this.name = name; 34 this.type = type; 35 this.title = title; 36 this.description = description; 37 this.adHocPropertiesAllowed = adHocPropertiesAllowed; 38 this.parameterDefinition = parameterDefinition; 39 } 40 41 42 47 public java.lang.String getName() { 48 return name; 49 } 50 51 52 57 public void setName(java.lang.String name) { 58 this.name = name; 59 } 60 61 62 67 public org.alfresco.repo.webservice.action.ActionItemDefinitionType getType() { 68 return type; 69 } 70 71 72 77 public void setType(org.alfresco.repo.webservice.action.ActionItemDefinitionType type) { 78 this.type = type; 79 } 80 81 82 87 public java.lang.String getTitle() { 88 return title; 89 } 90 91 92 97 public void setTitle(java.lang.String title) { 98 this.title = title; 99 } 100 101 102 107 public java.lang.String getDescription() { 108 return description; 109 } 110 111 112 117 public void setDescription(java.lang.String description) { 118 this.description = description; 119 } 120 121 122 127 public boolean isAdHocPropertiesAllowed() { 128 return adHocPropertiesAllowed; 129 } 130 131 132 137 public void setAdHocPropertiesAllowed(boolean adHocPropertiesAllowed) { 138 this.adHocPropertiesAllowed = adHocPropertiesAllowed; 139 } 140 141 142 147 public org.alfresco.repo.webservice.action.ParameterDefinition[] getParameterDefinition() { 148 return parameterDefinition; 149 } 150 151 152 157 public void setParameterDefinition(org.alfresco.repo.webservice.action.ParameterDefinition[] parameterDefinition) { 158 this.parameterDefinition = parameterDefinition; 159 } 160 161 public org.alfresco.repo.webservice.action.ParameterDefinition getParameterDefinition(int i) { 162 return this.parameterDefinition[i]; 163 } 164 165 public void setParameterDefinition(int i, org.alfresco.repo.webservice.action.ParameterDefinition _value) { 166 this.parameterDefinition[i] = _value; 167 } 168 169 private java.lang.Object __equalsCalc = null; 170 public synchronized boolean equals(java.lang.Object obj) { 171 if (!(obj instanceof ActionItemDefinition)) return false; 172 ActionItemDefinition other = (ActionItemDefinition) obj; 173 if (obj == null) return false; 174 if (this == obj) return true; 175 if (__equalsCalc != null) { 176 return (__equalsCalc == obj); 177 } 178 __equalsCalc = obj; 179 boolean _equals; 180 _equals = true && 181 ((this.name==null && other.getName()==null) || 182 (this.name!=null && 183 this.name.equals(other.getName()))) && 184 ((this.type==null && other.getType()==null) || 185 (this.type!=null && 186 this.type.equals(other.getType()))) && 187 ((this.title==null && other.getTitle()==null) || 188 (this.title!=null && 189 this.title.equals(other.getTitle()))) && 190 ((this.description==null && other.getDescription()==null) || 191 (this.description!=null && 192 this.description.equals(other.getDescription()))) && 193 this.adHocPropertiesAllowed == other.isAdHocPropertiesAllowed() && 194 ((this.parameterDefinition==null && other.getParameterDefinition()==null) || 195 (this.parameterDefinition!=null && 196 java.util.Arrays.equals(this.parameterDefinition, other.getParameterDefinition()))); 197 __equalsCalc = null; 198 return _equals; 199 } 200 201 private boolean __hashCodeCalc = false; 202 public synchronized int hashCode() { 203 if (__hashCodeCalc) { 204 return 0; 205 } 206 __hashCodeCalc = true; 207 int _hashCode = 1; 208 if (getName() != null) { 209 _hashCode += getName().hashCode(); 210 } 211 if (getType() != null) { 212 _hashCode += getType().hashCode(); 213 } 214 if (getTitle() != null) { 215 _hashCode += getTitle().hashCode(); 216 } 217 if (getDescription() != null) { 218 _hashCode += getDescription().hashCode(); 219 } 220 _hashCode += (isAdHocPropertiesAllowed() ? Boolean.TRUE : Boolean.FALSE).hashCode(); 221 if (getParameterDefinition() != null) { 222 for (int i=0; 223 i<java.lang.reflect.Array.getLength(getParameterDefinition()); 224 i++) { 225 java.lang.Object obj = java.lang.reflect.Array.get(getParameterDefinition(), i); 226 if (obj != null && 227 !obj.getClass().isArray()) { 228 _hashCode += obj.hashCode(); 229 } 230 } 231 } 232 __hashCodeCalc = false; 233 return _hashCode; 234 } 235 236 private static org.apache.axis.description.TypeDesc typeDesc = 238 new org.apache.axis.description.TypeDesc(ActionItemDefinition.class, true); 239 240 static { 241 typeDesc.setXmlType(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/service/action/1.0", "ActionItemDefinition")); 242 org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc(); 243 elemField.setFieldName("name"); 244 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/service/action/1.0", "name")); 245 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.w3.org/2001/XMLSchema", "string")); 246 elemField.setNillable(false); 247 typeDesc.addFieldDesc(elemField); 248 elemField = new org.apache.axis.description.ElementDesc(); 249 elemField.setFieldName("type"); 250 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/service/action/1.0", "type")); 251 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/service/action/1.0", "ActionItemDefinitionType")); 252 elemField.setNillable(false); 253 typeDesc.addFieldDesc(elemField); 254 elemField = new org.apache.axis.description.ElementDesc(); 255 elemField.setFieldName("title"); 256 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/service/action/1.0", "title")); 257 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.w3.org/2001/XMLSchema", "string")); 258 elemField.setNillable(false); 259 typeDesc.addFieldDesc(elemField); 260 elemField = new org.apache.axis.description.ElementDesc(); 261 elemField.setFieldName("description"); 262 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/service/action/1.0", "description")); 263 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.w3.org/2001/XMLSchema", "string")); 264 elemField.setNillable(true); 265 typeDesc.addFieldDesc(elemField); 266 elemField = new org.apache.axis.description.ElementDesc(); 267 elemField.setFieldName("adHocPropertiesAllowed"); 268 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/service/action/1.0", "adHocPropertiesAllowed")); 269 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.w3.org/2001/XMLSchema", "boolean")); 270 elemField.setNillable(false); 271 typeDesc.addFieldDesc(elemField); 272 elemField = new org.apache.axis.description.ElementDesc(); 273 elemField.setFieldName("parameterDefinition"); 274 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/service/action/1.0", "parameterDefinition")); 275 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/service/action/1.0", "ParameterDefinition")); 276 elemField.setMinOccurs(0); 277 elemField.setNillable(true); 278 elemField.setMaxOccursUnbounded(true); 279 typeDesc.addFieldDesc(elemField); 280 } 281 282 285 public static org.apache.axis.description.TypeDesc getTypeDesc() { 286 return typeDesc; 287 } 288 289 292 public static org.apache.axis.encoding.Serializer getSerializer( 293 java.lang.String mechType, 294 java.lang.Class _javaType, 295 javax.xml.namespace.QName _xmlType) { 296 return 297 new org.apache.axis.encoding.ser.BeanSerializer( 298 _javaType, _xmlType, typeDesc); 299 } 300 301 304 public static org.apache.axis.encoding.Deserializer getDeserializer( 305 java.lang.String mechType, 306 java.lang.Class _javaType, 307 javax.xml.namespace.QName _xmlType) { 308 return 309 new org.apache.axis.encoding.ser.BeanDeserializer( 310 _javaType, _xmlType, typeDesc); 311 } 312 313 } 314 | Popular Tags |