View Javadoc

1   /*
2    * $Id: CopyImpl.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.Copy;
15  import bexee.model.elements.From;
16  import bexee.model.elements.To;
17  
18  /***
19   * Default implementation of the <code>Copy</code> BPEL element.
20   * 
21   * @version $Revision: 1.1 $, $Date: 2004/12/15 14:18:12 $
22   * @author Patric Fornasier
23   * @author Pawel Kowalski
24   */
25  public class CopyImpl implements Copy {
26  
27      private To to;
28  
29      private From from;
30  
31      //***************************************************/
32      // c'tors
33      //***************************************************/
34  
35      public CopyImpl() {
36          super();
37      }
38  
39      //***************************************************/
40      // bexee.model.elements.Copy
41      //***************************************************/
42  
43      public void setTo(To to) {
44          this.to = to;
45      }
46  
47      public To getTo() {
48          return to;
49      }
50  
51      public void setFrom(From from) {
52          this.from = from;
53      }
54  
55      public From getFrom() {
56          return from;
57      }
58  
59      public void accept(ProcessController controller, ProcessInstance instance)
60              throws Exception {
61          controller.process(this, instance);
62      }
63  
64      public void accept(BPELElementVisitor elementVisitor) {
65          elementVisitor.visit(this);
66      }
67  
68  }