1 package ca.uhn.hl7v2.conf.spec.message;
2
3 import ca.uhn.hl7v2.conf.ProfileException;
4
5
6
7
8
9 public class DataValue {
10
11
12 private String exValue;
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 public DataValue() {
22 }
23
24
25
26
27 public void addPropertyChangeListener(java.beans.PropertyChangeListener l) {
28 propertyChangeSupport.addPropertyChangeListener(l);
29 }
30
31
32
33
34 public void removePropertyChangeListener(java.beans.PropertyChangeListener l) {
35 propertyChangeSupport.removePropertyChangeListener(l);
36 }
37
38
39
40
41 public void addVetoableChangeListener(java.beans.VetoableChangeListener l) {
42 vetoableChangeSupport.addVetoableChangeListener(l);
43 }
44
45
46
47
48 public void removeVetoableChangeListener(java.beans.VetoableChangeListener l) {
49 vetoableChangeSupport.removeVetoableChangeListener(l);
50 }
51
52
53
54
55 public String getExValue() {
56 return this.exValue;
57 }
58
59
60
61
62
63
64 public void setExValue(String exValue) throws ProfileException {
65 String oldExValue = this.exValue;
66 try {
67 vetoableChangeSupport.fireVetoableChange("exValue", oldExValue, exValue);
68 } catch (Exception e) {
69 throw new ProfileException(null, e);
70 }
71 this.exValue = exValue;
72 propertyChangeSupport.firePropertyChange("exValue", oldExValue, exValue);
73 }
74
75 }