KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > axis2 > sample > echo > EchoStruct


1 /*
2  * Copyright 2004,2005 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16  
17 package org.apache.axis2.sample.echo;
18
19 public class EchoStruct implements java.io.Serializable JavaDoc {
20     private java.lang.String JavaDoc value1;
21     private java.lang.String JavaDoc value10;
22     private java.lang.String JavaDoc value11;
23     private java.lang.String JavaDoc value12;
24     private java.lang.String JavaDoc value13;
25     private java.lang.String JavaDoc value2;
26     private int value3;
27     private java.lang.String JavaDoc value4;
28     private java.lang.String JavaDoc value5;
29     private java.lang.String JavaDoc value6;
30     private java.lang.String JavaDoc value7;
31     private java.lang.String JavaDoc value8;
32     private java.lang.String JavaDoc value9;
33
34     public EchoStruct() {
35     }
36
37     public EchoStruct(
38         java.lang.String JavaDoc value1,
39         java.lang.String JavaDoc value10,
40         java.lang.String JavaDoc value11,
41         java.lang.String JavaDoc value12,
42         java.lang.String JavaDoc value13,
43         java.lang.String JavaDoc value2,
44         int value3,
45         java.lang.String JavaDoc value4,
46         java.lang.String JavaDoc value5,
47         java.lang.String JavaDoc value6,
48         java.lang.String JavaDoc value7,
49         java.lang.String JavaDoc value8,
50         java.lang.String JavaDoc value9) {
51         this.value1 = value1;
52         this.value10 = value10;
53         this.value11 = value11;
54         this.value12 = value12;
55         this.value13 = value13;
56         this.value2 = value2;
57         this.value3 = value3;
58         this.value4 = value4;
59         this.value5 = value5;
60         this.value6 = value6;
61         this.value7 = value7;
62         this.value8 = value8;
63         this.value9 = value9;
64     }
65
66     /**
67      * Gets the value1 value for this EchoStruct.
68      *
69      * @return value1
70      */

71     public java.lang.String JavaDoc getValue1() {
72         return value1;
73     }
74
75     /**
76      * Sets the value1 value for this EchoStruct.
77      *
78      * @param value1
79      */

80     public void setValue1(java.lang.String JavaDoc value1) {
81         this.value1 = value1;
82     }
83
84     /**
85      * Gets the value10 value for this EchoStruct.
86      *
87      * @return value10
88      */

89     public java.lang.String JavaDoc getValue10() {
90         return value10;
91     }
92
93     /**
94      * Sets the value10 value for this EchoStruct.
95      *
96      * @param value10
97      */

98     public void setValue10(java.lang.String JavaDoc value10) {
99         this.value10 = value10;
100     }
101
102     /**
103      * Gets the value11 value for this EchoStruct.
104      *
105      * @return value11
106      */

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

116     public void setValue11(java.lang.String JavaDoc value11) {
117         this.value11 = value11;
118     }
119
120     /**
121      * Gets the value12 value for this EchoStruct.
122      *
123      * @return value12
124      */

125     public java.lang.String JavaDoc getValue12() {
126         return value12;
127     }
128
129     /**
130      * Sets the value12 value for this EchoStruct.
131      *
132      * @param value12
133      */

134     public void setValue12(java.lang.String JavaDoc value12) {
135         this.value12 = value12;
136     }
137
138     /**
139      * Gets the value13 value for this EchoStruct.
140      *
141      * @return value13
142      */

143     public java.lang.String JavaDoc getValue13() {
144         return value13;
145     }
146
147     /**
148      * Sets the value13 value for this EchoStruct.
149      *
150      * @param value13
151      */

152     public void setValue13(java.lang.String JavaDoc value13) {
153         this.value13 = value13;
154     }
155
156     /**
157      * Gets the value2 value for this EchoStruct.
158      *
159      * @return value2
160      */

161     public java.lang.String JavaDoc getValue2() {
162         return value2;
163     }
164
165     /**
166      * Sets the value2 value for this EchoStruct.
167      *
168      * @param value2
169      */

170     public void setValue2(java.lang.String JavaDoc value2) {
171         this.value2 = value2;
172     }
173
174     /**
175      * Gets the value3 value for this EchoStruct.
176      *
177      * @return value3
178      */

179     public int getValue3() {
180         return value3;
181     }
182
183     /**
184      * Sets the value3 value for this EchoStruct.
185      *
186      * @param value3
187      */

188     public void setValue3(int value3) {
189         this.value3 = value3;
190     }
191
192     /**
193      * Gets the value4 value for this EchoStruct.
194      *
195      * @return value4
196      */

197     public java.lang.String JavaDoc getValue4() {
198         return value4;
199     }
200
201     /**
202      * Sets the value4 value for this EchoStruct.
203      *
204      * @param value4
205      */

206     public void setValue4(java.lang.String JavaDoc value4) {
207         this.value4 = value4;
208     }
209
210     /**
211      * Gets the value5 value for this EchoStruct.
212      *
213      * @return value5
214      */

215     public java.lang.String JavaDoc getValue5() {
216         return value5;
217     }
218
219     /**
220      * Sets the value5 value for this EchoStruct.
221      *
222      * @param value5
223      */

224     public void setValue5(java.lang.String JavaDoc value5) {
225         this.value5 = value5;
226     }
227
228     /**
229      * Gets the value6 value for this EchoStruct.
230      *
231      * @return value6
232      */

233     public java.lang.String JavaDoc getValue6() {
234         return value6;
235     }
236
237     /**
238      * Sets the value6 value for this EchoStruct.
239      *
240      * @param value6
241      */

242     public void setValue6(java.lang.String JavaDoc value6) {
243         this.value6 = value6;
244     }
245
246     /**
247      * Gets the value7 value for this EchoStruct.
248      *
249      * @return value7
250      */

251     public java.lang.String JavaDoc getValue7() {
252         return value7;
253     }
254
255     /**
256      * Sets the value7 value for this EchoStruct.
257      *
258      * @param value7
259      */

260     public void setValue7(java.lang.String JavaDoc value7) {
261         this.value7 = value7;
262     }
263
264     /**
265      * Gets the value8 value for this EchoStruct.
266      *
267      * @return value8
268      */

269     public java.lang.String JavaDoc getValue8() {
270         return value8;
271     }
272
273     /**
274      * Sets the value8 value for this EchoStruct.
275      *
276      * @param value8
277      */

278     public void setValue8(java.lang.String JavaDoc value8) {
279         this.value8 = value8;
280     }
281
282     /**
283      * Gets the value9 value for this EchoStruct.
284      *
285      * @return value9
286      */

287     public java.lang.String JavaDoc getValue9() {
288         return value9;
289     }
290
291     /**
292      * Sets the value9 value for this EchoStruct.
293      *
294      * @param value9
295      */

296     public void setValue9(java.lang.String JavaDoc value9) {
297         this.value9 = value9;
298     }
299
300     /* (non-Javadoc)
301      * @see java.lang.Object#equals(java.lang.Object)
302      */

303     public boolean equals(Object JavaDoc obj) {
304         if (obj instanceof EchoStruct) {
305             EchoStruct val = (EchoStruct) obj;
306             if (value1.equals(val.value1)
307                 && value2.equals(val.value2)
308                 && (value3 == val.value3)
309                 && value4.equals(val.value4)
310                 && value5.equals(val.value5)
311                 && value6.equals(val.value6)
312                 && value7.equals(val.value7)
313                 && value8.equals(val.value8)
314                 && value9.equals(val.value9)
315                 && value10.equals(val.value10)
316                 && value11.equals(val.value11)
317                 && value12.equals(val.value12)
318                 && value13.equals(val.value13)) {
319                                 return true;
320                            
321
322             }
323             
324         }
325         return false;
326
327     }
328 }
329
Popular Tags