1
2
3
4
5
6
7
8
9 package bexee.model.elements.impl;
10
11 import javax.xml.namespace.QName;
12
13 import bexee.core.ProcessController;
14 import bexee.core.ProcessInstance;
15 import bexee.model.BPELElementVisitor;
16 import bexee.model.elements.PartnerLink;
17
18 /***
19 * Default implementation of the <code>PartnerLink</code> BPEL element.
20 *
21 * @version $Revision: 1.1 $, $Date: 2004/12/15 14:18:12 $
22 * @author Patric Fornasier
23 * @author Pawel Kowalski
24 */
25 public class PartnerLinkImpl implements PartnerLink {
26
27 private String name = null;
28
29 private QName partnerLinkType = null;
30
31 private String myRole = null;
32
33 private String partnerRole = null;
34
35 //***************************************************/
36
37 //***************************************************/
38
39 public PartnerLinkImpl() {
40 super();
41 }
42
43 /***
44 * @param value
45 */
46 public PartnerLinkImpl(String name) {
47 this.name = name;
48 }
49
50 //***************************************************/
51
52 //***************************************************/
53
54 public void setName(String name) {
55 this.name = name;
56 }
57
58 public String getName() {
59 return name;
60 }
61
62 public void setPartnerLinkType(QName partnerLinkType) {
63 this.partnerLinkType = partnerLinkType;
64 }
65
66 public QName getPartnerLinkType() {
67 return partnerLinkType;
68 }
69
70 public void setMyRole(String myRole) {
71 this.myRole = myRole;
72 }
73
74 public String getMyRole() {
75 return myRole;
76 }
77
78 public void setPartnerRole(String partnerRole) {
79 this.partnerRole = partnerRole;
80 }
81
82 public String getPartnerRole() {
83 return partnerRole;
84 }
85
86 //***************************************************/
87
88 //***************************************************/
89
90 public void accept(ProcessController controller, ProcessInstance instance)
91 throws Exception {
92 controller.process(this, instance);
93 }
94
95 public void accept(BPELElementVisitor elementVisitor) {
96 elementVisitor.visit(this);
97 }
98
99 }