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