View Javadoc

1   /*
2    * $Id: PartnerLinksImpl.java,v 1.1 2004/12/15 14:18:12 patforna Exp $
3    *
4    * Copyright (c) 2004 Patric Fornasier, Pawel Kowalski
5    * Berne University of Applied Sciences
6    * School of Engineering and Information Technology
7    * All rights reserved.
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      // 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, 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  }