1 7 8 package org.alfresco.repo.webservice.action; 9 10 public class Condition implements java.io.Serializable { 11 private java.lang.String id; 12 13 private java.lang.String conditionName; 14 15 private boolean invertCondition; 16 17 private org.alfresco.repo.webservice.types.NamedValue[] parameters; 18 19 public Condition() { 20 } 21 22 public Condition( 23 java.lang.String id, 24 java.lang.String conditionName, 25 boolean invertCondition, 26 org.alfresco.repo.webservice.types.NamedValue[] parameters) { 27 this.id = id; 28 this.conditionName = conditionName; 29 this.invertCondition = invertCondition; 30 this.parameters = parameters; 31 } 32 33 34 39 public java.lang.String getId() { 40 return id; 41 } 42 43 44 49 public void setId(java.lang.String id) { 50 this.id = id; 51 } 52 53 54 59 public java.lang.String getConditionName() { 60 return conditionName; 61 } 62 63 64 69 public void setConditionName(java.lang.String conditionName) { 70 this.conditionName = conditionName; 71 } 72 73 74 79 public boolean isInvertCondition() { 80 return invertCondition; 81 } 82 83 84 89 public void setInvertCondition(boolean invertCondition) { 90 this.invertCondition = invertCondition; 91 } 92 93 94 99 public org.alfresco.repo.webservice.types.NamedValue[] getParameters() { 100 return parameters; 101 } 102 103 104 109 public void setParameters(org.alfresco.repo.webservice.types.NamedValue[] parameters) { 110 this.parameters = parameters; 111 } 112 113 public org.alfresco.repo.webservice.types.NamedValue getParameters(int i) { 114 return this.parameters[i]; 115 } 116 117 public void setParameters(int i, org.alfresco.repo.webservice.types.NamedValue _value) { 118 this.parameters[i] = _value; 119 } 120 121 private java.lang.Object __equalsCalc = null; 122 public synchronized boolean equals(java.lang.Object obj) { 123 if (!(obj instanceof Condition)) return false; 124 Condition other = (Condition) obj; 125 if (obj == null) return false; 126 if (this == obj) return true; 127 if (__equalsCalc != null) { 128 return (__equalsCalc == obj); 129 } 130 __equalsCalc = obj; 131 boolean _equals; 132 _equals = true && 133 ((this.id==null && other.getId()==null) || 134 (this.id!=null && 135 this.id.equals(other.getId()))) && 136 ((this.conditionName==null && other.getConditionName()==null) || 137 (this.conditionName!=null && 138 this.conditionName.equals(other.getConditionName()))) && 139 this.invertCondition == other.isInvertCondition() && 140 ((this.parameters==null && other.getParameters()==null) || 141 (this.parameters!=null && 142 java.util.Arrays.equals(this.parameters, other.getParameters()))); 143 __equalsCalc = null; 144 return _equals; 145 } 146 147 private boolean __hashCodeCalc = false; 148 public synchronized int hashCode() { 149 if (__hashCodeCalc) { 150 return 0; 151 } 152 __hashCodeCalc = true; 153 int _hashCode = 1; 154 if (getId() != null) { 155 _hashCode += getId().hashCode(); 156 } 157 if (getConditionName() != null) { 158 _hashCode += getConditionName().hashCode(); 159 } 160 _hashCode += (isInvertCondition() ? Boolean.TRUE : Boolean.FALSE).hashCode(); 161 if (getParameters() != null) { 162 for (int i=0; 163 i<java.lang.reflect.Array.getLength(getParameters()); 164 i++) { 165 java.lang.Object obj = java.lang.reflect.Array.get(getParameters(), i); 166 if (obj != null && 167 !obj.getClass().isArray()) { 168 _hashCode += obj.hashCode(); 169 } 170 } 171 } 172 __hashCodeCalc = false; 173 return _hashCode; 174 } 175 176 private static org.apache.axis.description.TypeDesc typeDesc = 178 new org.apache.axis.description.TypeDesc(Condition.class, true); 179 180 static { 181 typeDesc.setXmlType(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/service/action/1.0", "Condition")); 182 org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc(); 183 elemField.setFieldName("id"); 184 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/service/action/1.0", "id")); 185 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.w3.org/2001/XMLSchema", "string")); 186 elemField.setNillable(false); 187 typeDesc.addFieldDesc(elemField); 188 elemField = new org.apache.axis.description.ElementDesc(); 189 elemField.setFieldName("conditionName"); 190 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/service/action/1.0", "conditionName")); 191 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.w3.org/2001/XMLSchema", "string")); 192 elemField.setNillable(false); 193 typeDesc.addFieldDesc(elemField); 194 elemField = new org.apache.axis.description.ElementDesc(); 195 elemField.setFieldName("invertCondition"); 196 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/service/action/1.0", "invertCondition")); 197 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.w3.org/2001/XMLSchema", "boolean")); 198 elemField.setNillable(false); 199 typeDesc.addFieldDesc(elemField); 200 elemField = new org.apache.axis.description.ElementDesc(); 201 elemField.setFieldName("parameters"); 202 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/service/action/1.0", "parameters")); 203 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "NamedValue")); 204 elemField.setMinOccurs(0); 205 elemField.setNillable(true); 206 elemField.setMaxOccursUnbounded(true); 207 typeDesc.addFieldDesc(elemField); 208 } 209 210 213 public static org.apache.axis.description.TypeDesc getTypeDesc() { 214 return typeDesc; 215 } 216 217 220 public static org.apache.axis.encoding.Serializer getSerializer( 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.BeanSerializer( 226 _javaType, _xmlType, typeDesc); 227 } 228 229 232 public static org.apache.axis.encoding.Deserializer getDeserializer( 233 java.lang.String mechType, 234 java.lang.Class _javaType, 235 javax.xml.namespace.QName _xmlType) { 236 return 237 new org.apache.axis.encoding.ser.BeanDeserializer( 238 _javaType, _xmlType, typeDesc); 239 } 240 241 } 242 | Popular Tags |