01: /*
02: * (C) Copyright 2000 - 2005 Nabh Information Systems, Inc.
03: *
04: * This program is free software; you can redistribute it and/or
05: * modify it under the terms of the GNU General Public License
06: * as published by the Free Software Foundation; either version 2
07: * of the License, or (at your option) any later version.
08: *
09: * This program is distributed in the hope that it will be useful,
10: * but WITHOUT ANY WARRANTY; without even the implied warranty of
11: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12: * GNU General Public License for more details.
13: *
14: * You should have received a copy of the GNU General Public License
15: * along with this program; if not, write to the Free Software
16: * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17: *
18: */
19:
20: package com.nabhinc.ws.core;
21:
22: import java.io.Serializable;
23:
24: /**
25: * Represents an argument for a method on a Web service.
26: *
27: * @author Padmanabh Dabke
28: * (c) 2005 Nabh Information Systems, Inc. All Rights Reserved.
29: */
30: public class MethodArgument implements Serializable {
31: /**
32: * Comment for <code>serialVersionUID</code>
33: */
34: private static final long serialVersionUID = 3256720701745805111L;
35: public static final int PARAM_TYPE_IN = 0;
36: public static final int PARAM_TYPE_OUT = 1;
37: public static final int PARAM_TYPE_INOUT = 2;
38:
39: private int maType = PARAM_TYPE_IN;
40: private String maName = null;
41: private Object maValue = null;
42:
43: /**
44: *
45: */
46: public MethodArgument(String name, Object val) {
47: maName = name;
48: maValue = val;
49: }
50:
51: public MethodArgument(String name, Object val, int paramType) {
52: this (name, val);
53: maType = paramType;
54: }
55:
56: public String getName() {
57: return maName;
58: }
59:
60: public Object getValue() {
61: return maValue;
62: }
63:
64: public void setValue(Object val) {
65: maValue = val;
66: }
67:
68: }
|