KickJava   Java API By Example, From Geeks To Geeks.

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


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

43     public org.alfresco.repo.webservice.types.Predicate getFrom() {
44         return from;
45     }
46
47
48     /**
49      * Sets the from value for this CMLCreateAssociation.
50      *
51      * @param from
52      */

53     public void setFrom(org.alfresco.repo.webservice.types.Predicate from) {
54         this.from = from;
55     }
56
57
58     /**
59      * Gets the from_id value for this CMLCreateAssociation.
60      *
61      * @return from_id
62      */

63     public java.lang.String JavaDoc getFrom_id() {
64         return from_id;
65     }
66
67
68     /**
69      * Sets the from_id value for this CMLCreateAssociation.
70      *
71      * @param from_id
72      */

73     public void setFrom_id(java.lang.String JavaDoc from_id) {
74         this.from_id = from_id;
75     }
76
77
78     /**
79      * Gets the to value for this CMLCreateAssociation.
80      *
81      * @return to
82      */

83     public org.alfresco.repo.webservice.types.Predicate getTo() {
84         return to;
85     }
86
87
88     /**
89      * Sets the to value for this CMLCreateAssociation.
90      *
91      * @param to
92      */

93     public void setTo(org.alfresco.repo.webservice.types.Predicate to) {
94         this.to = to;
95     }
96
97
98     /**
99      * Gets the to_id value for this CMLCreateAssociation.
100      *
101      * @return to_id
102      */

103     public java.lang.String JavaDoc getTo_id() {
104         return to_id;
105     }
106
107
108     /**
109      * Sets the to_id value for this CMLCreateAssociation.
110      *
111      * @param to_id
112      */

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

123     public java.lang.String JavaDoc getAssociation() {
124         return association;
125     }
126
127
128     /**
129      * Sets the association value for this CMLCreateAssociation.
130      *
131      * @param association
132      */

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

239     public static org.apache.axis.description.TypeDesc getTypeDesc() {
240         return typeDesc;
241     }
242
243     /**
244      * Get Custom Serializer
245      */

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

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