View Javadoc

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