01: /*
02: * SOAPBindingImpl.java
03: *
04: * Created on September 27, 2006, 2:25 PM
05: *
06: * To change this template, choose Tools | Template Manager
07: * and open the template in the editor.
08: */
09:
10: package org.netbeans.modules.e2e.wsdl.extensions.soap;
11:
12: import java.util.Collections;
13: import java.util.List;
14: import javax.xml.namespace.QName;
15: import org.netbeans.modules.e2e.api.wsdl.extensions.ExtensibilityElement;
16: import org.netbeans.modules.e2e.api.wsdl.extensions.soap.SOAPBinding;
17:
18: /**
19: *
20: * @author Michal Skvor
21: */
22: public class SOAPBindingImpl implements SOAPBinding {
23:
24: private String transportURI;
25: private String style;
26:
27: private List<ExtensibilityElement> extensibilityElements;
28:
29: private QName type = SOAPConstants.BINDING;
30:
31: /** Creates a new instance of SOAPBindingImpl */
32: public SOAPBindingImpl(String transportURI, String style) {
33: this .transportURI = transportURI;
34: this .style = style;
35: }
36:
37: public void setTransportURI(String transportURI) {
38: this .transportURI = transportURI;
39: }
40:
41: public String getTransportURI() {
42: return transportURI;
43: }
44:
45: public void setStyle(String style) {
46: this .style = style;
47: }
48:
49: public String getStyle() {
50: return style;
51: }
52:
53: public void addExtensibilityElement(
54: ExtensibilityElement extensibilityElement) {
55: extensibilityElements.add(extensibilityElement);
56: }
57:
58: public List<ExtensibilityElement> getExtensibilityElements() {
59: return Collections.unmodifiableList(extensibilityElements);
60: }
61:
62: public void setElementType(QName type) {
63: this .type = type;
64: }
65:
66: public QName getElementType() {
67: return type;
68: }
69:
70: }
|