1 package ca.uhn.hl7v2.conf.spec;
2
3 import ca.uhn.hl7v2.conf.ProfileException;
4
5
6
7
8
9 public class MetaData {
10
11
12 private String name;
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 String orgName;
22
23
24 private String version;
25
26
27 private String status;
28
29
30 private String topics;
31
32
33 public MetaData() {
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 String getName() {
68 return this.name;
69 }
70
71
72
73
74
75
76 public void setName(String name) throws ProfileException {
77 String oldName = this.name;
78 try {
79 vetoableChangeSupport.fireVetoableChange("name", oldName, name);
80 } catch (Exception e) {
81 throw new ProfileException(null, e);
82 }
83 this.name = name;
84 propertyChangeSupport.firePropertyChange("name", oldName, name);
85 }
86
87
88
89
90 public String getOrgName() {
91 return this.orgName;
92 }
93
94
95
96
97
98
99 public void setOrgName(String orgName) throws ProfileException {
100 String oldOrgName = this.orgName;
101 try {
102 vetoableChangeSupport.fireVetoableChange("orgName", oldOrgName, orgName);
103 } catch (Exception e) {
104 throw new ProfileException(null, e);
105 }
106 this.orgName = orgName;
107 propertyChangeSupport.firePropertyChange("orgName", oldOrgName, orgName);
108 }
109
110
111
112
113 public String getVersion() {
114 return this.version;
115 }
116
117
118
119
120
121
122 public void setVersion(String version) throws ProfileException {
123 String oldVersion = this.version;
124 try {
125 vetoableChangeSupport.fireVetoableChange("version", oldVersion, version);
126 } catch (Exception e) {
127 throw new ProfileException(null, e);
128 }
129 this.version = version;
130 propertyChangeSupport.firePropertyChange("version", oldVersion, version);
131 }
132
133
134
135
136 public String getStatus() {
137 return this.status;
138 }
139
140
141
142
143
144
145 public void setStatus(String status) throws ProfileException {
146 String oldStatus = this.status;
147 try {
148 vetoableChangeSupport.fireVetoableChange("status", oldStatus, status);
149 } catch (Exception e) {
150 throw new ProfileException(null, e);
151 }
152 this.status = status;
153 propertyChangeSupport.firePropertyChange("status", oldStatus, status);
154 }
155
156
157
158
159 public String getTopics() {
160 return this.topics;
161 }
162
163
164
165
166
167
168 public void setTopics(String topics) throws ProfileException {
169 String oldTopics = this.topics;
170 try {
171 vetoableChangeSupport.fireVetoableChange("topics", oldTopics, topics);
172 } catch (Exception e) {
173 throw new ProfileException(null, e);
174 }
175 this.topics = topics;
176 propertyChangeSupport.firePropertyChange("topics", oldTopics, topics);
177 }
178
179 }