KickJava   Java API By Example, From Geeks To Geeks.

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


1 /**
2  * CMLRemoveChild.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 CMLRemoveChild implements java.io.Serializable JavaDoc {
11     private org.alfresco.repo.webservice.types.Reference from;
12
13     private java.lang.String JavaDoc from_id;
14
15     private org.alfresco.repo.webservice.types.Predicate where;
16
17     private java.lang.String JavaDoc where_id;
18
19     public CMLRemoveChild() {
20     }
21
22     public CMLRemoveChild(
23            org.alfresco.repo.webservice.types.Reference from,
24            java.lang.String JavaDoc from_id,
25            org.alfresco.repo.webservice.types.Predicate where,
26            java.lang.String JavaDoc where_id) {
27            this.from = from;
28            this.from_id = from_id;
29            this.where = where;
30            this.where_id = where_id;
31     }
32
33
34     /**
35      * Gets the from value for this CMLRemoveChild.
36      *
37      * @return from
38      */

39     public org.alfresco.repo.webservice.types.Reference getFrom() {
40         return from;
41     }
42
43
44     /**
45      * Sets the from value for this CMLRemoveChild.
46      *
47      * @param from
48      */

49     public void setFrom(org.alfresco.repo.webservice.types.Reference from) {
50         this.from = from;
51     }
52
53
54     /**
55      * Gets the from_id value for this CMLRemoveChild.
56      *
57      * @return from_id
58      */

59     public java.lang.String JavaDoc getFrom_id() {
60         return from_id;
61     }
62
63
64     /**
65      * Sets the from_id value for this CMLRemoveChild.
66      *
67      * @param from_id
68      */

69     public void setFrom_id(java.lang.String JavaDoc from_id) {
70         this.from_id = from_id;
71     }
72
73
74     /**
75      * Gets the where value for this CMLRemoveChild.
76      *
77      * @return where
78      */

79     public org.alfresco.repo.webservice.types.Predicate getWhere() {
80         return where;
81     }
82
83
84     /**
85      * Sets the where value for this CMLRemoveChild.
86      *
87      * @param where
88      */

89     public void setWhere(org.alfresco.repo.webservice.types.Predicate where) {
90         this.where = where;
91     }
92
93
94     /**
95      * Gets the where_id value for this CMLRemoveChild.
96      *
97      * @return where_id
98      */

99     public java.lang.String JavaDoc getWhere_id() {
100         return where_id;
101     }
102
103
104     /**
105      * Sets the where_id value for this CMLRemoveChild.
106      *
107      * @param where_id
108      */

109     public void setWhere_id(java.lang.String JavaDoc where_id) {
110         this.where_id = where_id;
111     }
112
113     private java.lang.Object JavaDoc __equalsCalc = null;
114     public synchronized boolean equals(java.lang.Object JavaDoc obj) {
115         if (!(obj instanceof CMLRemoveChild)) return false;
116         CMLRemoveChild other = (CMLRemoveChild) obj;
117         if (obj == null) return false;
118         if (this == obj) return true;
119         if (__equalsCalc != null) {
120             return (__equalsCalc == obj);
121         }
122         __equalsCalc = obj;
123         boolean _equals;
124         _equals = true &&
125             ((this.from==null && other.getFrom()==null) ||
126              (this.from!=null &&
127               this.from.equals(other.getFrom()))) &&
128             ((this.from_id==null && other.getFrom_id()==null) ||
129              (this.from_id!=null &&
130               this.from_id.equals(other.getFrom_id()))) &&
131             ((this.where==null && other.getWhere()==null) ||
132              (this.where!=null &&
133               this.where.equals(other.getWhere()))) &&
134             ((this.where_id==null && other.getWhere_id()==null) ||
135              (this.where_id!=null &&
136               this.where_id.equals(other.getWhere_id())));
137         __equalsCalc = null;
138         return _equals;
139     }
140
141     private boolean __hashCodeCalc = false;
142     public synchronized int hashCode() {
143         if (__hashCodeCalc) {
144             return 0;
145         }
146         __hashCodeCalc = true;
147         int _hashCode = 1;
148         if (getFrom() != null) {
149             _hashCode += getFrom().hashCode();
150         }
151         if (getFrom_id() != null) {
152             _hashCode += getFrom_id().hashCode();
153         }
154         if (getWhere() != null) {
155             _hashCode += getWhere().hashCode();
156         }
157         if (getWhere_id() != null) {
158             _hashCode += getWhere_id().hashCode();
159         }
160         __hashCodeCalc = false;
161         return _hashCode;
162     }
163
164     // Type metadata
165
private static org.apache.axis.description.TypeDesc typeDesc =
166         new org.apache.axis.description.TypeDesc(CMLRemoveChild.class, true);
167
168     static {
169         typeDesc.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/cml/1.0", ">CML>removeChild"));
170         org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
171         elemField.setFieldName("from");
172         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/cml/1.0", "from"));
173         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "Reference"));
174         elemField.setMinOccurs(0);
175         elemField.setNillable(false);
176         typeDesc.addFieldDesc(elemField);
177         elemField = new org.apache.axis.description.ElementDesc();
178         elemField.setFieldName("from_id");
179         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/cml/1.0", "from_id"));
180         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.w3.org/2001/XMLSchema", "string"));
181         elemField.setMinOccurs(0);
182         elemField.setNillable(false);
183         typeDesc.addFieldDesc(elemField);
184         elemField = new org.apache.axis.description.ElementDesc();
185         elemField.setFieldName("where");
186         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/cml/1.0", "where"));
187         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "Predicate"));
188         elemField.setMinOccurs(0);
189         elemField.setNillable(false);
190         typeDesc.addFieldDesc(elemField);
191         elemField = new org.apache.axis.description.ElementDesc();
192         elemField.setFieldName("where_id");
193         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/cml/1.0", "where_id"));
194         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.w3.org/2001/XMLSchema", "string"));
195         elemField.setMinOccurs(0);
196         elemField.setNillable(false);
197         typeDesc.addFieldDesc(elemField);
198     }
199
200     /**
201      * Return type metadata object
202      */

203     public static org.apache.axis.description.TypeDesc getTypeDesc() {
204         return typeDesc;
205     }
206
207     /**
208      * Get Custom Serializer
209      */

210     public static org.apache.axis.encoding.Serializer getSerializer(
211            java.lang.String JavaDoc mechType,
212            java.lang.Class JavaDoc _javaType,
213            javax.xml.namespace.QName JavaDoc _xmlType) {
214         return
215           new org.apache.axis.encoding.ser.BeanSerializer(
216             _javaType, _xmlType, typeDesc);
217     }
218
219     /**
220      * Get Custom Deserializer
221      */

222     public static org.apache.axis.encoding.Deserializer getDeserializer(
223            java.lang.String JavaDoc mechType,
224            java.lang.Class JavaDoc _javaType,
225            javax.xml.namespace.QName JavaDoc _xmlType) {
226         return
227           new org.apache.axis.encoding.ser.BeanDeserializer(
228             _javaType, _xmlType, typeDesc);
229     }
230
231 }
232
Popular Tags