1 7 8 package org.alfresco.repo.webservice.action; 9 10 public class RuleFilter implements java.io.Serializable { 11 private java.lang.String [] ids; 12 13 private java.lang.String [] ruleTypeNames; 14 15 private boolean includeInherited; 16 17 public RuleFilter() { 18 } 19 20 public RuleFilter( 21 java.lang.String [] ids, 22 java.lang.String [] ruleTypeNames, 23 boolean includeInherited) { 24 this.ids = ids; 25 this.ruleTypeNames = ruleTypeNames; 26 this.includeInherited = includeInherited; 27 } 28 29 30 35 public java.lang.String [] getIds() { 36 return ids; 37 } 38 39 40 45 public void setIds(java.lang.String [] ids) { 46 this.ids = ids; 47 } 48 49 public java.lang.String getIds(int i) { 50 return this.ids[i]; 51 } 52 53 public void setIds(int i, java.lang.String _value) { 54 this.ids[i] = _value; 55 } 56 57 58 63 public java.lang.String [] getRuleTypeNames() { 64 return ruleTypeNames; 65 } 66 67 68 73 public void setRuleTypeNames(java.lang.String [] ruleTypeNames) { 74 this.ruleTypeNames = ruleTypeNames; 75 } 76 77 public java.lang.String getRuleTypeNames(int i) { 78 return this.ruleTypeNames[i]; 79 } 80 81 public void setRuleTypeNames(int i, java.lang.String _value) { 82 this.ruleTypeNames[i] = _value; 83 } 84 85 86 91 public boolean isIncludeInherited() { 92 return includeInherited; 93 } 94 95 96 101 public void setIncludeInherited(boolean includeInherited) { 102 this.includeInherited = includeInherited; 103 } 104 105 private java.lang.Object __equalsCalc = null; 106 public synchronized boolean equals(java.lang.Object obj) { 107 if (!(obj instanceof RuleFilter)) return false; 108 RuleFilter other = (RuleFilter) obj; 109 if (obj == null) return false; 110 if (this == obj) return true; 111 if (__equalsCalc != null) { 112 return (__equalsCalc == obj); 113 } 114 __equalsCalc = obj; 115 boolean _equals; 116 _equals = true && 117 ((this.ids==null && other.getIds()==null) || 118 (this.ids!=null && 119 java.util.Arrays.equals(this.ids, other.getIds()))) && 120 ((this.ruleTypeNames==null && other.getRuleTypeNames()==null) || 121 (this.ruleTypeNames!=null && 122 java.util.Arrays.equals(this.ruleTypeNames, other.getRuleTypeNames()))) && 123 this.includeInherited == other.isIncludeInherited(); 124 __equalsCalc = null; 125 return _equals; 126 } 127 128 private boolean __hashCodeCalc = false; 129 public synchronized int hashCode() { 130 if (__hashCodeCalc) { 131 return 0; 132 } 133 __hashCodeCalc = true; 134 int _hashCode = 1; 135 if (getIds() != null) { 136 for (int i=0; 137 i<java.lang.reflect.Array.getLength(getIds()); 138 i++) { 139 java.lang.Object obj = java.lang.reflect.Array.get(getIds(), i); 140 if (obj != null && 141 !obj.getClass().isArray()) { 142 _hashCode += obj.hashCode(); 143 } 144 } 145 } 146 if (getRuleTypeNames() != null) { 147 for (int i=0; 148 i<java.lang.reflect.Array.getLength(getRuleTypeNames()); 149 i++) { 150 java.lang.Object obj = java.lang.reflect.Array.get(getRuleTypeNames(), i); 151 if (obj != null && 152 !obj.getClass().isArray()) { 153 _hashCode += obj.hashCode(); 154 } 155 } 156 } 157 _hashCode += (isIncludeInherited() ? Boolean.TRUE : Boolean.FALSE).hashCode(); 158 __hashCodeCalc = false; 159 return _hashCode; 160 } 161 162 private static org.apache.axis.description.TypeDesc typeDesc = 164 new org.apache.axis.description.TypeDesc(RuleFilter.class, true); 165 166 static { 167 typeDesc.setXmlType(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/service/action/1.0", "RuleFilter")); 168 org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc(); 169 elemField.setFieldName("ids"); 170 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/service/action/1.0", "ids")); 171 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.w3.org/2001/XMLSchema", "string")); 172 elemField.setMinOccurs(0); 173 elemField.setNillable(true); 174 elemField.setMaxOccursUnbounded(true); 175 typeDesc.addFieldDesc(elemField); 176 elemField = new org.apache.axis.description.ElementDesc(); 177 elemField.setFieldName("ruleTypeNames"); 178 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/service/action/1.0", "ruleTypeNames")); 179 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.w3.org/2001/XMLSchema", "string")); 180 elemField.setMinOccurs(0); 181 elemField.setNillable(true); 182 elemField.setMaxOccursUnbounded(true); 183 typeDesc.addFieldDesc(elemField); 184 elemField = new org.apache.axis.description.ElementDesc(); 185 elemField.setFieldName("includeInherited"); 186 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/service/action/1.0", "includeInherited")); 187 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.w3.org/2001/XMLSchema", "boolean")); 188 elemField.setNillable(false); 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 |