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-interface-mapping element defines how a Java type for
32: * the service interface maps to a WSDL service.
33: * <p/>
34: * Used in: java-wsdl-mapping
35: */
36: @XmlAccessorType(XmlAccessType.FIELD)
37: @XmlType(name="service-interface-mappingType",propOrder={"serviceInterface","wsdlServiceName","portMapping"})
38: public class ServiceInterfaceMapping {
39: @XmlElement(name="service-interface",required=true)
40: protected String serviceInterface;
41: @XmlElement(name="wsdl-service-name",required=true)
42: protected QName wsdlServiceName;
43: @XmlElement(name="port-mapping")
44: protected List<PortMapping> portMapping;
45: @XmlAttribute
46: @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
47: @XmlID
48: protected String id;
49:
50: public String getServiceInterface() {
51: return serviceInterface;
52: }
53:
54: public void setServiceInterface(String value) {
55: this .serviceInterface = value;
56: }
57:
58: public QName getWsdlServiceName() {
59: return wsdlServiceName;
60: }
61:
62: public void setWsdlServiceName(QName value) {
63: this .wsdlServiceName = value;
64: }
65:
66: public List<PortMapping> getPortMapping() {
67: if (portMapping == null) {
68: portMapping = new ArrayList<PortMapping>();
69: }
70: return this .portMapping;
71: }
72:
73: public String getId() {
74: return id;
75: }
76:
77: public void setId(String value) {
78: this.id = value;
79: }
80: }
|