KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > axis > wsdl > symbolTable > Parameters


1 /*
2  * Copyright 2001-2004 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 package org.apache.axis.wsdl.symbolTable;
17
18 import javax.wsdl.OperationType;
19 import java.util.Map JavaDoc;
20 import java.util.Vector JavaDoc;
21
22 /**
23  * This class simply collects all the parameter or message data for an operation into one place.
24  */

25 public class Parameters {
26     /** The MEP for this operation (default is request-response) */
27     public OperationType mep = OperationType.REQUEST_RESPONSE;
28
29     // This vector contains instances of the Parameter class
30

31     /** Field list */
32     public Vector JavaDoc list = new Vector JavaDoc();
33
34     // The return info is stored as a Parameter.
35

36     /** Field returnParam */
37     public Parameter returnParam = null;
38
39     // A map of the faults
40

41     /** Field faults */
42     public Map JavaDoc faults = null;
43
44     // The signature that the interface and the stub will use
45

46     /** Field signature */
47     public String JavaDoc signature = null;
48
49     // The numbers of the respective parameters
50

51     /** Field inputs */
52     public int inputs = 0;
53
54     /** Field inouts */
55     public int inouts = 0;
56
57     /** Field outputs */
58     public int outputs = 0;
59
60     /**
61      * Method toString
62      *
63      * @return
64      */

65     public String JavaDoc toString() {
66
67         return "\nreturnParam = " + returnParam + "\nfaults = " + faults
68                 + "\nsignature = " + signature
69                 + "\n(inputs, inouts, outputs) = (" + inputs + ", " + inouts
70                 + ", " + outputs + ")" + "\nlist = " + list;
71     } // toString
72
} // class Parameters
73
Popular Tags