KickJava   Java API By Example, From Geeks To Geeks.

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


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

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

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

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

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

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

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

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

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

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

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

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