1 package ca.uhn.hl7v2.conf.spec.usecase;
2
3 import java.beans.PropertyVetoException;
4
5
6
7
8
9 public class UseCase {
10
11
12 private Actor actor;
13
14
15 private final java.beans.PropertyChangeSupport propertyChangeSupport = new java.beans.PropertyChangeSupport(this);
16
17
18 private final java.beans.VetoableChangeSupport vetoableChangeSupport = new java.beans.VetoableChangeSupport(this);
19
20
21 private PreCondition preCondition;
22
23
24 private PostCondition postCondition;
25
26
27 private EventFlow eventFlow;
28
29
30 private DerivativeEvent derivativeEvent;
31
32
33 public UseCase() {
34 }
35
36
37
38
39 public void addPropertyChangeListener(java.beans.PropertyChangeListener l) {
40 propertyChangeSupport.addPropertyChangeListener(l);
41 }
42
43
44
45
46 public void removePropertyChangeListener(java.beans.PropertyChangeListener l) {
47 propertyChangeSupport.removePropertyChangeListener(l);
48 }
49
50
51
52
53 public void addVetoableChangeListener(java.beans.VetoableChangeListener l) {
54 vetoableChangeSupport.addVetoableChangeListener(l);
55 }
56
57
58
59
60 public void removeVetoableChangeListener(java.beans.VetoableChangeListener l) {
61 vetoableChangeSupport.removeVetoableChangeListener(l);
62 }
63
64
65
66
67 public Actor getActor() {
68 return this.actor;
69 }
70
71
72
73
74
75
76 public void setActor(Actor actor) throws PropertyVetoException {
77 Actor oldActor = this.actor;
78 vetoableChangeSupport.fireVetoableChange("actor", oldActor, actor);
79 this.actor = actor;
80 propertyChangeSupport.firePropertyChange("actor", oldActor, actor);
81 }
82
83
84
85
86 public PreCondition getPreCondition() {
87 return this.preCondition;
88 }
89
90
91
92
93
94
95 public void setPreCondition(PreCondition preCondition) throws PropertyVetoException {
96 PreCondition oldPreCondition = this.preCondition;
97 vetoableChangeSupport.fireVetoableChange("preCondition", oldPreCondition, preCondition);
98 this.preCondition = preCondition;
99 propertyChangeSupport.firePropertyChange("preCondition", oldPreCondition, preCondition);
100 }
101
102
103
104
105 public PostCondition getPostCondition() {
106 return this.postCondition;
107 }
108
109
110
111
112
113
114 public void setPostCondition(PostCondition postCondition) throws PropertyVetoException {
115 PostCondition oldPostCondition = this.postCondition;
116 vetoableChangeSupport.fireVetoableChange("postCondition", oldPostCondition, postCondition);
117 this.postCondition = postCondition;
118 propertyChangeSupport.firePropertyChange("postCondition", oldPostCondition, postCondition);
119 }
120
121
122
123
124 public EventFlow getEventFlow() {
125 return this.eventFlow;
126 }
127
128
129
130
131
132
133 public void setEventFlow(EventFlow eventFlow) throws PropertyVetoException {
134 EventFlow oldEventFlow = this.eventFlow;
135 vetoableChangeSupport.fireVetoableChange("eventFlow", oldEventFlow, eventFlow);
136 this.eventFlow = eventFlow;
137 propertyChangeSupport.firePropertyChange("eventFlow", oldEventFlow, eventFlow);
138 }
139
140
141
142
143 public DerivativeEvent getDerivativeEvent() {
144 return this.derivativeEvent;
145 }
146
147
148
149
150
151
152 public void setDerivativeEvent(DerivativeEvent derivativeEvent) throws PropertyVetoException {
153 DerivativeEvent oldDerivativeEvent = this.derivativeEvent;
154 vetoableChangeSupport.fireVetoableChange("derivativeEvent", oldDerivativeEvent, derivativeEvent);
155 this.derivativeEvent = derivativeEvent;
156 propertyChangeSupport.firePropertyChange("derivativeEvent", oldDerivativeEvent, derivativeEvent);
157 }
158
159 }