KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > alfresco > repo > webservice > action > RuleFilter


1 /**
2  * RuleFilter.java
3  *
4  * This file was auto-generated from WSDL
5  * by the Apache Axis 1.3 Oct 05, 2005 (05:23:37 EDT) WSDL2Java emitter.
6  */

7
8 package org.alfresco.repo.webservice.action;
9
10 public class RuleFilter implements java.io.Serializable JavaDoc {
11     private java.lang.String JavaDoc[] ids;
12
13     private java.lang.String JavaDoc[] ruleTypeNames;
14
15     private boolean includeInherited;
16
17     public RuleFilter() {
18     }
19
20     public RuleFilter(
21            java.lang.String JavaDoc[] ids,
22            java.lang.String JavaDoc[] ruleTypeNames,
23            boolean includeInherited) {
24            this.ids = ids;
25            this.ruleTypeNames = ruleTypeNames;
26            this.includeInherited = includeInherited;
27     }
28
29
30     /**
31      * Gets the ids value for this RuleFilter.
32      *
33      * @return ids
34      */

35     public java.lang.String JavaDoc[] getIds() {
36         return ids;
37     }
38
39
40     /**
41      * Sets the ids value for this RuleFilter.
42      *
43      * @param ids
44      */

45     public void setIds(java.lang.String JavaDoc[] ids) {
46         this.ids = ids;
47     }
48
49     public java.lang.String JavaDoc getIds(int i) {
50         return this.ids[i];
51     }
52
53     public void setIds(int i, java.lang.String JavaDoc _value) {
54         this.ids[i] = _value;
55     }
56
57
58     /**
59      * Gets the ruleTypeNames value for this RuleFilter.
60      *
61      * @return ruleTypeNames
62      */

63     public java.lang.String JavaDoc[] getRuleTypeNames() {
64         return ruleTypeNames;
65     }
66
67
68     /**
69      * Sets the ruleTypeNames value for this RuleFilter.
70      *
71      * @param ruleTypeNames
72      */

73     public void setRuleTypeNames(java.lang.String JavaDoc[] ruleTypeNames) {
74         this.ruleTypeNames = ruleTypeNames;
75     }
76
77     public java.lang.String JavaDoc getRuleTypeNames(int i) {
78         return this.ruleTypeNames[i];
79     }
80
81     public void setRuleTypeNames(int i, java.lang.String JavaDoc _value) {
82         this.ruleTypeNames[i] = _value;
83     }
84
85
86     /**
87      * Gets the includeInherited value for this RuleFilter.
88      *
89      * @return includeInherited
90      */

91     public boolean isIncludeInherited() {
92         return includeInherited;
93     }
94
95
96     /**
97      * Sets the includeInherited value for this RuleFilter.
98      *
99      * @param includeInherited
100      */

101     public void setIncludeInherited(boolean includeInherited) {
102         this.includeInherited = includeInherited;
103     }
104
105     private java.lang.Object JavaDoc __equalsCalc = null;
106     public synchronized boolean equals(java.lang.Object JavaDoc 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 JavaDoc 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 JavaDoc 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     // Type metadata
163
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 JavaDoc("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 JavaDoc("http://www.alfresco.org/ws/service/action/1.0", "ids"));
171         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("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 JavaDoc("http://www.alfresco.org/ws/service/action/1.0", "ruleTypeNames"));
179         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("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 JavaDoc("http://www.alfresco.org/ws/service/action/1.0", "includeInherited"));
187         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.w3.org/2001/XMLSchema", "boolean"));
188         elemField.setNillable(false);
189         typeDesc.addFieldDesc(elemField);
190     }
191
192     /**
193      * Return type metadata object
194      */

195     public static org.apache.axis.description.TypeDesc getTypeDesc() {
196         return typeDesc;
197     }
198
199     /**
200      * Get Custom Serializer
201      */

202     public static org.apache.axis.encoding.Serializer getSerializer(
203            java.lang.String JavaDoc mechType,
204            java.lang.Class JavaDoc _javaType,
205            javax.xml.namespace.QName JavaDoc _xmlType) {
206         return
207           new org.apache.axis.encoding.ser.BeanSerializer(
208             _javaType, _xmlType, typeDesc);
209     }
210
211     /**
212      * Get Custom Deserializer
213      */

214     public static org.apache.axis.encoding.Deserializer getDeserializer(
215            java.lang.String JavaDoc mechType,
216            java.lang.Class JavaDoc _javaType,
217            javax.xml.namespace.QName JavaDoc _xmlType) {
218         return
219           new org.apache.axis.encoding.ser.BeanDeserializer(
220             _javaType, _xmlType, typeDesc);
221     }
222
223 }
224
Popular Tags