KickJava   Java API By Example, From Geeks To Geeks.

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


1 /**
2  * Version.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 Version implements java.io.Serializable JavaDoc {
11     private org.alfresco.example.webservice.types.Reference id;
12     private java.util.Calendar JavaDoc created;
13     private java.lang.String JavaDoc creator;
14     private java.lang.String JavaDoc label;
15     private boolean major;
16     private org.alfresco.example.webservice.types.NamedValue[] commentaries;
17
18     public Version() {
19     }
20
21     public Version(
22            org.alfresco.example.webservice.types.Reference id,
23            java.util.Calendar JavaDoc created,
24            java.lang.String JavaDoc creator,
25            java.lang.String JavaDoc label,
26            boolean major,
27            org.alfresco.example.webservice.types.NamedValue[] commentaries) {
28            this.id = id;
29            this.created = created;
30            this.creator = creator;
31            this.label = label;
32            this.major = major;
33            this.commentaries = commentaries;
34     }
35
36
37     /**
38      * Gets the id value for this Version.
39      *
40      * @return id
41      */

42     public org.alfresco.example.webservice.types.Reference getId() {
43         return id;
44     }
45
46
47     /**
48      * Sets the id value for this Version.
49      *
50      * @param id
51      */

52     public void setId(org.alfresco.example.webservice.types.Reference id) {
53         this.id = id;
54     }
55
56
57     /**
58      * Gets the created value for this Version.
59      *
60      * @return created
61      */

62     public java.util.Calendar JavaDoc getCreated() {
63         return created;
64     }
65
66
67     /**
68      * Sets the created value for this Version.
69      *
70      * @param created
71      */

72     public void setCreated(java.util.Calendar JavaDoc created) {
73         this.created = created;
74     }
75
76
77     /**
78      * Gets the creator value for this Version.
79      *
80      * @return creator
81      */

82     public java.lang.String JavaDoc getCreator() {
83         return creator;
84     }
85
86
87     /**
88      * Sets the creator value for this Version.
89      *
90      * @param creator
91      */

92     public void setCreator(java.lang.String JavaDoc creator) {
93         this.creator = creator;
94     }
95
96
97     /**
98      * Gets the label value for this Version.
99      *
100      * @return label
101      */

102     public java.lang.String JavaDoc getLabel() {
103         return label;
104     }
105
106
107     /**
108      * Sets the label value for this Version.
109      *
110      * @param label
111      */

112     public void setLabel(java.lang.String JavaDoc label) {
113         this.label = label;
114     }
115
116
117     /**
118      * Gets the major value for this Version.
119      *
120      * @return major
121      */

122     public boolean isMajor() {
123         return major;
124     }
125
126
127     /**
128      * Sets the major value for this Version.
129      *
130      * @param major
131      */

132     public void setMajor(boolean major) {
133         this.major = major;
134     }
135
136
137     /**
138      * Gets the commentaries value for this Version.
139      *
140      * @return commentaries
141      */

142     public org.alfresco.example.webservice.types.NamedValue[] getCommentaries() {
143         return commentaries;
144     }
145
146
147     /**
148      * Sets the commentaries value for this Version.
149      *
150      * @param commentaries
151      */

152     public void setCommentaries(org.alfresco.example.webservice.types.NamedValue[] commentaries) {
153         this.commentaries = commentaries;
154     }
155
156     public org.alfresco.example.webservice.types.NamedValue getCommentaries(int i) {
157         return this.commentaries[i];
158     }
159
160     public void setCommentaries(int i, org.alfresco.example.webservice.types.NamedValue _value) {
161         this.commentaries[i] = _value;
162     }
163
164     private java.lang.Object JavaDoc __equalsCalc = null;
165     public synchronized boolean equals(java.lang.Object JavaDoc obj) {
166         if (!(obj instanceof Version)) return false;
167         Version other = (Version) obj;
168         if (obj == null) return false;
169         if (this == obj) return true;
170         if (__equalsCalc != null) {
171             return (__equalsCalc == obj);
172         }
173         __equalsCalc = obj;
174         boolean _equals;
175         _equals = true &&
176             ((this.id==null && other.getId()==null) ||
177              (this.id!=null &&
178               this.id.equals(other.getId()))) &&
179             ((this.created==null && other.getCreated()==null) ||
180              (this.created!=null &&
181               this.created.equals(other.getCreated()))) &&
182             ((this.creator==null && other.getCreator()==null) ||
183              (this.creator!=null &&
184               this.creator.equals(other.getCreator()))) &&
185             ((this.label==null && other.getLabel()==null) ||
186              (this.label!=null &&
187               this.label.equals(other.getLabel()))) &&
188             this.major == other.isMajor() &&
189             ((this.commentaries==null && other.getCommentaries()==null) ||
190              (this.commentaries!=null &&
191               java.util.Arrays.equals(this.commentaries, other.getCommentaries())));
192         __equalsCalc = null;
193         return _equals;
194     }
195
196     private boolean __hashCodeCalc = false;
197     public synchronized int hashCode() {
198         if (__hashCodeCalc) {
199             return 0;
200         }
201         __hashCodeCalc = true;
202         int _hashCode = 1;
203         if (getId() != null) {
204             _hashCode += getId().hashCode();
205         }
206         if (getCreated() != null) {
207             _hashCode += getCreated().hashCode();
208         }
209         if (getCreator() != null) {
210             _hashCode += getCreator().hashCode();
211         }
212         if (getLabel() != null) {
213             _hashCode += getLabel().hashCode();
214         }
215         _hashCode += (isMajor() ? Boolean.TRUE : Boolean.FALSE).hashCode();
216         if (getCommentaries() != null) {
217             for (int i=0;
218                  i<java.lang.reflect.Array.getLength(getCommentaries());
219                  i++) {
220                 java.lang.Object JavaDoc obj = java.lang.reflect.Array.get(getCommentaries(), i);
221                 if (obj != null &&
222                     !obj.getClass().isArray()) {
223                     _hashCode += obj.hashCode();
224                 }
225             }
226         }
227         __hashCodeCalc = false;
228         return _hashCode;
229     }
230
231     // Type metadata
232
private static org.apache.axis.description.TypeDesc typeDesc =
233         new org.apache.axis.description.TypeDesc(Version.class, true);
234
235     static {
236         typeDesc.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "Version"));
237         org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
238         elemField.setFieldName("id");
239         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "id"));
240         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "Reference"));
241         elemField.setNillable(false);
242         typeDesc.addFieldDesc(elemField);
243         elemField = new org.apache.axis.description.ElementDesc();
244         elemField.setFieldName("created");
245         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "created"));
246         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.w3.org/2001/XMLSchema", "dateTime"));
247         elemField.setMinOccurs(0);
248         elemField.setNillable(false);
249         typeDesc.addFieldDesc(elemField);
250         elemField = new org.apache.axis.description.ElementDesc();
251         elemField.setFieldName("creator");
252         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "creator"));
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("label");
259         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "label"));
260         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.w3.org/2001/XMLSchema", "string"));
261         elemField.setMinOccurs(0);
262         elemField.setNillable(false);
263         typeDesc.addFieldDesc(elemField);
264         elemField = new org.apache.axis.description.ElementDesc();
265         elemField.setFieldName("major");
266         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "major"));
267         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.w3.org/2001/XMLSchema", "boolean"));
268         elemField.setNillable(false);
269         typeDesc.addFieldDesc(elemField);
270         elemField = new org.apache.axis.description.ElementDesc();
271         elemField.setFieldName("commentaries");
272         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "commentaries"));
273         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "NamedValue"));
274         elemField.setMinOccurs(0);
275         elemField.setNillable(false);
276         elemField.setMaxOccursUnbounded(true);
277         typeDesc.addFieldDesc(elemField);
278     }
279
280     /**
281      * Return type metadata object
282      */

283     public static org.apache.axis.description.TypeDesc getTypeDesc() {
284         return typeDesc;
285     }
286
287     /**
288      * Get Custom Serializer
289      */

290     public static org.apache.axis.encoding.Serializer getSerializer(
291            java.lang.String JavaDoc mechType,
292            java.lang.Class JavaDoc _javaType,
293            javax.xml.namespace.QName JavaDoc _xmlType) {
294         return
295           new org.apache.axis.encoding.ser.BeanSerializer(
296             _javaType, _xmlType, typeDesc);
297     }
298
299     /**
300      * Get Custom Deserializer
301      */

302     public static org.apache.axis.encoding.Deserializer getDeserializer(
303            java.lang.String JavaDoc mechType,
304            java.lang.Class JavaDoc _javaType,
305            javax.xml.namespace.QName JavaDoc _xmlType) {
306         return
307           new org.apache.axis.encoding.ser.BeanDeserializer(
308             _javaType, _xmlType, typeDesc);
309     }
310
311 }
312
Popular Tags