KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > alfresco > repo > webservice > authoring > CheckoutResult


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

31     public org.alfresco.repo.webservice.types.Reference[] getOriginals() {
32         return originals;
33     }
34
35
36     /**
37      * Sets the originals value for this CheckoutResult.
38      *
39      * @param originals
40      */

41     public void setOriginals(org.alfresco.repo.webservice.types.Reference[] originals) {
42         this.originals = originals;
43     }
44
45     public org.alfresco.repo.webservice.types.Reference getOriginals(int i) {
46         return this.originals[i];
47     }
48
49     public void setOriginals(int i, org.alfresco.repo.webservice.types.Reference _value) {
50         this.originals[i] = _value;
51     }
52
53
54     /**
55      * Gets the workingCopies value for this CheckoutResult.
56      *
57      * @return workingCopies
58      */

59     public org.alfresco.repo.webservice.types.Reference[] getWorkingCopies() {
60         return workingCopies;
61     }
62
63
64     /**
65      * Sets the workingCopies value for this CheckoutResult.
66      *
67      * @param workingCopies
68      */

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

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

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

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