1
2
3
4
5
6
7
8
9 package bexee.model.elements.impl;
10
11 import java.util.ArrayList;
12 import java.util.List;
13
14 import bexee.core.ProcessController;
15 import bexee.core.ProcessInstance;
16 import bexee.model.BPELElementVisitor;
17 import bexee.model.elements.PartnerLink;
18 import bexee.model.elements.PartnerLinks;
19
20 /***
21 * Default implementation of the <code>PartnerLinks</code> BPEL element.
22 *
23 * @version $Revision: 1.1 $, $Date: 2004/12/15 14:18:12 $
24 * @author Patric Fornasier
25 * @author Pawel Kowalski
26 */
27 public class PartnerLinksImpl implements PartnerLinks {
28
29 private List partnerLinks = null;
30
31 public PartnerLinksImpl() {
32 super();
33 partnerLinks = new ArrayList();
34 }
35
36 //***************************************************/
37
38 //***************************************************/
39
40 public void addPartnerLink(PartnerLink partnerLink) {
41 partnerLinks.add(partnerLink);
42 }
43
44 public List getPartnerLinks() {
45 return partnerLinks;
46 }
47
48 //***************************************************/
49
50 //***************************************************/
51
52 public void accept(ProcessController controller, ProcessInstance instance)
53 throws Exception {
54 controller.process(this, instance);
55 }
56
57 public void accept(BPELElementVisitor elementVisitor) {
58 elementVisitor.visit(this);
59 }
60
61 }