1
2
3
4
5
6
7
8
9 package bexee.model.elements.impl;
10
11 import javax.xml.namespace.QName;
12
13 import bexee.core.ProcessController;
14 import bexee.core.ProcessInstance;
15 import bexee.model.BPELElementVisitor;
16 import bexee.model.elements.Variable;
17
18 /***
19 * Default implementation of the <code>Variable</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 VariableImpl implements Variable {
26
27 private String name = null;
28
29 private QName messageType = null;
30
31 private QName type = null;
32
33 private QName element = null;
34
35 //***************************************************/
36
37 //***************************************************/
38
39 public VariableImpl() {
40 super();
41 }
42
43 /***
44 * @param value
45 */
46 public VariableImpl(String name) {
47 this.name = name;
48 }
49
50 //***************************************************/
51
52 //***************************************************/
53
54 public void setName(String name) {
55 this.name = name;
56 }
57
58 public String getName() {
59 return name;
60 }
61
62 public void setMessageType(QName messageType) {
63 this.messageType = messageType;
64 }
65
66 public QName getMessageType() {
67 return messageType;
68 }
69
70 public void setType(QName type) {
71 this.type = type;
72 }
73
74 public QName getType() {
75 return type;
76 }
77
78 public void setElement(QName element) {
79 this.element = element;
80 }
81
82 public QName getElement() {
83 return element;
84 }
85
86 //***************************************************/
87
88 //***************************************************/
89
90 public void accept(ProcessController controller, ProcessInstance instance)
91 throws Exception {
92 controller.process(this, instance);
93 }
94
95 public void accept(BPELElementVisitor elementVisitor) {
96 elementVisitor.visit(this);
97 }
98
99 }