KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > test > wsdl > marrays > MArrayTestsSOAPBindingImpl


1 /**
2  * MArrayTestsSOAPBindingImpl.java
3  *
4  * This file was auto-generated from WSDL
5  * by the Apache Axis Wsdl2java emitter.
6  */

7
8 package test.wsdl.marrays;
9
10 public class MArrayTestsSOAPBindingImpl implements test.wsdl.marrays.MArrayTests {
11     public int[][][] testIntArray(int[][][] in) throws java.rmi.RemoteException JavaDoc {
12         // Each non-nill element should have a value that is i + 10*j + 100*k
13
// Add 1000 to each correct value encountered.
14
for (int i=0; i < in.length; i++) {
15             int[][] array2 = in[i];
16             if (array2 != null)
17                 for (int j=0; j < array2.length; j++) {
18                     int[] array3 = array2[j];
19                     if (array3 != null)
20                         for (int k=0; k <array3.length; k++) {
21                             if (array3[k] == i + 10*j + 100*k)
22                                 array3[k] += 1000;
23                         }
24                 }
25         }
26         return in;
27     }
28     public test.wsdl.marrays.Foo[][][] testFooArray(test.wsdl.marrays.Foo[][][] in) throws java.rmi.RemoteException JavaDoc {
29         // Each non-nill element should have a value that is i + 10*j + 100*k
30
// Add 1000 to each correct value encountered.
31
for (int i=0; i < in.length; i++) {
32             Foo[][] array2 = in[i];
33             if (array2 != null)
34                 for (int j=0; j < array2.length; j++) {
35                     Foo[] array3 = array2[j];
36                     if (array3 != null)
37                         for (int k=0; k <array3.length; k++) {
38                             if (array3[k].getValue() == i + 10*j + 100*k)
39                                 array3[k].setValue(i + 10*j + 100*k + 1000);
40                         }
41                 }
42         }
43         return in;
44     }
45     public java.util.HashMap JavaDoc testMapFooArray(java.util.HashMap JavaDoc map)
46         throws java.rmi.RemoteException JavaDoc {
47         return map;
48     }
49 }
50
Popular Tags