KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > webservice > metadata > jaxrpcmapping > WsdlMessageMapping


1 /*
2  * JBoss, the OpenSource J2EE webOS
3  *
4  * Distributable under LGPL license.
5  * See terms of license at gnu.org.
6  */

7 package org.jboss.webservice.metadata.jaxrpcmapping;
8
9 import javax.xml.namespace.QName JavaDoc;
10
11 // $Id: WsdlMessageMapping.java,v 1.1 2004/05/14 18:34:23 tdiesler Exp $
12

13 /**
14  * Created by IntelliJ IDEA.
15  *
16  * @author Thomas.Diesler@jboss.org
17  * @since 14-May-2004
18  */

19 public class WsdlMessageMapping
20 {
21    // The parent <method-param-parts-mapping> element
22
private MethodParamPartsMapping methodParamPartsMapping;
23    // The required <wsdl-message> element
24
private QName JavaDoc wsdlMessage;
25    // The required <wsdl-message-part-name> element
26
private String JavaDoc wsdlMessagePartName;
27    // The required <parameter-mode> element
28
private String JavaDoc parameterMode;
29    // The optional <soap-header> element
30
private boolean soapHeader;
31
32    public WsdlMessageMapping(MethodParamPartsMapping methodParamPartsMapping)
33    {
34       this.methodParamPartsMapping = methodParamPartsMapping;
35    }
36
37    public MethodParamPartsMapping getMethodParamPartsMapping()
38    {
39       return methodParamPartsMapping;
40    }
41
42    public String JavaDoc getParameterMode()
43    {
44       return parameterMode;
45    }
46
47    public void setParameterMode(String JavaDoc parameterMode)
48    {
49       if ("IN".equals(parameterMode) == false && "OUT".equals(parameterMode) == false && "INOUT".equals(parameterMode) == false)
50          throw new IllegalArgumentException JavaDoc("Invalid parameter mode: " + parameterMode);
51       this.parameterMode = parameterMode;
52    }
53
54    public boolean isSoapHeader()
55    {
56       return soapHeader;
57    }
58
59    public void setSoapHeader(boolean soapHeader)
60    {
61       this.soapHeader = soapHeader;
62    }
63
64    public QName JavaDoc getWsdlMessage()
65    {
66       return wsdlMessage;
67    }
68
69    public void setWsdlMessage(QName JavaDoc wsdlMessage)
70    {
71       this.wsdlMessage = wsdlMessage;
72    }
73
74    public String JavaDoc getWsdlMessagePartName()
75    {
76       return wsdlMessagePartName;
77    }
78
79    public void setWsdlMessagePartName(String JavaDoc wsdlMessagePartName)
80    {
81       this.wsdlMessagePartName = wsdlMessagePartName;
82    }
83 }
84
Popular Tags