1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package javax.xml.rpc;
17
18 /**
19 * The <code>javax.xml.rpc.ParameterMode</code> is a type-safe
20 * enumeration for parameter mode. This class is used in the
21 * <code>Call</code>API to specify parameter passing modes.
22 *
23 * @version 1.0
24 */
25 public class ParameterMode {
26
27 /** Mode name. */
28 private final String mode;
29
30 /** The mode is 'IN'. */
31 public static final ParameterMode IN = new ParameterMode("IN");
32
33 /** The mode is 'INOUT'. */
34 public static final ParameterMode INOUT = new ParameterMode("INOUT");
35
36 /** The mode is 'OUT'. */
37 public static final ParameterMode OUT = new ParameterMode("OUT");
38
39 /**
40 * Make a new mode.
41 *
42 * @param mode name for the mode
43 */
44 private ParameterMode(String mode) {
45 this.mode = mode;
46 }
47
48 public String toString() {
49 return mode;
50 }
51 }
52