KickJava   Java API By Example, From Geeks To Geeks.

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


1 /**
2  * Predicate.java
3  *
4  * This file was auto-generated from WSDL
5  * by the Apache Axis 1.2.1 Jun 14, 2005 (09:15:57 EDT) WSDL2Java emitter.
6  */

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

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

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

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

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

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

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

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

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

200     public static org.apache.axis.encoding.Deserializer getDeserializer(
201            java.lang.String JavaDoc mechType,
202            java.lang.Class JavaDoc _javaType,
203            javax.xml.namespace.QName JavaDoc _xmlType) {
204         return
205           new org.apache.axis.encoding.ser.BeanDeserializer(
206             _javaType, _xmlType, typeDesc);
207     }
208
209 }
210
Popular Tags