01: /**
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: */package org.apache.openejb.jee;
17:
18: import javax.xml.bind.annotation.XmlAccessType;
19: import javax.xml.bind.annotation.XmlAccessorType;
20: import javax.xml.bind.annotation.XmlAttribute;
21: import javax.xml.bind.annotation.XmlElement;
22: import javax.xml.bind.annotation.XmlID;
23: import javax.xml.bind.annotation.XmlType;
24: import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
25: import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
26: import javax.xml.namespace.QName;
27:
28: /**
29: * The wsdl-message-mapping element defines the mapping to a
30: * specific message and its part. Together they define uniquely
31: * the mapping for a specific parameter. Parts within a message
32: * context are uniquely identified with their names.
33: * <p/>
34: * The parameter-mode is defined by the mapping to indicate
35: * whether the mapping will be IN, OUT, or INOUT.. The presence
36: * of the soap-header element indicates that the parameter is
37: * mapped to a soap header only. When absent, it means that the
38: * wsdl-message is mapped to a Java parameter. The soap headers
39: * are interpreted in the order they are provided in the mapping.
40: * <p/>
41: * Used in: method-param-parts-mapping
42: */
43: @XmlAccessorType(XmlAccessType.FIELD)
44: @XmlType(name="wsdl-message-mappingType",propOrder={"wsdlMessage","wsdlMessagePartName","parameterMode","soapHeader"})
45: public class WsdlMessageMapping {
46: @XmlElement(name="wsdl-message",required=true)
47: protected QName wsdlMessage;
48: @XmlElement(name="wsdl-message-part-name",required=true)
49: protected String wsdlMessagePartName;
50: @XmlElement(name="parameter-mode",required=true)
51: protected String parameterMode;
52: @XmlElement(name="soap-header")
53: protected Object soapHeader;
54: @XmlAttribute
55: @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
56: @XmlID
57: protected String id;
58:
59: public QName getWsdlMessage() {
60: return wsdlMessage;
61: }
62:
63: public void setWsdlMessage(QName value) {
64: this .wsdlMessage = value;
65: }
66:
67: public String getWsdlMessagePartName() {
68: return wsdlMessagePartName;
69: }
70:
71: public void setWsdlMessagePartName(String value) {
72: this .wsdlMessagePartName = value;
73: }
74:
75: public String getParameterMode() {
76: return parameterMode;
77: }
78:
79: public void setParameterMode(String value) {
80: this .parameterMode = value;
81: }
82:
83: public Object getSoapHeader() {
84: return soapHeader;
85: }
86:
87: public void setSoapHeader(Object value) {
88: this .soapHeader = value;
89: }
90:
91: public String getId() {
92: return id;
93: }
94:
95: public void setId(String value) {
96: this.id = value;
97: }
98: }
|