01: /*
02: * $Id: PartnerLinkImpl.java,v 1.11 2004/12/09 12:34:41 kowap Exp $
03: *
04: * Copyright (c) 2004 Patric Fornasier, Pawel Kowalski
05: * Berne University of Applied Sciences
06: * School of Engineering and Information Technology
07: * All rights reserved.
08: */
09: 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.11 $, $Date: 2004/12/09 12:34:41 $
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: // c'tors
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: // bexee.model.PartnerLink
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: // bexee.model.BPELElement
88: //**************************************************/
89:
90: public void accept(ProcessController controller,
91: ProcessInstance instance) throws Exception {
92: controller.process(this , instance);
93: }
94:
95: public void accept(BPELElementVisitor elementVisitor) {
96: elementVisitor.visit(this);
97: }
98:
99: }
|