/** * ActionItemDefinition.java * * This file was auto-generated from WSDL * by the Apache Axis 1.2.1 Jun 14, 2005 (09:15:57 EDT) WSDL2Java emitter. */ package org.alfresco.repo.webservice.action; public class ActionItemDefinition implements java.io.Serializable { private java.lang.String name; private org.alfresco.repo.webservice.action.ActionItemDefinitionType type; private java.lang.String title; private java.lang.String description; private boolean adHocPropertiesAllowed; private org.alfresco.repo.webservice.action.ParameterDefinition[] parameterDefinition; public ActionItemDefinition() { } public ActionItemDefinition( java.lang.String name, org.alfresco.repo.webservice.action.ActionItemDefinitionType type, java.lang.String title, java.lang.String description, boolean adHocPropertiesAllowed, org.alfresco.repo.webservice.action.ParameterDefinition[] parameterDefinition) { this.name = name; this.type = type; this.title = title; this.description = description; this.adHocPropertiesAllowed = adHocPropertiesAllowed; this.parameterDefinition = parameterDefinition; } /** * Gets the name value for this ActionItemDefinition. * * @return name */ public java.lang.String getName() { return name; } /** * Sets the name value for this ActionItemDefinition. * * @param name */ public void setName(java.lang.String name) { this.name = name; } /** * Gets the type value for this ActionItemDefinition. * * @return type */ public org.alfresco.repo.webservice.action.ActionItemDefinitionType getType() { return type; } /** * Sets the type value for this ActionItemDefinition. * * @param type */ public void setType(org.alfresco.repo.webservice.action.ActionItemDefinitionType type) { this.type = type; } /** * Gets the title value for this ActionItemDefinition. * * @return title */ public java.lang.String getTitle() { return title; } /** * Sets the title value for this ActionItemDefinition. * * @param title */ public void setTitle(java.lang.String title) { this.title = title; } /** * Gets the description value for this ActionItemDefinition. * * @return description */ public java.lang.String getDescription() { return description; } /** * Sets the description value for this ActionItemDefinition. * * @param description */ public void setDescription(java.lang.String description) { this.description = description; } /** * Gets the adHocPropertiesAllowed value for this ActionItemDefinition. * * @return adHocPropertiesAllowed */ public boolean isAdHocPropertiesAllowed() { return adHocPropertiesAllowed; } /** * Sets the adHocPropertiesAllowed value for this ActionItemDefinition. * * @param adHocPropertiesAllowed */ public void setAdHocPropertiesAllowed(boolean adHocPropertiesAllowed) { this.adHocPropertiesAllowed = adHocPropertiesAllowed; } /** * Gets the parameterDefinition value for this ActionItemDefinition. * * @return parameterDefinition */ public org.alfresco.repo.webservice.action.ParameterDefinition[] getParameterDefinition() { return parameterDefinition; } /** * Sets the parameterDefinition value for this ActionItemDefinition. * * @param parameterDefinition */ public void setParameterDefinition(org.alfresco.repo.webservice.action.ParameterDefinition[] parameterDefinition) { this.parameterDefinition = parameterDefinition; } public org.alfresco.repo.webservice.action.ParameterDefinition getParameterDefinition(int i) { return this.parameterDefinition[i]; } public void setParameterDefinition(int i, org.alfresco.repo.webservice.action.ParameterDefinition _value) { this.parameterDefinition[i] = _value; } private java.lang.Object __equalsCalc = null; public synchronized boolean equals(java.lang.Object obj) { if (!(obj instanceof ActionItemDefinition)) return false; ActionItemDefinition other = (ActionItemDefinition) obj; if (obj == null) return false; if (this == obj) return true; if (__equalsCalc != null) { return (__equalsCalc == obj); } __equalsCalc = obj; boolean _equals; _equals = true && ((this.name==null && other.getName()==null) || (this.name!=null && this.name.equals(other.getName()))) && ((this.type==null && other.getType()==null) || (this.type!=null && this.type.equals(other.getType()))) && ((this.title==null && other.getTitle()==null) || (this.title!=null && this.title.equals(other.getTitle()))) && ((this.description==null && other.getDescription()==null) || (this.description!=null && this.description.equals(other.getDescription()))) && this.adHocPropertiesAllowed == other.isAdHocPropertiesAllowed() && ((this.parameterDefinition==null && other.getParameterDefinition()==null) || (this.parameterDefinition!=null && java.util.Arrays.equals(this.parameterDefinition, other.getParameterDefinition()))); __equalsCalc = null; return _equals; } private boolean __hashCodeCalc = false; public synchronized int hashCode() { if (__hashCodeCalc) { return 0; } __hashCodeCalc = true; int _hashCode = 1; if (getName() != null) { _hashCode += getName().hashCode(); } if (getType() != null) { _hashCode += getType().hashCode(); } if (getTitle() != null) { _hashCode += getTitle().hashCode(); } if (getDescription() != null) { _hashCode += getDescription().hashCode(); } _hashCode += (isAdHocPropertiesAllowed() ? Boolean.TRUE : Boolean.FALSE).hashCode(); if (getParameterDefinition() != null) { for (int i=0; i