KickJava   Java API By Example, From Geeks To Geeks.

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


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

51     public org.alfresco.repo.webservice.types.ParentReference getTo() {
52         return to;
53     }
54
55
56     /**
57      * Sets the to value for this CMLCopy.
58      *
59      * @param to
60      */

61     public void setTo(org.alfresco.repo.webservice.types.ParentReference to) {
62         this.to = to;
63     }
64
65
66     /**
67      * Gets the to_id value for this CMLCopy.
68      *
69      * @return to_id
70      */

71     public java.lang.String JavaDoc getTo_id() {
72         return to_id;
73     }
74
75
76     /**
77      * Sets the to_id value for this CMLCopy.
78      *
79      * @param to_id
80      */

81     public void setTo_id(java.lang.String JavaDoc to_id) {
82         this.to_id = to_id;
83     }
84
85
86     /**
87      * Gets the associationType value for this CMLCopy.
88      *
89      * @return associationType
90      */

91     public java.lang.String JavaDoc getAssociationType() {
92         return associationType;
93     }
94
95
96     /**
97      * Sets the associationType value for this CMLCopy.
98      *
99      * @param associationType
100      */

101     public void setAssociationType(java.lang.String JavaDoc associationType) {
102         this.associationType = associationType;
103     }
104
105
106     /**
107      * Gets the childName value for this CMLCopy.
108      *
109      * @return childName
110      */

111     public java.lang.String JavaDoc getChildName() {
112         return childName;
113     }
114
115
116     /**
117      * Sets the childName value for this CMLCopy.
118      *
119      * @param childName
120      */

121     public void setChildName(java.lang.String JavaDoc childName) {
122         this.childName = childName;
123     }
124
125
126     /**
127      * Gets the where value for this CMLCopy.
128      *
129      * @return where
130      */

131     public org.alfresco.repo.webservice.types.Predicate getWhere() {
132         return where;
133     }
134
135
136     /**
137      * Sets the where value for this CMLCopy.
138      *
139      * @param where
140      */

141     public void setWhere(org.alfresco.repo.webservice.types.Predicate where) {
142         this.where = where;
143     }
144
145
146     /**
147      * Gets the where_id value for this CMLCopy.
148      *
149      * @return where_id
150      */

151     public java.lang.String JavaDoc getWhere_id() {
152         return where_id;
153     }
154
155
156     /**
157      * Sets the where_id value for this CMLCopy.
158      *
159      * @param where_id
160      */

161     public void setWhere_id(java.lang.String JavaDoc where_id) {
162         this.where_id = where_id;
163     }
164
165
166     /**
167      * Gets the children value for this CMLCopy.
168      *
169      * @return children
170      */

171     public java.lang.Boolean JavaDoc getChildren() {
172         return children;
173     }
174
175
176     /**
177      * Sets the children value for this CMLCopy.
178      *
179      * @param children
180      */

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

313     public static org.apache.axis.description.TypeDesc getTypeDesc() {
314         return typeDesc;
315     }
316
317     /**
318      * Get Custom Serializer
319      */

320     public static org.apache.axis.encoding.Serializer getSerializer(
321            java.lang.String JavaDoc mechType,
322            java.lang.Class JavaDoc _javaType,
323            javax.xml.namespace.QName JavaDoc _xmlType) {
324         return
325           new org.apache.axis.encoding.ser.BeanSerializer(
326             _javaType, _xmlType, typeDesc);
327     }
328
329     /**
330      * Get Custom Deserializer
331      */

332     public static org.apache.axis.encoding.Deserializer getDeserializer(
333            java.lang.String JavaDoc mechType,
334            java.lang.Class JavaDoc _javaType,
335            javax.xml.namespace.QName JavaDoc _xmlType) {
336         return
337           new org.apache.axis.encoding.ser.BeanDeserializer(
338             _javaType, _xmlType, typeDesc);
339     }
340
341 }
342
Popular Tags