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