01: /*
02: * $Id: VariablesImpl.java,v 1.5 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.Variable;
18: import bexee.model.elements.Variables;
19:
20: /**
21: * Default implementation of the <code>Variables</code> BPEL element.
22: *
23: * @version $Revision: 1.5 $, $Date: 2004/12/09 12:34:43 $
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,
56: ProcessInstance instance) throws Exception {
57: controller.process(this , instance);
58: }
59:
60: public void accept(BPELElementVisitor elementVisitor) {
61: elementVisitor.visit(this);
62: }
63: }
|