KickJava   Java API By Example, From Geeks To Geeks.

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


1 /**
2  * CMLCopy.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 CMLCopy implements java.io.Serializable JavaDoc {
11     private org.alfresco.example.webservice.types.ParentReference to;
12     private java.lang.String JavaDoc to_id;
13     private java.lang.String JavaDoc associationType;
14     private java.lang.String JavaDoc childName;
15     private org.alfresco.example.webservice.types.Predicate where;
16     private java.lang.String JavaDoc where_id;
17     private java.lang.Boolean JavaDoc children;
18
19     public CMLCopy() {
20     }
21
22     public CMLCopy(
23            org.alfresco.example.webservice.types.ParentReference to,
24            java.lang.String JavaDoc to_id,
25            java.lang.String JavaDoc associationType,
26            java.lang.String JavaDoc childName,
27            org.alfresco.example.webservice.types.Predicate where,
28            java.lang.String JavaDoc where_id,
29            java.lang.Boolean JavaDoc children) {
30            this.to = to;
31            this.to_id = to_id;
32            this.associationType = associationType;
33            this.childName = childName;
34            this.where = where;
35            this.where_id = where_id;
36            this.children = children;
37     }
38
39
40     /**
41      * Gets the to value for this CMLCopy.
42      *
43      * @return to
44      */

45     public org.alfresco.example.webservice.types.ParentReference getTo() {
46         return to;
47     }
48
49
50     /**
51      * Sets the to value for this CMLCopy.
52      *
53      * @param to
54      */

55     public void setTo(org.alfresco.example.webservice.types.ParentReference to) {
56         this.to = to;
57     }
58
59
60     /**
61      * Gets the to_id value for this CMLCopy.
62      *
63      * @return to_id
64      */

65     public java.lang.String JavaDoc getTo_id() {
66         return to_id;
67     }
68
69
70     /**
71      * Sets the to_id value for this CMLCopy.
72      *
73      * @param to_id
74      */

75     public void setTo_id(java.lang.String JavaDoc to_id) {
76         this.to_id = to_id;
77     }
78
79
80     /**
81      * Gets the associationType value for this CMLCopy.
82      *
83      * @return associationType
84      */

85     public java.lang.String JavaDoc getAssociationType() {
86         return associationType;
87     }
88
89
90     /**
91      * Sets the associationType value for this CMLCopy.
92      *
93      * @param associationType
94      */

95     public void setAssociationType(java.lang.String JavaDoc associationType) {
96         this.associationType = associationType;
97     }
98
99
100     /**
101      * Gets the childName value for this CMLCopy.
102      *
103      * @return childName
104      */

105     public java.lang.String JavaDoc getChildName() {
106         return childName;
107     }
108
109
110     /**
111      * Sets the childName value for this CMLCopy.
112      *
113      * @param childName
114      */

115     public void setChildName(java.lang.String JavaDoc childName) {
116         this.childName = childName;
117     }
118
119
120     /**
121      * Gets the where value for this CMLCopy.
122      *
123      * @return where
124      */

125     public org.alfresco.example.webservice.types.Predicate getWhere() {
126         return where;
127     }
128
129
130     /**
131      * Sets the where value for this CMLCopy.
132      *
133      * @param where
134      */

135     public void setWhere(org.alfresco.example.webservice.types.Predicate where) {
136         this.where = where;
137     }
138
139
140     /**
141      * Gets the where_id value for this CMLCopy.
142      *
143      * @return where_id
144      */

145     public java.lang.String JavaDoc getWhere_id() {
146         return where_id;
147     }
148
149
150     /**
151      * Sets the where_id value for this CMLCopy.
152      *
153      * @param where_id
154      */

155     public void setWhere_id(java.lang.String JavaDoc where_id) {
156         this.where_id = where_id;
157     }
158
159
160     /**
161      * Gets the children value for this CMLCopy.
162      *
163      * @return children
164      */

165     public java.lang.Boolean JavaDoc getChildren() {
166         return children;
167     }
168
169
170     /**
171      * Sets the children value for this CMLCopy.
172      *
173      * @param children
174      */

175     public void setChildren(java.lang.Boolean JavaDoc children) {
176         this.children = children;
177     }
178
179     private java.lang.Object JavaDoc __equalsCalc = null;
180     public synchronized boolean equals(java.lang.Object JavaDoc obj) {
181         if (!(obj instanceof CMLCopy)) return false;
182         CMLCopy other = (CMLCopy) obj;
183         if (obj == null) return false;
184         if (this == obj) return true;
185         if (__equalsCalc != null) {
186             return (__equalsCalc == obj);
187         }
188         __equalsCalc = obj;
189         boolean _equals;
190         _equals = true &&
191             ((this.to==null && other.getTo()==null) ||
192              (this.to!=null &&
193               this.to.equals(other.getTo()))) &&
194             ((this.to_id==null && other.getTo_id()==null) ||
195              (this.to_id!=null &&
196               this.to_id.equals(other.getTo_id()))) &&
197             ((this.associationType==null && other.getAssociationType()==null) ||
198              (this.associationType!=null &&
199               this.associationType.equals(other.getAssociationType()))) &&
200             ((this.childName==null && other.getChildName()==null) ||
201              (this.childName!=null &&
202               this.childName.equals(other.getChildName()))) &&
203             ((this.where==null && other.getWhere()==null) ||
204              (this.where!=null &&
205               this.where.equals(other.getWhere()))) &&
206             ((this.where_id==null && other.getWhere_id()==null) ||
207              (this.where_id!=null &&
208               this.where_id.equals(other.getWhere_id()))) &&
209             ((this.children==null && other.getChildren()==null) ||
210              (this.children!=null &&
211               this.children.equals(other.getChildren())));
212         __equalsCalc = null;
213         return _equals;
214     }
215
216     private boolean __hashCodeCalc = false;
217     public synchronized int hashCode() {
218         if (__hashCodeCalc) {
219             return 0;
220         }
221         __hashCodeCalc = true;
222         int _hashCode = 1;
223         if (getTo() != null) {
224             _hashCode += getTo().hashCode();
225         }
226         if (getTo_id() != null) {
227             _hashCode += getTo_id().hashCode();
228         }
229         if (getAssociationType() != null) {
230             _hashCode += getAssociationType().hashCode();
231         }
232         if (getChildName() != null) {
233             _hashCode += getChildName().hashCode();
234         }
235         if (getWhere() != null) {
236             _hashCode += getWhere().hashCode();
237         }
238         if (getWhere_id() != null) {
239             _hashCode += getWhere_id().hashCode();
240         }
241         if (getChildren() != null) {
242             _hashCode += getChildren().hashCode();
243         }
244         __hashCodeCalc = false;
245         return _hashCode;
246     }
247
248     // Type metadata
249
private static org.apache.axis.description.TypeDesc typeDesc =
250         new org.apache.axis.description.TypeDesc(CMLCopy.class, true);
251
252     static {
253         typeDesc.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/cml/1.0", ">CML>copy"));
254         org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
255         elemField.setFieldName("to");
256         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/cml/1.0", "to"));
257         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "ParentReference"));
258         elemField.setMinOccurs(0);
259         elemField.setNillable(false);
260         typeDesc.addFieldDesc(elemField);
261         elemField = new org.apache.axis.description.ElementDesc();
262         elemField.setFieldName("to_id");
263         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/cml/1.0", "to_id"));
264         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.w3.org/2001/XMLSchema", "string"));
265         elemField.setNillable(false);
266         typeDesc.addFieldDesc(elemField);
267         elemField = new org.apache.axis.description.ElementDesc();
268         elemField.setFieldName("associationType");
269         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "associationType"));
270         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "Name"));
271         elemField.setMinOccurs(0);
272         elemField.setNillable(false);
273         typeDesc.addFieldDesc(elemField);
274         elemField = new org.apache.axis.description.ElementDesc();
275         elemField.setFieldName("childName");
276         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "childName"));
277         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "Name"));
278         elemField.setMinOccurs(0);
279         elemField.setNillable(false);
280         typeDesc.addFieldDesc(elemField);
281         elemField = new org.apache.axis.description.ElementDesc();
282         elemField.setFieldName("where");
283         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/cml/1.0", "where"));
284         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "Predicate"));
285         elemField.setMinOccurs(0);
286         elemField.setNillable(false);
287         typeDesc.addFieldDesc(elemField);
288         elemField = new org.apache.axis.description.ElementDesc();
289         elemField.setFieldName("where_id");
290         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/cml/1.0", "where_id"));
291         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.w3.org/2001/XMLSchema", "string"));
292         elemField.setMinOccurs(0);
293         elemField.setNillable(false);
294         typeDesc.addFieldDesc(elemField);
295         elemField = new org.apache.axis.description.ElementDesc();
296         elemField.setFieldName("children");
297         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/cml/1.0", "children"));
298         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.w3.org/2001/XMLSchema", "boolean"));
299         elemField.setMinOccurs(0);
300         elemField.setNillable(false);
301         typeDesc.addFieldDesc(elemField);
302     }
303
304     /**
305      * Return type metadata object
306      */

307     public static org.apache.axis.description.TypeDesc getTypeDesc() {
308         return typeDesc;
309     }
310
311     /**
312      * Get Custom Serializer
313      */

314     public static org.apache.axis.encoding.Serializer getSerializer(
315            java.lang.String JavaDoc mechType,
316            java.lang.Class JavaDoc _javaType,
317            javax.xml.namespace.QName JavaDoc _xmlType) {
318         return
319           new org.apache.axis.encoding.ser.BeanSerializer(
320             _javaType, _xmlType, typeDesc);
321     }
322
323     /**
324      * Get Custom Deserializer
325      */

326     public static org.apache.axis.encoding.Deserializer getDeserializer(
327            java.lang.String JavaDoc mechType,
328            java.lang.Class JavaDoc _javaType,
329            javax.xml.namespace.QName JavaDoc _xmlType) {
330         return
331           new org.apache.axis.encoding.ser.BeanDeserializer(
332             _javaType, _xmlType, typeDesc);
333     }
334
335 }
336
Popular Tags