01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one
03: * or more contributor license agreements. See the NOTICE file
04: * distributed with this work for additional information
05: * regarding copyright ownership. The ASF licenses this file
06: * to you under the Apache License, Version 2.0 (the
07: * "License"); you may not use this file except in compliance
08: * with the License. You may obtain a copy of the License at
09: *
10: * http://www.apache.org/licenses/LICENSE-2.0
11: *
12: * Unless required by applicable law or agreed to in writing,
13: * software distributed under the License is distributed on an
14: * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15: * KIND, either express or implied. See the License for the
16: * specific language governing permissions and limitations
17: * under the License.
18: */
19: package org.apache.axis2.jaxws.marshaller;
20:
21: import org.apache.axis2.jaxws.description.ParameterDescription;
22:
23: /**
24: * Stores Method Parameter as Name and Value. Method Parameter can be an input Method Parameter or
25: * output Method parameter. input Method Parameter is a input to a java Method. output Method
26: * Parameter is a return parameter from a java Method.
27: */
28: public class MethodParameter {
29: private ParameterDescription parameterDescription = null;
30: private String webResultName = null;
31: private String webResultTNS = null;
32: private Class webResultType = null;
33: private boolean isWebResult = false;
34: private Object value = null;
35:
36: public MethodParameter(ParameterDescription parameterDescription,
37: Object value) {
38: super ();
39: this .parameterDescription = parameterDescription;
40: this .value = value;
41: }
42:
43: public MethodParameter(String webResultName, String webResultTNS,
44: Class webResultType, Object value) {
45: super ();
46: this .parameterDescription = null;
47: this .webResultName = webResultName;
48: this .webResultTNS = webResultTNS;
49: this .webResultType = webResultType;
50: this .value = value;
51: this .isWebResult = true;
52: }
53:
54: public ParameterDescription getParameterDescription() {
55: return parameterDescription;
56: }
57:
58: public void setParameterDescription(
59: ParameterDescription parameterDescription) {
60: this .parameterDescription = parameterDescription;
61: }
62:
63: public String getWebResultName() {
64: return webResultName;
65: }
66:
67: public void setWebResultName(String webResultName) {
68: this .webResultName = webResultName;
69: }
70:
71: public boolean isWebResult() {
72: return isWebResult;
73: }
74:
75: public void setWebResult(boolean isWebResult) {
76: this .isWebResult = isWebResult;
77: }
78:
79: public Object getValue() {
80: return value;
81: }
82:
83: public String getWebResultTNS() {
84: return webResultTNS;
85: }
86:
87: public void setWebResultTNS(String webResultTNS) {
88: this .webResultTNS = webResultTNS;
89: }
90:
91: public Class getWebResultType() {
92: return webResultType;
93: }
94:
95: public void setWebResultType(Class webResultType) {
96: this.webResultType = webResultType;
97: }
98: }
|