View Javadoc

1   /*
2    * $Id: VariablesImpl.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.Variable;
18  import bexee.model.elements.Variables;
19  
20  /***
21   * Default implementation of the <code>Variables</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 VariablesImpl implements Variables {
28  
29      private List variables;
30  
31      //***************************************************/
32      // c'tors
33      //***************************************************/
34  
35      public VariablesImpl() {
36          variables = new ArrayList();
37      }
38  
39      //***************************************************/
40      // bexee.model.elements.Variables
41      //***************************************************/
42  
43      public void addVariable(Variable variable) {
44          variables.add(variable);
45      }
46  
47      public List getVariables() {
48          return variables;
49      }
50  
51      //***************************************************/
52      // bexee.model.BPELElement
53      //***************************************************/
54  
55      public void accept(ProcessController controller, ProcessInstance instance)
56              throws Exception {
57          controller.process(this, instance);
58      }
59  
60      public void accept(BPELElementVisitor elementVisitor) {
61          elementVisitor.visit(this);
62      }
63  }