1 | |
package ca.uhn.hl7v2.conf.spec; |
2 | |
|
3 | |
import ca.uhn.hl7v2.conf.spec.usecase.UseCase; |
4 | |
import ca.uhn.hl7v2.conf.spec.message.StaticDef; |
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
public class Specification { |
11 | |
|
12 | |
private ImpNote impNote; |
13 | |
private UseCase useCase; |
14 | |
private Conformance conformance; |
15 | |
private Encoding[] encodings; |
16 | |
|
17 | |
|
18 | 0 | private java.beans.PropertyChangeSupport propertyChangeSupport = new java.beans.PropertyChangeSupport(this); |
19 | |
|
20 | |
|
21 | 0 | private java.beans.VetoableChangeSupport vetoableChangeSupport = new java.beans.VetoableChangeSupport(this); |
22 | |
|
23 | |
|
24 | |
private StaticDef message; |
25 | |
|
26 | |
|
27 | |
private String specName; |
28 | |
|
29 | |
|
30 | |
private String orgName; |
31 | |
|
32 | |
|
33 | |
private String HL7Version; |
34 | |
|
35 | |
|
36 | |
private String specVersion; |
37 | |
|
38 | |
|
39 | |
private String status; |
40 | |
|
41 | |
|
42 | |
private String role; |
43 | |
|
44 | |
|
45 | |
private String HL7OID; |
46 | |
|
47 | |
|
48 | |
private String conformanceType; |
49 | |
|
50 | |
|
51 | 0 | public Specification() { |
52 | 0 | } |
53 | |
|
54 | |
|
55 | |
|
56 | |
|
57 | |
public void addPropertyChangeListener(java.beans.PropertyChangeListener l) { |
58 | 0 | propertyChangeSupport.addPropertyChangeListener(l); |
59 | 0 | } |
60 | |
|
61 | |
|
62 | |
|
63 | |
|
64 | |
public void removePropertyChangeListener(java.beans.PropertyChangeListener l) { |
65 | 0 | propertyChangeSupport.removePropertyChangeListener(l); |
66 | 0 | } |
67 | |
|
68 | |
|
69 | |
|
70 | |
|
71 | |
public void addVetoableChangeListener(java.beans.VetoableChangeListener l) { |
72 | 0 | vetoableChangeSupport.addVetoableChangeListener(l); |
73 | 0 | } |
74 | |
|
75 | |
|
76 | |
|
77 | |
|
78 | |
public void removeVetoableChangeListener(java.beans.VetoableChangeListener l) { |
79 | 0 | vetoableChangeSupport.removeVetoableChangeListener(l); |
80 | 0 | } |
81 | |
|
82 | |
|
83 | |
|
84 | |
|
85 | |
public ImpNote getImpNote() { |
86 | 0 | return this.impNote; |
87 | |
} |
88 | |
|
89 | |
|
90 | |
|
91 | |
|
92 | |
|
93 | |
|
94 | |
public void setImpNote(ImpNote impNote) throws java.beans.PropertyVetoException { |
95 | 0 | ImpNote oldImpNote = this.impNote; |
96 | 0 | vetoableChangeSupport.fireVetoableChange("impNote", oldImpNote, impNote); |
97 | 0 | this.impNote = impNote; |
98 | 0 | propertyChangeSupport.firePropertyChange("impNote", oldImpNote, impNote); |
99 | 0 | } |
100 | |
|
101 | |
|
102 | |
|
103 | |
|
104 | |
public UseCase getUseCase() { |
105 | 0 | return this.useCase; |
106 | |
} |
107 | |
|
108 | |
|
109 | |
|
110 | |
|
111 | |
|
112 | |
|
113 | |
public void setUseCase(UseCase useCase) throws java.beans.PropertyVetoException { |
114 | 0 | UseCase oldUseCase = this.useCase; |
115 | 0 | vetoableChangeSupport.fireVetoableChange("useCase", oldUseCase, useCase); |
116 | 0 | this.useCase = useCase; |
117 | 0 | propertyChangeSupport.firePropertyChange("useCase", oldUseCase, useCase); |
118 | 0 | } |
119 | |
|
120 | |
|
121 | |
|
122 | |
|
123 | |
public Conformance getConformance() { |
124 | 0 | return this.conformance; |
125 | |
} |
126 | |
|
127 | |
|
128 | |
|
129 | |
|
130 | |
|
131 | |
|
132 | |
public void setConformance(Conformance conformance) throws java.beans.PropertyVetoException { |
133 | 0 | Conformance oldConformance = this.conformance; |
134 | 0 | vetoableChangeSupport.fireVetoableChange("conformance", oldConformance, conformance); |
135 | 0 | this.conformance = conformance; |
136 | 0 | propertyChangeSupport.firePropertyChange("conformance", oldConformance, conformance); |
137 | 0 | } |
138 | |
|
139 | |
|
140 | |
|
141 | |
|
142 | |
|
143 | |
public Encoding getEncodings(int index) { |
144 | 0 | return this.encodings[index]; |
145 | |
} |
146 | |
|
147 | |
|
148 | |
|
149 | |
|
150 | |
|
151 | |
|
152 | |
|
153 | |
public void setEncodings(int index, Encoding encodings) throws java.beans.PropertyVetoException { |
154 | 0 | Encoding oldEncodings = this.encodings[index]; |
155 | 0 | this.encodings[index] = encodings; |
156 | |
try { |
157 | 0 | vetoableChangeSupport.fireVetoableChange("encodings", null, null ); |
158 | |
} |
159 | 0 | catch(java.beans.PropertyVetoException vetoException ) { |
160 | 0 | this.encodings[index] = oldEncodings; |
161 | 0 | throw vetoException; |
162 | 0 | } |
163 | 0 | propertyChangeSupport.firePropertyChange("encodings", null, null ); |
164 | 0 | } |
165 | |
|
166 | |
|
167 | |
|
168 | |
|
169 | |
public StaticDef getMessage() { |
170 | 0 | return this.message; |
171 | |
} |
172 | |
|
173 | |
|
174 | |
|
175 | |
|
176 | |
|
177 | |
|
178 | |
public void setMessage(StaticDef message) throws java.beans.PropertyVetoException { |
179 | 0 | StaticDef oldMessage = this.message; |
180 | 0 | vetoableChangeSupport.fireVetoableChange("message", oldMessage, message); |
181 | 0 | this.message = message; |
182 | 0 | propertyChangeSupport.firePropertyChange("message", oldMessage, message); |
183 | 0 | } |
184 | |
|
185 | |
|
186 | |
|
187 | |
|
188 | |
public String getSpecName() { |
189 | 0 | return this.specName; |
190 | |
} |
191 | |
|
192 | |
|
193 | |
|
194 | |
|
195 | |
|
196 | |
|
197 | |
public void setSpecName(String specName) throws java.beans.PropertyVetoException { |
198 | 0 | String oldSpecName = this.specName; |
199 | 0 | vetoableChangeSupport.fireVetoableChange("specName", oldSpecName, specName); |
200 | 0 | this.specName = specName; |
201 | 0 | propertyChangeSupport.firePropertyChange("specName", oldSpecName, specName); |
202 | 0 | } |
203 | |
|
204 | |
|
205 | |
|
206 | |
|
207 | |
public String getOrgName() { |
208 | 0 | return this.orgName; |
209 | |
} |
210 | |
|
211 | |
|
212 | |
|
213 | |
|
214 | |
|
215 | |
|
216 | |
public void setOrgName(String orgName) throws java.beans.PropertyVetoException { |
217 | 0 | String oldOrgName = this.orgName; |
218 | 0 | vetoableChangeSupport.fireVetoableChange("orgName", oldOrgName, orgName); |
219 | 0 | this.orgName = orgName; |
220 | 0 | propertyChangeSupport.firePropertyChange("orgName", oldOrgName, orgName); |
221 | 0 | } |
222 | |
|
223 | |
|
224 | |
|
225 | |
|
226 | |
public String getHL7Version() { |
227 | 0 | return this.HL7Version; |
228 | |
} |
229 | |
|
230 | |
|
231 | |
|
232 | |
|
233 | |
|
234 | |
|
235 | |
public void setHL7Version(String HL7Version) throws java.beans.PropertyVetoException { |
236 | 0 | String oldHL7Version = this.HL7Version; |
237 | 0 | vetoableChangeSupport.fireVetoableChange("HL7Version", oldHL7Version, HL7Version); |
238 | 0 | this.HL7Version = HL7Version; |
239 | 0 | propertyChangeSupport.firePropertyChange("HL7Version", oldHL7Version, HL7Version); |
240 | 0 | } |
241 | |
|
242 | |
|
243 | |
|
244 | |
|
245 | |
public String getSpecVersion() { |
246 | 0 | return this.specVersion; |
247 | |
} |
248 | |
|
249 | |
|
250 | |
|
251 | |
|
252 | |
|
253 | |
|
254 | |
public void setSpecVersion(String specVersion) throws java.beans.PropertyVetoException { |
255 | 0 | String oldSpecVersion = this.specVersion; |
256 | 0 | vetoableChangeSupport.fireVetoableChange("specVersion", oldSpecVersion, specVersion); |
257 | 0 | this.specVersion = specVersion; |
258 | 0 | propertyChangeSupport.firePropertyChange("specVersion", oldSpecVersion, specVersion); |
259 | 0 | } |
260 | |
|
261 | |
|
262 | |
|
263 | |
|
264 | |
public String getStatus() { |
265 | 0 | return this.status; |
266 | |
} |
267 | |
|
268 | |
|
269 | |
|
270 | |
|
271 | |
|
272 | |
|
273 | |
public void setStatus(String status) throws java.beans.PropertyVetoException { |
274 | 0 | String oldStatus = this.status; |
275 | 0 | vetoableChangeSupport.fireVetoableChange("status", oldStatus, status); |
276 | 0 | this.status = status; |
277 | 0 | propertyChangeSupport.firePropertyChange("status", oldStatus, status); |
278 | 0 | } |
279 | |
|
280 | |
|
281 | |
|
282 | |
|
283 | |
public String getRole() { |
284 | 0 | return this.role; |
285 | |
} |
286 | |
|
287 | |
|
288 | |
|
289 | |
|
290 | |
|
291 | |
|
292 | |
public void setRole(String role) throws java.beans.PropertyVetoException { |
293 | 0 | String oldRole = this.role; |
294 | 0 | vetoableChangeSupport.fireVetoableChange("role", oldRole, role); |
295 | 0 | this.role = role; |
296 | 0 | propertyChangeSupport.firePropertyChange("role", oldRole, role); |
297 | 0 | } |
298 | |
|
299 | |
|
300 | |
|
301 | |
|
302 | |
public String getHL7OID() { |
303 | 0 | return this.HL7OID; |
304 | |
} |
305 | |
|
306 | |
|
307 | |
|
308 | |
|
309 | |
|
310 | |
|
311 | |
public void setHL7OID(String HL7OID) throws java.beans.PropertyVetoException { |
312 | 0 | String oldHL7OID = this.HL7OID; |
313 | 0 | vetoableChangeSupport.fireVetoableChange("HL7OID", oldHL7OID, HL7OID); |
314 | 0 | this.HL7OID = HL7OID; |
315 | 0 | propertyChangeSupport.firePropertyChange("HL7OID", oldHL7OID, HL7OID); |
316 | 0 | } |
317 | |
|
318 | |
|
319 | |
|
320 | |
|
321 | |
public String getConformanceType() { |
322 | 0 | return this.conformanceType; |
323 | |
} |
324 | |
|
325 | |
|
326 | |
|
327 | |
|
328 | |
|
329 | |
|
330 | |
public void setConformanceType(String conformanceType) throws java.beans.PropertyVetoException { |
331 | 0 | String oldConformanceType = this.conformanceType; |
332 | 0 | vetoableChangeSupport.fireVetoableChange("conformanceType", oldConformanceType, conformanceType); |
333 | 0 | this.conformanceType = conformanceType; |
334 | 0 | propertyChangeSupport.firePropertyChange("conformanceType", oldConformanceType, conformanceType); |
335 | 0 | } |
336 | |
|
337 | |
} |