KickJava   Java API By Example, From Geeks To Geeks.

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


1 /**
2  * CML.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 CML implements java.io.Serializable JavaDoc {
11     private org.alfresco.example.webservice.types.CMLCreate[] create;
12     private org.alfresco.example.webservice.types.CMLAddAspect[] addAspect;
13     private org.alfresco.example.webservice.types.CMLUpdate[] update;
14     private org.alfresco.example.webservice.types.CMLDelete[] delete;
15     private org.alfresco.example.webservice.types.CMLMove[] move;
16     private org.alfresco.example.webservice.types.CMLCopy[] copy;
17     private org.alfresco.example.webservice.types.CMLAddChild[] addChild;
18     private org.alfresco.example.webservice.types.CMLRemoveChild[] removeChild;
19     private org.alfresco.example.webservice.types.CMLCreateAssociation[] createAssociation;
20     private org.alfresco.example.webservice.types.CMLRemoveAssociation[] removeAssociation;
21
22     public CML() {
23     }
24
25     public CML(
26            org.alfresco.example.webservice.types.CMLCreate[] create,
27            org.alfresco.example.webservice.types.CMLAddAspect[] addAspect,
28            org.alfresco.example.webservice.types.CMLUpdate[] update,
29            org.alfresco.example.webservice.types.CMLDelete[] delete,
30            org.alfresco.example.webservice.types.CMLMove[] move,
31            org.alfresco.example.webservice.types.CMLCopy[] copy,
32            org.alfresco.example.webservice.types.CMLAddChild[] addChild,
33            org.alfresco.example.webservice.types.CMLRemoveChild[] removeChild,
34            org.alfresco.example.webservice.types.CMLCreateAssociation[] createAssociation,
35            org.alfresco.example.webservice.types.CMLRemoveAssociation[] removeAssociation) {
36            this.create = create;
37            this.addAspect = addAspect;
38            this.update = update;
39            this.delete = delete;
40            this.move = move;
41            this.copy = copy;
42            this.addChild = addChild;
43            this.removeChild = removeChild;
44            this.createAssociation = createAssociation;
45            this.removeAssociation = removeAssociation;
46     }
47
48
49     /**
50      * Gets the create value for this CML.
51      *
52      * @return create
53      */

54     public org.alfresco.example.webservice.types.CMLCreate[] getCreate() {
55         return create;
56     }
57
58
59     /**
60      * Sets the create value for this CML.
61      *
62      * @param create
63      */

64     public void setCreate(org.alfresco.example.webservice.types.CMLCreate[] create) {
65         this.create = create;
66     }
67
68     public org.alfresco.example.webservice.types.CMLCreate getCreate(int i) {
69         return this.create[i];
70     }
71
72     public void setCreate(int i, org.alfresco.example.webservice.types.CMLCreate _value) {
73         this.create[i] = _value;
74     }
75
76
77     /**
78      * Gets the addAspect value for this CML.
79      *
80      * @return addAspect
81      */

82     public org.alfresco.example.webservice.types.CMLAddAspect[] getAddAspect() {
83         return addAspect;
84     }
85
86
87     /**
88      * Sets the addAspect value for this CML.
89      *
90      * @param addAspect
91      */

92     public void setAddAspect(org.alfresco.example.webservice.types.CMLAddAspect[] addAspect) {
93         this.addAspect = addAspect;
94     }
95
96     public org.alfresco.example.webservice.types.CMLAddAspect getAddAspect(int i) {
97         return this.addAspect[i];
98     }
99
100     public void setAddAspect(int i, org.alfresco.example.webservice.types.CMLAddAspect _value) {
101         this.addAspect[i] = _value;
102     }
103
104
105     /**
106      * Gets the update value for this CML.
107      *
108      * @return update
109      */

110     public org.alfresco.example.webservice.types.CMLUpdate[] getUpdate() {
111         return update;
112     }
113
114
115     /**
116      * Sets the update value for this CML.
117      *
118      * @param update
119      */

120     public void setUpdate(org.alfresco.example.webservice.types.CMLUpdate[] update) {
121         this.update = update;
122     }
123
124     public org.alfresco.example.webservice.types.CMLUpdate getUpdate(int i) {
125         return this.update[i];
126     }
127
128     public void setUpdate(int i, org.alfresco.example.webservice.types.CMLUpdate _value) {
129         this.update[i] = _value;
130     }
131
132
133     /**
134      * Gets the delete value for this CML.
135      *
136      * @return delete
137      */

138     public org.alfresco.example.webservice.types.CMLDelete[] getDelete() {
139         return delete;
140     }
141
142
143     /**
144      * Sets the delete value for this CML.
145      *
146      * @param delete
147      */

148     public void setDelete(org.alfresco.example.webservice.types.CMLDelete[] delete) {
149         this.delete = delete;
150     }
151
152     public org.alfresco.example.webservice.types.CMLDelete getDelete(int i) {
153         return this.delete[i];
154     }
155
156     public void setDelete(int i, org.alfresco.example.webservice.types.CMLDelete _value) {
157         this.delete[i] = _value;
158     }
159
160
161     /**
162      * Gets the move value for this CML.
163      *
164      * @return move
165      */

166     public org.alfresco.example.webservice.types.CMLMove[] getMove() {
167         return move;
168     }
169
170
171     /**
172      * Sets the move value for this CML.
173      *
174      * @param move
175      */

176     public void setMove(org.alfresco.example.webservice.types.CMLMove[] move) {
177         this.move = move;
178     }
179
180     public org.alfresco.example.webservice.types.CMLMove getMove(int i) {
181         return this.move[i];
182     }
183
184     public void setMove(int i, org.alfresco.example.webservice.types.CMLMove _value) {
185         this.move[i] = _value;
186     }
187
188
189     /**
190      * Gets the copy value for this CML.
191      *
192      * @return copy
193      */

194     public org.alfresco.example.webservice.types.CMLCopy[] getCopy() {
195         return copy;
196     }
197
198
199     /**
200      * Sets the copy value for this CML.
201      *
202      * @param copy
203      */

204     public void setCopy(org.alfresco.example.webservice.types.CMLCopy[] copy) {
205         this.copy = copy;
206     }
207
208     public org.alfresco.example.webservice.types.CMLCopy getCopy(int i) {
209         return this.copy[i];
210     }
211
212     public void setCopy(int i, org.alfresco.example.webservice.types.CMLCopy _value) {
213         this.copy[i] = _value;
214     }
215
216
217     /**
218      * Gets the addChild value for this CML.
219      *
220      * @return addChild
221      */

222     public org.alfresco.example.webservice.types.CMLAddChild[] getAddChild() {
223         return addChild;
224     }
225
226
227     /**
228      * Sets the addChild value for this CML.
229      *
230      * @param addChild
231      */

232     public void setAddChild(org.alfresco.example.webservice.types.CMLAddChild[] addChild) {
233         this.addChild = addChild;
234     }
235
236     public org.alfresco.example.webservice.types.CMLAddChild getAddChild(int i) {
237         return this.addChild[i];
238     }
239
240     public void setAddChild(int i, org.alfresco.example.webservice.types.CMLAddChild _value) {
241         this.addChild[i] = _value;
242     }
243
244
245     /**
246      * Gets the removeChild value for this CML.
247      *
248      * @return removeChild
249      */

250     public org.alfresco.example.webservice.types.CMLRemoveChild[] getRemoveChild() {
251         return removeChild;
252     }
253
254
255     /**
256      * Sets the removeChild value for this CML.
257      *
258      * @param removeChild
259      */

260     public void setRemoveChild(org.alfresco.example.webservice.types.CMLRemoveChild[] removeChild) {
261         this.removeChild = removeChild;
262     }
263
264     public org.alfresco.example.webservice.types.CMLRemoveChild getRemoveChild(int i) {
265         return this.removeChild[i];
266     }
267
268     public void setRemoveChild(int i, org.alfresco.example.webservice.types.CMLRemoveChild _value) {
269         this.removeChild[i] = _value;
270     }
271
272
273     /**
274      * Gets the createAssociation value for this CML.
275      *
276      * @return createAssociation
277      */

278     public org.alfresco.example.webservice.types.CMLCreateAssociation[] getCreateAssociation() {
279         return createAssociation;
280     }
281
282
283     /**
284      * Sets the createAssociation value for this CML.
285      *
286      * @param createAssociation
287      */

288     public void setCreateAssociation(org.alfresco.example.webservice.types.CMLCreateAssociation[] createAssociation) {
289         this.createAssociation = createAssociation;
290     }
291
292     public org.alfresco.example.webservice.types.CMLCreateAssociation getCreateAssociation(int i) {
293         return this.createAssociation[i];
294     }
295
296     public void setCreateAssociation(int i, org.alfresco.example.webservice.types.CMLCreateAssociation _value) {
297         this.createAssociation[i] = _value;
298     }
299
300
301     /**
302      * Gets the removeAssociation value for this CML.
303      *
304      * @return removeAssociation
305      */

306     public org.alfresco.example.webservice.types.CMLRemoveAssociation[] getRemoveAssociation() {
307         return removeAssociation;
308     }
309
310
311     /**
312      * Sets the removeAssociation value for this CML.
313      *
314      * @param removeAssociation
315      */

316     public void setRemoveAssociation(org.alfresco.example.webservice.types.CMLRemoveAssociation[] removeAssociation) {
317         this.removeAssociation = removeAssociation;
318     }
319
320     public org.alfresco.example.webservice.types.CMLRemoveAssociation getRemoveAssociation(int i) {
321         return this.removeAssociation[i];
322     }
323
324     public void setRemoveAssociation(int i, org.alfresco.example.webservice.types.CMLRemoveAssociation _value) {
325         this.removeAssociation[i] = _value;
326     }
327
328     private java.lang.Object JavaDoc __equalsCalc = null;
329     public synchronized boolean equals(java.lang.Object JavaDoc obj) {
330         if (!(obj instanceof CML)) return false;
331         CML other = (CML) obj;
332         if (obj == null) return false;
333         if (this == obj) return true;
334         if (__equalsCalc != null) {
335             return (__equalsCalc == obj);
336         }
337         __equalsCalc = obj;
338         boolean _equals;
339         _equals = true &&
340             ((this.create==null && other.getCreate()==null) ||
341              (this.create!=null &&
342               java.util.Arrays.equals(this.create, other.getCreate()))) &&
343             ((this.addAspect==null && other.getAddAspect()==null) ||
344              (this.addAspect!=null &&
345               java.util.Arrays.equals(this.addAspect, other.getAddAspect()))) &&
346             ((this.update==null && other.getUpdate()==null) ||
347              (this.update!=null &&
348               java.util.Arrays.equals(this.update, other.getUpdate()))) &&
349             ((this.delete==null && other.getDelete()==null) ||
350              (this.delete!=null &&
351               java.util.Arrays.equals(this.delete, other.getDelete()))) &&
352             ((this.move==null && other.getMove()==null) ||
353              (this.move!=null &&
354               java.util.Arrays.equals(this.move, other.getMove()))) &&
355             ((this.copy==null && other.getCopy()==null) ||
356              (this.copy!=null &&
357               java.util.Arrays.equals(this.copy, other.getCopy()))) &&
358             ((this.addChild==null && other.getAddChild()==null) ||
359              (this.addChild!=null &&
360               java.util.Arrays.equals(this.addChild, other.getAddChild()))) &&
361             ((this.removeChild==null && other.getRemoveChild()==null) ||
362              (this.removeChild!=null &&
363               java.util.Arrays.equals(this.removeChild, other.getRemoveChild()))) &&
364             ((this.createAssociation==null && other.getCreateAssociation()==null) ||
365              (this.createAssociation!=null &&
366               java.util.Arrays.equals(this.createAssociation, other.getCreateAssociation()))) &&
367             ((this.removeAssociation==null && other.getRemoveAssociation()==null) ||
368              (this.removeAssociation!=null &&
369               java.util.Arrays.equals(this.removeAssociation, other.getRemoveAssociation())));
370         __equalsCalc = null;
371         return _equals;
372     }
373
374     private boolean __hashCodeCalc = false;
375     public synchronized int hashCode() {
376         if (__hashCodeCalc) {
377             return 0;
378         }
379         __hashCodeCalc = true;
380         int _hashCode = 1;
381         if (getCreate() != null) {
382             for (int i=0;
383                  i<java.lang.reflect.Array.getLength(getCreate());
384                  i++) {
385                 java.lang.Object JavaDoc obj = java.lang.reflect.Array.get(getCreate(), i);
386                 if (obj != null &&
387                     !obj.getClass().isArray()) {
388                     _hashCode += obj.hashCode();
389                 }
390             }
391         }
392         if (getAddAspect() != null) {
393             for (int i=0;
394                  i<java.lang.reflect.Array.getLength(getAddAspect());
395                  i++) {
396                 java.lang.Object JavaDoc obj = java.lang.reflect.Array.get(getAddAspect(), i);
397                 if (obj != null &&
398                     !obj.getClass().isArray()) {
399                     _hashCode += obj.hashCode();
400                 }
401             }
402         }
403         if (getUpdate() != null) {
404             for (int i=0;
405                  i<java.lang.reflect.Array.getLength(getUpdate());
406                  i++) {
407                 java.lang.Object JavaDoc obj = java.lang.reflect.Array.get(getUpdate(), i);
408                 if (obj != null &&
409                     !obj.getClass().isArray()) {
410                     _hashCode += obj.hashCode();
411                 }
412             }
413         }
414         if (getDelete() != null) {
415             for (int i=0;
416                  i<java.lang.reflect.Array.getLength(getDelete());
417                  i++) {
418                 java.lang.Object JavaDoc obj = java.lang.reflect.Array.get(getDelete(), i);
419                 if (obj != null &&
420                     !obj.getClass().isArray()) {
421                     _hashCode += obj.hashCode();
422                 }
423             }
424         }
425         if (getMove() != null) {
426             for (int i=0;
427                  i<java.lang.reflect.Array.getLength(getMove());
428                  i++) {
429                 java.lang.Object JavaDoc obj = java.lang.reflect.Array.get(getMove(), i);
430                 if (obj != null &&
431                     !obj.getClass().isArray()) {
432                     _hashCode += obj.hashCode();
433                 }
434             }
435         }
436         if (getCopy() != null) {
437             for (int i=0;
438                  i<java.lang.reflect.Array.getLength(getCopy());
439                  i++) {
440                 java.lang.Object JavaDoc obj = java.lang.reflect.Array.get(getCopy(), i);
441                 if (obj != null &&
442                     !obj.getClass().isArray()) {
443                     _hashCode += obj.hashCode();
444                 }
445             }
446         }
447         if (getAddChild() != null) {
448             for (int i=0;
449                  i<java.lang.reflect.Array.getLength(getAddChild());
450                  i++) {
451                 java.lang.Object JavaDoc obj = java.lang.reflect.Array.get(getAddChild(), i);
452                 if (obj != null &&
453                     !obj.getClass().isArray()) {
454                     _hashCode += obj.hashCode();
455                 }
456             }
457         }
458         if (getRemoveChild() != null) {
459             for (int i=0;
460                  i<java.lang.reflect.Array.getLength(getRemoveChild());
461                  i++) {
462                 java.lang.Object JavaDoc obj = java.lang.reflect.Array.get(getRemoveChild(), i);
463                 if (obj != null &&
464                     !obj.getClass().isArray()) {
465                     _hashCode += obj.hashCode();
466                 }
467             }
468         }
469         if (getCreateAssociation() != null) {
470             for (int i=0;
471                  i<java.lang.reflect.Array.getLength(getCreateAssociation());
472                  i++) {
473                 java.lang.Object JavaDoc obj = java.lang.reflect.Array.get(getCreateAssociation(), i);
474                 if (obj != null &&
475                     !obj.getClass().isArray()) {
476                     _hashCode += obj.hashCode();
477                 }
478             }
479         }
480         if (getRemoveAssociation() != null) {
481             for (int i=0;
482                  i<java.lang.reflect.Array.getLength(getRemoveAssociation());
483                  i++) {
484                 java.lang.Object JavaDoc obj = java.lang.reflect.Array.get(getRemoveAssociation(), i);
485                 if (obj != null &&
486                     !obj.getClass().isArray()) {
487                     _hashCode += obj.hashCode();
488                 }
489             }
490         }
491         __hashCodeCalc = false;
492         return _hashCode;
493     }
494
495     // Type metadata
496
private static org.apache.axis.description.TypeDesc typeDesc =
497         new org.apache.axis.description.TypeDesc(CML.class, true);
498
499     static {
500         typeDesc.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/cml/1.0", "CML"));
501         org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
502         elemField.setFieldName("create");
503         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/cml/1.0", "create"));
504         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/cml/1.0", ">CML>create"));
505         elemField.setMinOccurs(0);
506         elemField.setNillable(false);
507         elemField.setMaxOccursUnbounded(true);
508         typeDesc.addFieldDesc(elemField);
509         elemField = new org.apache.axis.description.ElementDesc();
510         elemField.setFieldName("addAspect");
511         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/cml/1.0", "addAspect"));
512         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/cml/1.0", ">CML>addAspect"));
513         elemField.setMinOccurs(0);
514         elemField.setNillable(false);
515         elemField.setMaxOccursUnbounded(true);
516         typeDesc.addFieldDesc(elemField);
517         elemField = new org.apache.axis.description.ElementDesc();
518         elemField.setFieldName("update");
519         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/cml/1.0", "update"));
520         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/cml/1.0", ">CML>update"));
521         elemField.setMinOccurs(0);
522         elemField.setNillable(false);
523         elemField.setMaxOccursUnbounded(true);
524         typeDesc.addFieldDesc(elemField);
525         elemField = new org.apache.axis.description.ElementDesc();
526         elemField.setFieldName("delete");
527         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/cml/1.0", "delete"));
528         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/cml/1.0", ">CML>delete"));
529         elemField.setMinOccurs(0);
530         elemField.setNillable(false);
531         elemField.setMaxOccursUnbounded(true);
532         typeDesc.addFieldDesc(elemField);
533         elemField = new org.apache.axis.description.ElementDesc();
534         elemField.setFieldName("move");
535         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/cml/1.0", "move"));
536         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/cml/1.0", ">CML>move"));
537         elemField.setMinOccurs(0);
538         elemField.setNillable(false);
539         elemField.setMaxOccursUnbounded(true);
540         typeDesc.addFieldDesc(elemField);
541         elemField = new org.apache.axis.description.ElementDesc();
542         elemField.setFieldName("copy");
543         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/cml/1.0", "copy"));
544         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/cml/1.0", ">CML>copy"));
545         elemField.setMinOccurs(0);
546         elemField.setNillable(false);
547         elemField.setMaxOccursUnbounded(true);
548         typeDesc.addFieldDesc(elemField);
549         elemField = new org.apache.axis.description.ElementDesc();
550         elemField.setFieldName("addChild");
551         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/cml/1.0", "addChild"));
552         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/cml/1.0", ">CML>addChild"));
553         elemField.setMinOccurs(0);
554         elemField.setNillable(false);
555         elemField.setMaxOccursUnbounded(true);
556         typeDesc.addFieldDesc(elemField);
557         elemField = new org.apache.axis.description.ElementDesc();
558         elemField.setFieldName("removeChild");
559         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/cml/1.0", "removeChild"));
560         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/cml/1.0", ">CML>removeChild"));
561         elemField.setMinOccurs(0);
562         elemField.setNillable(false);
563         elemField.setMaxOccursUnbounded(true);
564         typeDesc.addFieldDesc(elemField);
565         elemField = new org.apache.axis.description.ElementDesc();
566         elemField.setFieldName("createAssociation");
567         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/cml/1.0", "createAssociation"));
568         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/cml/1.0", ">CML>createAssociation"));
569         elemField.setMinOccurs(0);
570         elemField.setNillable(false);
571         elemField.setMaxOccursUnbounded(true);
572         typeDesc.addFieldDesc(elemField);
573         elemField = new org.apache.axis.description.ElementDesc();
574         elemField.setFieldName("removeAssociation");
575         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/cml/1.0", "removeAssociation"));
576         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/cml/1.0", ">CML>removeAssociation"));
577         elemField.setMinOccurs(0);
578         elemField.setNillable(false);
579         elemField.setMaxOccursUnbounded(true);
580         typeDesc.addFieldDesc(elemField);
581     }
582
583     /**
584      * Return type metadata object
585      */

586     public static org.apache.axis.description.TypeDesc getTypeDesc() {
587         return typeDesc;
588     }
589
590     /**
591      * Get Custom Serializer
592      */

593     public static org.apache.axis.encoding.Serializer getSerializer(
594            java.lang.String JavaDoc mechType,
595            java.lang.Class JavaDoc _javaType,
596            javax.xml.namespace.QName JavaDoc _xmlType) {
597         return
598           new org.apache.axis.encoding.ser.BeanSerializer(
599             _javaType, _xmlType, typeDesc);
600     }
601
602     /**
603      * Get Custom Deserializer
604      */

605     public static org.apache.axis.encoding.Deserializer getDeserializer(
606            java.lang.String JavaDoc mechType,
607            java.lang.Class JavaDoc _javaType,
608            javax.xml.namespace.QName JavaDoc _xmlType) {
609         return
610           new org.apache.axis.encoding.ser.BeanDeserializer(
611             _javaType, _xmlType, typeDesc);
612     }
613
614 }
615
Popular Tags