/** * Action.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 Action implements java.io.Serializable { private java.lang.String id; private org.alfresco.repo.webservice.action.ActionItemType type; private java.lang.String title; private java.lang.String description; private boolean executeAsynchronously; private org.alfresco.repo.webservice.types.NamedValue[] parameters; private org.alfresco.repo.webservice.action.Condition[] conditions; private org.alfresco.repo.webservice.action.Action compensatingAction; private org.alfresco.repo.webservice.action.Action[] actions; private org.alfresco.repo.webservice.types.Reference reference; public Action() { } public Action( java.lang.String id, org.alfresco.repo.webservice.action.ActionItemType type, java.lang.String title, java.lang.String description, boolean executeAsynchronously, org.alfresco.repo.webservice.types.NamedValue[] parameters, org.alfresco.repo.webservice.action.Condition[] conditions, org.alfresco.repo.webservice.action.Action compensatingAction, org.alfresco.repo.webservice.action.Action[] actions, org.alfresco.repo.webservice.types.Reference reference) { this.id = id; this.type = type; this.title = title; this.description = description; this.executeAsynchronously = executeAsynchronously; this.parameters = parameters; this.conditions = conditions; this.compensatingAction = compensatingAction; this.actions = actions; this.reference = reference; } /** * Gets the id value for this Action. * * @return id */ public java.lang.String getId() { return id; } /** * Sets the id value for this Action. * * @param id */ public void setId(java.lang.String id) { this.id = id; } /** * Gets the type value for this Action. * * @return type */ public org.alfresco.repo.webservice.action.ActionItemType getType() { return type; } /** * Sets the type value for this Action. * * @param type */ public void setType(org.alfresco.repo.webservice.action.ActionItemType type) { this.type = type; } /** * Gets the title value for this Action. * * @return title */ public java.lang.String getTitle() { return title; } /** * Sets the title value for this Action. * * @param title */ public void setTitle(java.lang.String title) { this.title = title; } /** * Gets the description value for this Action. * * @return description */ public java.lang.String getDescription() { return description; } /** * Sets the description value for this Action. * * @param description */ public void setDescription(java.lang.String description) { this.description = description; } /** * Gets the executeAsynchronously value for this Action. * * @return executeAsynchronously */ public boolean isExecuteAsynchronously() { return executeAsynchronously; } /** * Sets the executeAsynchronously value for this Action. * * @param executeAsynchronously */ public void setExecuteAsynchronously(boolean executeAsynchronously) { this.executeAsynchronously = executeAsynchronously; } /** * Gets the parameters value for this Action. * * @return parameters */ public org.alfresco.repo.webservice.types.NamedValue[] getParameters() { return parameters; } /** * Sets the parameters value for this Action. * * @param parameters */ public void setParameters(org.alfresco.repo.webservice.types.NamedValue[] parameters) { this.parameters = parameters; } public org.alfresco.repo.webservice.types.NamedValue getParameters(int i) { return this.parameters[i]; } public void setParameters(int i, org.alfresco.repo.webservice.types.NamedValue _value) { this.parameters[i] = _value; } /** * Gets the conditions value for this Action. * * @return conditions */ public org.alfresco.repo.webservice.action.Condition[] getConditions() { return conditions; } /** * Sets the conditions value for this Action. * * @param conditions */ public void setConditions(org.alfresco.repo.webservice.action.Condition[] conditions) { this.conditions = conditions; } public org.alfresco.repo.webservice.action.Condition getConditions(int i) { return this.conditions[i]; } public void setConditions(int i, org.alfresco.repo.webservice.action.Condition _value) { this.conditions[i] = _value; } /** * Gets the compensatingAction value for this Action. * * @return compensatingAction */ public org.alfresco.repo.webservice.action.Action getCompensatingAction() { return compensatingAction; } /** * Sets the compensatingAction value for this Action. * * @param compensatingAction */ public void setCompensatingAction(org.alfresco.repo.webservice.action.Action compensatingAction) { this.compensatingAction = compensatingAction; } /** * Gets the actions value for this Action. * * @return actions */ public org.alfresco.repo.webservice.action.Action[] getActions() { return actions; } /** * Sets the actions value for this Action. * * @param actions */ public void setActions(org.alfresco.repo.webservice.action.Action[] actions) { this.actions = actions; } public org.alfresco.repo.webservice.action.Action getActions(int i) { return this.actions[i]; } public void setActions(int i, org.alfresco.repo.webservice.action.Action _value) { this.actions[i] = _value; } /** * Gets the reference value for this Action. * * @return reference */ public org.alfresco.repo.webservice.types.Reference getReference() { return reference; } /** * Sets the reference value for this Action. * * @param reference */ public void setReference(org.alfresco.repo.webservice.types.Reference reference) { this.reference = reference; } private java.lang.Object __equalsCalc = null; public synchronized boolean equals(java.lang.Object obj) { if (!(obj instanceof Action)) return false; Action other = (Action) obj; if (obj == null) return false; if (this == obj) return true; if (__equalsCalc != null) { return (__equalsCalc == obj); } __equalsCalc = obj; boolean _equals; _equals = true && ((this.id==null && other.getId()==null) || (this.id!=null && this.id.equals(other.getId()))) && ((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.executeAsynchronously == other.isExecuteAsynchronously() && ((this.parameters==null && other.getParameters()==null) || (this.parameters!=null && java.util.Arrays.equals(this.parameters, other.getParameters()))) && ((this.conditions==null && other.getConditions()==null) || (this.conditions!=null && java.util.Arrays.equals(this.conditions, other.getConditions()))) && ((this.compensatingAction==null && other.getCompensatingAction()==null) || (this.compensatingAction!=null && this.compensatingAction.equals(other.getCompensatingAction()))) && ((this.actions==null && other.getActions()==null) || (this.actions!=null && java.util.Arrays.equals(this.actions, other.getActions()))) && ((this.reference==null && other.getReference()==null) || (this.reference!=null && this.reference.equals(other.getReference()))); __equalsCalc = null; return _equals; } private boolean __hashCodeCalc = false; public synchronized int hashCode() { if (__hashCodeCalc) { return 0; } __hashCodeCalc = true; int _hashCode = 1; if (getId() != null) { _hashCode += getId().hashCode(); } if (getType() != null) { _hashCode += getType().hashCode(); } if (getTitle() != null) { _hashCode += getTitle().hashCode(); } if (getDescription() != null) { _hashCode += getDescription().hashCode(); } _hashCode += (isExecuteAsynchronously() ? Boolean.TRUE : Boolean.FALSE).hashCode(); if (getParameters() != null) { for (int i=0; i