01: /*
02: * BindingFaultImpl.java
03: *
04: * Created on September 24, 2006, 5:03 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;
11:
12: import java.util.ArrayList;
13: import java.util.Collections;
14: import java.util.List;
15: import org.netbeans.modules.e2e.api.wsdl.BindingFault;
16: import org.netbeans.modules.e2e.api.wsdl.extensions.ExtensibilityElement;
17:
18: /**
19: *
20: * @author Michal Skvor
21: */
22: public class BindingFaultImpl implements BindingFault {
23:
24: private String name;
25:
26: private List<ExtensibilityElement> extensibilityElements;
27:
28: /** Creates a new instance of BindingFaultImpl */
29: public BindingFaultImpl(String name) {
30: this .name = name;
31: extensibilityElements = new ArrayList();
32: }
33:
34: public void setName(String name) {
35: this .name = name;
36: }
37:
38: public String getName() {
39: return name;
40: }
41:
42: public void addExtensibilityElement(
43: ExtensibilityElement extensibilityElement) {
44: extensibilityElements.add(extensibilityElement);
45: }
46:
47: public List<ExtensibilityElement> getExtensibilityElements() {
48: return Collections.unmodifiableList(extensibilityElements);
49: }
50: }
|