KickJava   Java API By Example, From Geeks To Geeks.

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


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

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

49     public void setFrom(org.alfresco.example.webservice.types.Predicate from) {
50         this.from = from;
51     }
52
53
54     /**
55      * Gets the from_id value for this CMLCreateAssociation.
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 CMLCreateAssociation.
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 to value for this CMLCreateAssociation.
76      *
77      * @return to
78      */

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

89     public void setTo(org.alfresco.example.webservice.types.Predicate to) {
90         this.to = to;
91     }
92
93
94     /**
95      * Gets the to_id value for this CMLCreateAssociation.
96      *
97      * @return to_id
98      */

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

109     public void setTo_id(java.lang.String JavaDoc to_id) {
110         this.to_id = to_id;
111     }
112
113
114     /**
115      * Gets the association value for this CMLCreateAssociation.
116      *
117      * @return association
118      */

119     public java.lang.String JavaDoc getAssociation() {
120         return association;
121     }
122
123
124     /**
125      * Sets the association value for this CMLCreateAssociation.
126      *
127      * @param association
128      */

129     public void setAssociation(java.lang.String JavaDoc association) {
130         this.association = association;
131     }
132
133     private java.lang.Object JavaDoc __equalsCalc = null;
134     public synchronized boolean equals(java.lang.Object JavaDoc obj) {
135         if (!(obj instanceof CMLCreateAssociation)) return false;
136         CMLCreateAssociation other = (CMLCreateAssociation) obj;
137         if (obj == null) return false;
138         if (this == obj) return true;
139         if (__equalsCalc != null) {
140             return (__equalsCalc == obj);
141         }
142         __equalsCalc = obj;
143         boolean _equals;
144         _equals = true &&
145             ((this.from==null && other.getFrom()==null) ||
146              (this.from!=null &&
147               this.from.equals(other.getFrom()))) &&
148             ((this.from_id==null && other.getFrom_id()==null) ||
149              (this.from_id!=null &&
150               this.from_id.equals(other.getFrom_id()))) &&
151             ((this.to==null && other.getTo()==null) ||
152              (this.to!=null &&
153               this.to.equals(other.getTo()))) &&
154             ((this.to_id==null && other.getTo_id()==null) ||
155              (this.to_id!=null &&
156               this.to_id.equals(other.getTo_id()))) &&
157             ((this.association==null && other.getAssociation()==null) ||
158              (this.association!=null &&
159               this.association.equals(other.getAssociation())));
160         __equalsCalc = null;
161         return _equals;
162     }
163
164     private boolean __hashCodeCalc = false;
165     public synchronized int hashCode() {
166         if (__hashCodeCalc) {
167             return 0;
168         }
169         __hashCodeCalc = true;
170         int _hashCode = 1;
171         if (getFrom() != null) {
172             _hashCode += getFrom().hashCode();
173         }
174         if (getFrom_id() != null) {
175             _hashCode += getFrom_id().hashCode();
176         }
177         if (getTo() != null) {
178             _hashCode += getTo().hashCode();
179         }
180         if (getTo_id() != null) {
181             _hashCode += getTo_id().hashCode();
182         }
183         if (getAssociation() != null) {
184             _hashCode += getAssociation().hashCode();
185         }
186         __hashCodeCalc = false;
187         return _hashCode;
188     }
189
190     // Type metadata
191
private static org.apache.axis.description.TypeDesc typeDesc =
192         new org.apache.axis.description.TypeDesc(CMLCreateAssociation.class, true);
193
194     static {
195         typeDesc.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/cml/1.0", ">CML>createAssociation"));
196         org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
197         elemField.setFieldName("from");
198         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/cml/1.0", "from"));
199         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "Predicate"));
200         elemField.setMinOccurs(0);
201         elemField.setNillable(false);
202         typeDesc.addFieldDesc(elemField);
203         elemField = new org.apache.axis.description.ElementDesc();
204         elemField.setFieldName("from_id");
205         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/cml/1.0", "from_id"));
206         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.w3.org/2001/XMLSchema", "string"));
207         elemField.setMinOccurs(0);
208         elemField.setNillable(false);
209         typeDesc.addFieldDesc(elemField);
210         elemField = new org.apache.axis.description.ElementDesc();
211         elemField.setFieldName("to");
212         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/cml/1.0", "to"));
213         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "Predicate"));
214         elemField.setMinOccurs(0);
215         elemField.setNillable(false);
216         typeDesc.addFieldDesc(elemField);
217         elemField = new org.apache.axis.description.ElementDesc();
218         elemField.setFieldName("to_id");
219         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/cml/1.0", "to_id"));
220         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.w3.org/2001/XMLSchema", "string"));
221         elemField.setMinOccurs(0);
222         elemField.setNillable(false);
223         typeDesc.addFieldDesc(elemField);
224         elemField = new org.apache.axis.description.ElementDesc();
225         elemField.setFieldName("association");
226         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/cml/1.0", "association"));
227         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "Name"));
228         elemField.setNillable(false);
229         typeDesc.addFieldDesc(elemField);
230     }
231
232     /**
233      * Return type metadata object
234      */

235     public static org.apache.axis.description.TypeDesc getTypeDesc() {
236         return typeDesc;
237     }
238
239     /**
240      * Get Custom Serializer
241      */

242     public static org.apache.axis.encoding.Serializer getSerializer(
243            java.lang.String JavaDoc mechType,
244            java.lang.Class JavaDoc _javaType,
245            javax.xml.namespace.QName JavaDoc _xmlType) {
246         return
247           new org.apache.axis.encoding.ser.BeanSerializer(
248             _javaType, _xmlType, typeDesc);
249     }
250
251     /**
252      * Get Custom Deserializer
253      */

254     public static org.apache.axis.encoding.Deserializer getDeserializer(
255            java.lang.String JavaDoc mechType,
256            java.lang.Class JavaDoc _javaType,
257            javax.xml.namespace.QName JavaDoc _xmlType) {
258         return
259           new org.apache.axis.encoding.ser.BeanDeserializer(
260             _javaType, _xmlType, typeDesc);
261     }
262
263 }
264
Popular Tags