KickJava   Java API By Example, From Geeks To Geeks.

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


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

47     public org.alfresco.repo.webservice.types.Reference getId() {
48         return id;
49     }
50
51
52     /**
53      * Sets the id value for this Version.
54      *
55      * @param id
56      */

57     public void setId(org.alfresco.repo.webservice.types.Reference id) {
58         this.id = id;
59     }
60
61
62     /**
63      * Gets the created value for this Version.
64      *
65      * @return created
66      */

67     public java.util.Calendar JavaDoc getCreated() {
68         return created;
69     }
70
71
72     /**
73      * Sets the created value for this Version.
74      *
75      * @param created
76      */

77     public void setCreated(java.util.Calendar JavaDoc created) {
78         this.created = created;
79     }
80
81
82     /**
83      * Gets the creator value for this Version.
84      *
85      * @return creator
86      */

87     public java.lang.String JavaDoc getCreator() {
88         return creator;
89     }
90
91
92     /**
93      * Sets the creator value for this Version.
94      *
95      * @param creator
96      */

97     public void setCreator(java.lang.String JavaDoc creator) {
98         this.creator = creator;
99     }
100
101
102     /**
103      * Gets the label value for this Version.
104      *
105      * @return label
106      */

107     public java.lang.String JavaDoc getLabel() {
108         return label;
109     }
110
111
112     /**
113      * Sets the label value for this Version.
114      *
115      * @param label
116      */

117     public void setLabel(java.lang.String JavaDoc label) {
118         this.label = label;
119     }
120
121
122     /**
123      * Gets the major value for this Version.
124      *
125      * @return major
126      */

127     public boolean isMajor() {
128         return major;
129     }
130
131
132     /**
133      * Sets the major value for this Version.
134      *
135      * @param major
136      */

137     public void setMajor(boolean major) {
138         this.major = major;
139     }
140
141
142     /**
143      * Gets the commentaries value for this Version.
144      *
145      * @return commentaries
146      */

147     public org.alfresco.repo.webservice.types.NamedValue[] getCommentaries() {
148         return commentaries;
149     }
150
151
152     /**
153      * Sets the commentaries value for this Version.
154      *
155      * @param commentaries
156      */

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

288     public static org.apache.axis.description.TypeDesc getTypeDesc() {
289         return typeDesc;
290     }
291
292     /**
293      * Get Custom Serializer
294      */

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

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