01: /*
02: * $Id: PartnerLinksImpl.java,v 1.6 2004/12/09 12:34:43 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 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.6 $, $Date: 2004/12/09 12:34:43 $
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: // bexee.model.elements.PartnerLinks
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: // bexee.model.BPELElement
50: //**************************************************/
51:
52: public void accept(ProcessController controller,
53: ProcessInstance instance) throws Exception {
54: controller.process(this , instance);
55: }
56:
57: public void accept(BPELElementVisitor elementVisitor) {
58: elementVisitor.visit(this);
59: }
60:
61: }
|