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: import java.util.ArrayList;
28: import java.util.List;
29:
30: /**
31: * The service-endpoint-interface-mapping defines a tuple
32: * to specify Service Endpoint Interfaces to
33: * WSDL port types and WSDL bindings.
34: * <p/>
35: * An interface may be mapped to a port-type and binding multiple
36: * times. This happens rarely.
37: * <p/>
38: * Used in: java-wsdl-mapping
39: */
40: @XmlAccessorType(XmlAccessType.FIELD)
41: @XmlType(name="service-endpoint-interface-mappingType",propOrder={"serviceEndpointInterface","wsdlPortType","wsdlBinding","serviceEndpointMethodMapping"})
42: public class ServiceEndpointInterfaceMapping implements Keyable<String> {
43: @XmlElement(name="service-endpoint-interface",required=true)
44: protected String serviceEndpointInterface;
45: @XmlElement(name="wsdl-port-type",required=true)
46: protected QName wsdlPortType;
47: @XmlElement(name="wsdl-binding",required=true)
48: protected QName wsdlBinding;
49: @XmlElement(name="service-endpoint-method-mapping")
50: protected List<ServiceEndpointMethodMapping> serviceEndpointMethodMapping;
51: @XmlAttribute
52: @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
53: @XmlID
54: protected String id;
55:
56: public String getKey() {
57: return serviceEndpointInterface;
58: }
59:
60: public String getServiceEndpointInterface() {
61: return serviceEndpointInterface;
62: }
63:
64: public void setServiceEndpointInterface(String value) {
65: this .serviceEndpointInterface = value;
66: }
67:
68: public QName getWsdlPortType() {
69: return wsdlPortType;
70: }
71:
72: public void setWsdlPortType(QName value) {
73: this .wsdlPortType = value;
74: }
75:
76: public QName getWsdlBinding() {
77: return wsdlBinding;
78: }
79:
80: public void setWsdlBinding(QName value) {
81: this .wsdlBinding = value;
82: }
83:
84: public List<ServiceEndpointMethodMapping> getServiceEndpointMethodMapping() {
85: if (serviceEndpointMethodMapping == null) {
86: serviceEndpointMethodMapping = new ArrayList<ServiceEndpointMethodMapping>();
87: }
88: return this .serviceEndpointMethodMapping;
89: }
90:
91: public String getId() {
92: return id;
93: }
94:
95: public void setId(String value) {
96: this.id = value;
97: }
98: }
|