View Javadoc

1   /*
2    * $Id: LinkImpl.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 bexee.core.ProcessController;
12  import bexee.core.ProcessInstance;
13  import bexee.model.BPELElementVisitor;
14  import bexee.model.elements.Link;
15  
16  /***
17   * Default implementation of the <code>Link</code> BPEL element.
18   * 
19   * @version $Revision: 1.1 $, $Date: 2004/12/15 14:18:12 $
20   * @author Patric Fornasier
21   * @author Pawel Kowalski
22   */
23  public class LinkImpl implements Link {
24  
25      private String name = null;
26  
27      //***************************************************/
28      // c'tors
29      //***************************************************/
30  
31      public LinkImpl() {
32          super();
33      }
34  
35      //***************************************************/
36      // bexee.model.elements.Link
37      //***************************************************/
38  
39      public void setName(String name) {
40          this.name = name;
41      }
42  
43      public String getName() {
44          return name;
45      }
46  
47      //***************************************************/
48      // bexee.model.BPELElement
49      //***************************************************/
50  
51      public void accept(ProcessController controller, ProcessInstance instance)
52              throws Exception {
53          controller.process(this, instance);
54      }
55  
56      public void accept(BPELElementVisitor elementVisitor) {
57          elementVisitor.visit(this);
58      }
59  }