01: /*
02: * SOAPBodyImpl.java
03: *
04: * Created on September 27, 2006, 3:30 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.ArrayList;
13: import java.util.Collections;
14: import java.util.List;
15: import javax.xml.namespace.QName;
16: import org.netbeans.modules.e2e.api.wsdl.extensions.soap.SOAPBody;
17:
18: /**
19: *
20: * @author Michal Skvor
21: */
22: public class SOAPBodyImpl implements SOAPBody {
23:
24: private List<String> parts;
25: private String use;
26: private List<String> encodingStyles;
27: private String namespaceURI;
28:
29: private QName type = SOAPConstants.BODY;
30:
31: /** Creates a new instance of SOAPBodyImpl */
32: public SOAPBodyImpl(String use) {
33: this .use = use;
34: parts = new ArrayList();
35: }
36:
37: public void setParts(List<String> parts) {
38: this .parts = parts;
39: }
40:
41: public List<String> getParts() {
42: return Collections.unmodifiableList(parts);
43: }
44:
45: public void setUse(String use) {
46: this .use = use;
47: }
48:
49: public String getUse() {
50: return use;
51: }
52:
53: public void setEncodingStyles(List<String> encodingStyles) {
54: this .encodingStyles = encodingStyles;
55: }
56:
57: public List<String> getEncodingStyles() {
58: return Collections.unmodifiableList(encodingStyles);
59: }
60:
61: public void setNamespaceURI(String namespaceURI) {
62: this .namespaceURI = namespaceURI;
63: }
64:
65: public String getNamespaceURI() {
66: return namespaceURI;
67: }
68:
69: public void setElementType(QName type) {
70: this .type = type;
71: }
72:
73: public QName getElementType() {
74: return type;
75: }
76: }
|