01: /*
02: * SOAPHeaderImpl.java
03: *
04: * Created on September 27, 2006, 3:41 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.soap.SOAPHeader;
16:
17: /**
18: *
19: * @author Michal Skvor
20: */
21: public class SOAPHeaderImpl implements SOAPHeader {
22:
23: private QName message;
24: private String part;
25: private String use;
26: private List<String> encodingStyles;
27: private String namespaceURI;
28:
29: private QName type = SOAPConstants.HEADER;
30:
31: /** Creates a new instance of SOAPHeaderImpl */
32: public SOAPHeaderImpl(QName message, String part, String use) {
33: this .message = message;
34: this .part = part;
35: this .use = use;
36: }
37:
38: public void setMessage(QName message) {
39: this .message = message;
40: }
41:
42: public QName getMessage() {
43: return message;
44: }
45:
46: public void setPart(String part) {
47: this .part = part;
48: }
49:
50: public String getPart() {
51: return part;
52: }
53:
54: public void setUse(String use) {
55: this .use = use;
56: }
57:
58: public String getUse() {
59: return use;
60: }
61:
62: public void setEncodingStyles(List<String> encodingStyles) {
63: this .encodingStyles = encodingStyles;
64: }
65:
66: public List<String> getEncodingStyles() {
67: return Collections.unmodifiableList(encodingStyles);
68: }
69:
70: public void setNamespaceURI(String namespaceURI) {
71: this .namespaceURI = namespaceURI;
72: }
73:
74: public String getNamespaceURI() {
75: return namespaceURI;
76: }
77:
78: public void setElementType(QName type) {
79: this .type = type;
80: }
81:
82: public QName getElementType() {
83: return type;
84: }
85:
86: }
|