KickJava   Java API By Example, From Geeks To Geeks.

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


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

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

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

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

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

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

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

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

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

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

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

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

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

276     public static org.apache.axis.description.TypeDesc getTypeDesc() {
277         return typeDesc;
278     }
279
280     /**
281      * Get Custom Serializer
282      */

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

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