KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > alfresco > repo > webservice > types > Predicate


1 /**
2  * Predicate.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.types;
9
10 public class Predicate implements java.io.Serializable JavaDoc {
11     private org.alfresco.repo.webservice.types.Reference[] nodes;
12
13     private org.alfresco.repo.webservice.types.Store store;
14
15     private org.alfresco.repo.webservice.types.Query query;
16
17     public Predicate() {
18     }
19
20     public Predicate(
21            org.alfresco.repo.webservice.types.Reference[] nodes,
22            org.alfresco.repo.webservice.types.Store store,
23            org.alfresco.repo.webservice.types.Query query) {
24            this.nodes = nodes;
25            this.store = store;
26            this.query = query;
27     }
28
29
30     /**
31      * Gets the nodes value for this Predicate.
32      *
33      * @return nodes
34      */

35     public org.alfresco.repo.webservice.types.Reference[] getNodes() {
36         return nodes;
37     }
38
39
40     /**
41      * Sets the nodes value for this Predicate.
42      *
43      * @param nodes
44      */

45     public void setNodes(org.alfresco.repo.webservice.types.Reference[] nodes) {
46         this.nodes = nodes;
47     }
48
49     public org.alfresco.repo.webservice.types.Reference getNodes(int i) {
50         return this.nodes[i];
51     }
52
53     public void setNodes(int i, org.alfresco.repo.webservice.types.Reference _value) {
54         this.nodes[i] = _value;
55     }
56
57
58     /**
59      * Gets the store value for this Predicate.
60      *
61      * @return store
62      */

63     public org.alfresco.repo.webservice.types.Store getStore() {
64         return store;
65     }
66
67
68     /**
69      * Sets the store value for this Predicate.
70      *
71      * @param store
72      */

73     public void setStore(org.alfresco.repo.webservice.types.Store store) {
74         this.store = store;
75     }
76
77
78     /**
79      * Gets the query value for this Predicate.
80      *
81      * @return query
82      */

83     public org.alfresco.repo.webservice.types.Query getQuery() {
84         return query;
85     }
86
87
88     /**
89      * Sets the query value for this Predicate.
90      *
91      * @param query
92      */

93     public void setQuery(org.alfresco.repo.webservice.types.Query query) {
94         this.query = query;
95     }
96
97     private java.lang.Object JavaDoc __equalsCalc = null;
98     public synchronized boolean equals(java.lang.Object JavaDoc obj) {
99         if (!(obj instanceof Predicate)) return false;
100         Predicate other = (Predicate) obj;
101         if (obj == null) return false;
102         if (this == obj) return true;
103         if (__equalsCalc != null) {
104             return (__equalsCalc == obj);
105         }
106         __equalsCalc = obj;
107         boolean _equals;
108         _equals = true &&
109             ((this.nodes==null && other.getNodes()==null) ||
110              (this.nodes!=null &&
111               java.util.Arrays.equals(this.nodes, other.getNodes()))) &&
112             ((this.store==null && other.getStore()==null) ||
113              (this.store!=null &&
114               this.store.equals(other.getStore()))) &&
115             ((this.query==null && other.getQuery()==null) ||
116              (this.query!=null &&
117               this.query.equals(other.getQuery())));
118         __equalsCalc = null;
119         return _equals;
120     }
121
122     private boolean __hashCodeCalc = false;
123     public synchronized int hashCode() {
124         if (__hashCodeCalc) {
125             return 0;
126         }
127         __hashCodeCalc = true;
128         int _hashCode = 1;
129         if (getNodes() != null) {
130             for (int i=0;
131                  i<java.lang.reflect.Array.getLength(getNodes());
132                  i++) {
133                 java.lang.Object JavaDoc obj = java.lang.reflect.Array.get(getNodes(), i);
134                 if (obj != null &&
135                     !obj.getClass().isArray()) {
136                     _hashCode += obj.hashCode();
137                 }
138             }
139         }
140         if (getStore() != null) {
141             _hashCode += getStore().hashCode();
142         }
143         if (getQuery() != null) {
144             _hashCode += getQuery().hashCode();
145         }
146         __hashCodeCalc = false;
147         return _hashCode;
148     }
149
150     // Type metadata
151
private static org.apache.axis.description.TypeDesc typeDesc =
152         new org.apache.axis.description.TypeDesc(Predicate.class, true);
153
154     static {
155         typeDesc.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "Predicate"));
156         org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
157         elemField.setFieldName("nodes");
158         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "nodes"));
159         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "Reference"));
160         elemField.setMinOccurs(0);
161         elemField.setNillable(true);
162         elemField.setMaxOccursUnbounded(true);
163         typeDesc.addFieldDesc(elemField);
164         elemField = new org.apache.axis.description.ElementDesc();
165         elemField.setFieldName("store");
166         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "store"));
167         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "Store"));
168         elemField.setMinOccurs(0);
169         elemField.setNillable(true);
170         typeDesc.addFieldDesc(elemField);
171         elemField = new org.apache.axis.description.ElementDesc();
172         elemField.setFieldName("query");
173         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "query"));
174         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "Query"));
175         elemField.setMinOccurs(0);
176         elemField.setNillable(true);
177         typeDesc.addFieldDesc(elemField);
178     }
179
180     /**
181      * Return type metadata object
182      */

183     public static org.apache.axis.description.TypeDesc getTypeDesc() {
184         return typeDesc;
185     }
186
187     /**
188      * Get Custom Serializer
189      */

190     public static org.apache.axis.encoding.Serializer getSerializer(
191            java.lang.String JavaDoc mechType,
192            java.lang.Class JavaDoc _javaType,
193            javax.xml.namespace.QName JavaDoc _xmlType) {
194         return
195           new org.apache.axis.encoding.ser.BeanSerializer(
196             _javaType, _xmlType, typeDesc);
197     }
198
199     /**
200      * Get Custom Deserializer
201      */

202     public static org.apache.axis.encoding.Deserializer getDeserializer(
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.BeanDeserializer(
208             _javaType, _xmlType, typeDesc);
209     }
210
211 }
212
Popular Tags