KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > alfresco > example > webservice > authoring > CheckinResult


1 /**
2  * CheckinResult.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.authoring;
9
10 public class CheckinResult implements java.io.Serializable JavaDoc {
11     private org.alfresco.example.webservice.types.Reference[] workingCopies;
12     private org.alfresco.example.webservice.types.Reference[] checkedIn;
13
14     public CheckinResult() {
15     }
16
17     public CheckinResult(
18            org.alfresco.example.webservice.types.Reference[] workingCopies,
19            org.alfresco.example.webservice.types.Reference[] checkedIn) {
20            this.workingCopies = workingCopies;
21            this.checkedIn = checkedIn;
22     }
23
24
25     /**
26      * Gets the workingCopies value for this CheckinResult.
27      *
28      * @return workingCopies
29      */

30     public org.alfresco.example.webservice.types.Reference[] getWorkingCopies() {
31         return workingCopies;
32     }
33
34
35     /**
36      * Sets the workingCopies value for this CheckinResult.
37      *
38      * @param workingCopies
39      */

40     public void setWorkingCopies(org.alfresco.example.webservice.types.Reference[] workingCopies) {
41         this.workingCopies = workingCopies;
42     }
43
44     public org.alfresco.example.webservice.types.Reference getWorkingCopies(int i) {
45         return this.workingCopies[i];
46     }
47
48     public void setWorkingCopies(int i, org.alfresco.example.webservice.types.Reference _value) {
49         this.workingCopies[i] = _value;
50     }
51
52
53     /**
54      * Gets the checkedIn value for this CheckinResult.
55      *
56      * @return checkedIn
57      */

58     public org.alfresco.example.webservice.types.Reference[] getCheckedIn() {
59         return checkedIn;
60     }
61
62
63     /**
64      * Sets the checkedIn value for this CheckinResult.
65      *
66      * @param checkedIn
67      */

68     public void setCheckedIn(org.alfresco.example.webservice.types.Reference[] checkedIn) {
69         this.checkedIn = checkedIn;
70     }
71
72     public org.alfresco.example.webservice.types.Reference getCheckedIn(int i) {
73         return this.checkedIn[i];
74     }
75
76     public void setCheckedIn(int i, org.alfresco.example.webservice.types.Reference _value) {
77         this.checkedIn[i] = _value;
78     }
79
80     private java.lang.Object JavaDoc __equalsCalc = null;
81     public synchronized boolean equals(java.lang.Object JavaDoc obj) {
82         if (!(obj instanceof CheckinResult)) return false;
83         CheckinResult other = (CheckinResult) obj;
84         if (obj == null) return false;
85         if (this == obj) return true;
86         if (__equalsCalc != null) {
87             return (__equalsCalc == obj);
88         }
89         __equalsCalc = obj;
90         boolean _equals;
91         _equals = true &&
92             ((this.workingCopies==null && other.getWorkingCopies()==null) ||
93              (this.workingCopies!=null &&
94               java.util.Arrays.equals(this.workingCopies, other.getWorkingCopies()))) &&
95             ((this.checkedIn==null && other.getCheckedIn()==null) ||
96              (this.checkedIn!=null &&
97               java.util.Arrays.equals(this.checkedIn, other.getCheckedIn())));
98         __equalsCalc = null;
99         return _equals;
100     }
101
102     private boolean __hashCodeCalc = false;
103     public synchronized int hashCode() {
104         if (__hashCodeCalc) {
105             return 0;
106         }
107         __hashCodeCalc = true;
108         int _hashCode = 1;
109         if (getWorkingCopies() != null) {
110             for (int i=0;
111                  i<java.lang.reflect.Array.getLength(getWorkingCopies());
112                  i++) {
113                 java.lang.Object JavaDoc obj = java.lang.reflect.Array.get(getWorkingCopies(), i);
114                 if (obj != null &&
115                     !obj.getClass().isArray()) {
116                     _hashCode += obj.hashCode();
117                 }
118             }
119         }
120         if (getCheckedIn() != null) {
121             for (int i=0;
122                  i<java.lang.reflect.Array.getLength(getCheckedIn());
123                  i++) {
124                 java.lang.Object JavaDoc obj = java.lang.reflect.Array.get(getCheckedIn(), i);
125                 if (obj != null &&
126                     !obj.getClass().isArray()) {
127                     _hashCode += obj.hashCode();
128                 }
129             }
130         }
131         __hashCodeCalc = false;
132         return _hashCode;
133     }
134
135     // Type metadata
136
private static org.apache.axis.description.TypeDesc typeDesc =
137         new org.apache.axis.description.TypeDesc(CheckinResult.class, true);
138
139     static {
140         typeDesc.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/authoring/1.0", "CheckinResult"));
141         org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
142         elemField.setFieldName("workingCopies");
143         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/authoring/1.0", "workingCopies"));
144         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "Reference"));
145         elemField.setMinOccurs(0);
146         elemField.setNillable(false);
147         elemField.setMaxOccursUnbounded(true);
148         typeDesc.addFieldDesc(elemField);
149         elemField = new org.apache.axis.description.ElementDesc();
150         elemField.setFieldName("checkedIn");
151         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/authoring/1.0", "checkedIn"));
152         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "Reference"));
153         elemField.setMinOccurs(0);
154         elemField.setNillable(false);
155         elemField.setMaxOccursUnbounded(true);
156         typeDesc.addFieldDesc(elemField);
157     }
158
159     /**
160      * Return type metadata object
161      */

162     public static org.apache.axis.description.TypeDesc getTypeDesc() {
163         return typeDesc;
164     }
165
166     /**
167      * Get Custom Serializer
168      */

169     public static org.apache.axis.encoding.Serializer getSerializer(
170            java.lang.String JavaDoc mechType,
171            java.lang.Class JavaDoc _javaType,
172            javax.xml.namespace.QName JavaDoc _xmlType) {
173         return
174           new org.apache.axis.encoding.ser.BeanSerializer(
175             _javaType, _xmlType, typeDesc);
176     }
177
178     /**
179      * Get Custom Deserializer
180      */

181     public static org.apache.axis.encoding.Deserializer getDeserializer(
182            java.lang.String JavaDoc mechType,
183            java.lang.Class JavaDoc _javaType,
184            javax.xml.namespace.QName JavaDoc _xmlType) {
185         return
186           new org.apache.axis.encoding.ser.BeanDeserializer(
187             _javaType, _xmlType, typeDesc);
188     }
189
190 }
191
Popular Tags