KickJava   Java API By Example, From Geeks To Geeks.

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


1 /**
2  * CMLAddChild.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 CMLAddChild 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
18     public CMLAddChild() {
19     }
20
21     public CMLAddChild(
22            org.alfresco.example.webservice.types.ParentReference to,
23            java.lang.String JavaDoc to_id,
24            java.lang.String JavaDoc associationType,
25            java.lang.String JavaDoc childName,
26            org.alfresco.example.webservice.types.Predicate where,
27            java.lang.String JavaDoc where_id) {
28            this.to = to;
29            this.to_id = to_id;
30            this.associationType = associationType;
31            this.childName = childName;
32            this.where = where;
33            this.where_id = where_id;
34     }
35
36
37     /**
38      * Gets the to value for this CMLAddChild.
39      *
40      * @return to
41      */

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

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

62     public java.lang.String JavaDoc getTo_id() {
63         return to_id;
64     }
65
66
67     /**
68      * Sets the to_id value for this CMLAddChild.
69      *
70      * @param to_id
71      */

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

82     public java.lang.String JavaDoc getAssociationType() {
83         return associationType;
84     }
85
86
87     /**
88      * Sets the associationType value for this CMLAddChild.
89      *
90      * @param associationType
91      */

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

102     public java.lang.String JavaDoc getChildName() {
103         return childName;
104     }
105
106
107     /**
108      * Sets the childName value for this CMLAddChild.
109      *
110      * @param childName
111      */

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

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

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

142     public java.lang.String JavaDoc getWhere_id() {
143         return where_id;
144     }
145
146
147     /**
148      * Sets the where_id value for this CMLAddChild.
149      *
150      * @param where_id
151      */

152     public void setWhere_id(java.lang.String JavaDoc where_id) {
153         this.where_id = where_id;
154     }
155
156     private java.lang.Object JavaDoc __equalsCalc = null;
157     public synchronized boolean equals(java.lang.Object JavaDoc obj) {
158         if (!(obj instanceof CMLAddChild)) return false;
159         CMLAddChild other = (CMLAddChild) obj;
160         if (obj == null) return false;
161         if (this == obj) return true;
162         if (__equalsCalc != null) {
163             return (__equalsCalc == obj);
164         }
165         __equalsCalc = obj;
166         boolean _equals;
167         _equals = true &&
168             ((this.to==null && other.getTo()==null) ||
169              (this.to!=null &&
170               this.to.equals(other.getTo()))) &&
171             ((this.to_id==null && other.getTo_id()==null) ||
172              (this.to_id!=null &&
173               this.to_id.equals(other.getTo_id()))) &&
174             ((this.associationType==null && other.getAssociationType()==null) ||
175              (this.associationType!=null &&
176               this.associationType.equals(other.getAssociationType()))) &&
177             ((this.childName==null && other.getChildName()==null) ||
178              (this.childName!=null &&
179               this.childName.equals(other.getChildName()))) &&
180             ((this.where==null && other.getWhere()==null) ||
181              (this.where!=null &&
182               this.where.equals(other.getWhere()))) &&
183             ((this.where_id==null && other.getWhere_id()==null) ||
184              (this.where_id!=null &&
185               this.where_id.equals(other.getWhere_id())));
186         __equalsCalc = null;
187         return _equals;
188     }
189
190     private boolean __hashCodeCalc = false;
191     public synchronized int hashCode() {
192         if (__hashCodeCalc) {
193             return 0;
194         }
195         __hashCodeCalc = true;
196         int _hashCode = 1;
197         if (getTo() != null) {
198             _hashCode += getTo().hashCode();
199         }
200         if (getTo_id() != null) {
201             _hashCode += getTo_id().hashCode();
202         }
203         if (getAssociationType() != null) {
204             _hashCode += getAssociationType().hashCode();
205         }
206         if (getChildName() != null) {
207             _hashCode += getChildName().hashCode();
208         }
209         if (getWhere() != null) {
210             _hashCode += getWhere().hashCode();
211         }
212         if (getWhere_id() != null) {
213             _hashCode += getWhere_id().hashCode();
214         }
215         __hashCodeCalc = false;
216         return _hashCode;
217     }
218
219     // Type metadata
220
private static org.apache.axis.description.TypeDesc typeDesc =
221         new org.apache.axis.description.TypeDesc(CMLAddChild.class, true);
222
223     static {
224         typeDesc.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/cml/1.0", ">CML>addChild"));
225         org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
226         elemField.setFieldName("to");
227         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/cml/1.0", "to"));
228         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "ParentReference"));
229         elemField.setMinOccurs(0);
230         elemField.setNillable(false);
231         typeDesc.addFieldDesc(elemField);
232         elemField = new org.apache.axis.description.ElementDesc();
233         elemField.setFieldName("to_id");
234         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/cml/1.0", "to_id"));
235         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.w3.org/2001/XMLSchema", "string"));
236         elemField.setNillable(false);
237         typeDesc.addFieldDesc(elemField);
238         elemField = new org.apache.axis.description.ElementDesc();
239         elemField.setFieldName("associationType");
240         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "associationType"));
241         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "Name"));
242         elemField.setMinOccurs(0);
243         elemField.setNillable(false);
244         typeDesc.addFieldDesc(elemField);
245         elemField = new org.apache.axis.description.ElementDesc();
246         elemField.setFieldName("childName");
247         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "childName"));
248         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "Name"));
249         elemField.setMinOccurs(0);
250         elemField.setNillable(false);
251         typeDesc.addFieldDesc(elemField);
252         elemField = new org.apache.axis.description.ElementDesc();
253         elemField.setFieldName("where");
254         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/cml/1.0", "where"));
255         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "Predicate"));
256         elemField.setMinOccurs(0);
257         elemField.setNillable(false);
258         typeDesc.addFieldDesc(elemField);
259         elemField = new org.apache.axis.description.ElementDesc();
260         elemField.setFieldName("where_id");
261         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/cml/1.0", "where_id"));
262         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.w3.org/2001/XMLSchema", "string"));
263         elemField.setMinOccurs(0);
264         elemField.setNillable(false);
265         typeDesc.addFieldDesc(elemField);
266     }
267
268     /**
269      * Return type metadata object
270      */

271     public static org.apache.axis.description.TypeDesc getTypeDesc() {
272         return typeDesc;
273     }
274
275     /**
276      * Get Custom Serializer
277      */

278     public static org.apache.axis.encoding.Serializer getSerializer(
279            java.lang.String JavaDoc mechType,
280            java.lang.Class JavaDoc _javaType,
281            javax.xml.namespace.QName JavaDoc _xmlType) {
282         return
283           new org.apache.axis.encoding.ser.BeanSerializer(
284             _javaType, _xmlType, typeDesc);
285     }
286
287     /**
288      * Get Custom Deserializer
289      */

290     public static org.apache.axis.encoding.Deserializer getDeserializer(
291            java.lang.String JavaDoc mechType,
292            java.lang.Class JavaDoc _javaType,
293            javax.xml.namespace.QName JavaDoc _xmlType) {
294         return
295           new org.apache.axis.encoding.ser.BeanDeserializer(
296             _javaType, _xmlType, typeDesc);
297     }
298
299 }
300
Popular Tags