001 /*
002 * This class is an auto-generated source file for a HAPI
003 * HL7 v2.x standard structure class.
004 *
005 * For more information, visit: http://hl7api.sourceforge.net/
006 */
007
008 package ca.uhn.hl7v2.model.v24.segment;
009
010 // import ca.uhn.hl7v2.model.v24.group.*;
011 import ca.uhn.hl7v2.model.v24.datatype.*;
012 import ca.uhn.log.HapiLogFactory;
013 import ca.uhn.hl7v2.HL7Exception;
014 import ca.uhn.hl7v2.parser.ModelClassFactory;
015 import ca.uhn.hl7v2.parser.DefaultModelClassFactory;
016 import ca.uhn.hl7v2.model.AbstractMessage;
017 import ca.uhn.hl7v2.model.Group;
018 import ca.uhn.hl7v2.model.Type;
019 import ca.uhn.hl7v2.model.AbstractSegment;
020 import ca.uhn.hl7v2.model.Varies;
021
022 /**
023 *<p>Represents an HL7 TCC message segment (Test Code Configuration).
024 * This segment has the following fields:</p>
025 * <ul>
026 * <li>TCC-1: Universal Service Identifier (CE) <b> </b>
027 * <li>TCC-2: Test Application Identifier (EI) <b> </b>
028 * <li>TCC-3: Specimen Source (SPS) <b>optional </b>
029 * <li>TCC-4: Auto-Dilution Factor Default (SN) <b>optional </b>
030 * <li>TCC-5: Rerun Dilution Factor Default (SN) <b>optional </b>
031 * <li>TCC-6: Pre-Dilution Factor Default (SN) <b>optional </b>
032 * <li>TCC-7: Endogenous Content of Pre-Dilution Diluent (SN) <b>optional </b>
033 * <li>TCC-8: Inventory Limits Warning Level (NM) <b>optional </b>
034 * <li>TCC-9: Automatic Rerun Allowed (ID) <b>optional </b>
035 * <li>TCC-10: Automatic Repeat Allowed (ID) <b>optional </b>
036 * <li>TCC-11: Automatic Reflex Allowed (ID) <b>optional </b>
037 * <li>TCC-12: Equipment Dynamic Range (SN) <b>optional </b>
038 * <li>TCC-13: Units (CE) <b>optional </b>
039 * <li>TCC-14: Processing Type (CE) <b>optional </b>
040 * </ul>
041 */
042 public class TCC extends AbstractSegment {
043
044 /**
045 * Creates a new TCC segment
046 */
047 public TCC(Group parent, ModelClassFactory factory) {
048 super(parent, factory);
049 init(factory);
050 }
051
052 private void init(ModelClassFactory factory) {
053 try {
054 this.add(CE.class, true, 1, 250, new Object[]{ getMessage(), new Integer(0) }, "Universal Service Identifier");
055 this.add(EI.class, true, 1, 80, new Object[]{ getMessage(), new Integer(0) }, "Test Application Identifier");
056 this.add(SPS.class, false, 1, 300, new Object[]{ getMessage(), new Integer(70) }, "Specimen Source");
057 this.add(SN.class, false, 1, 20, new Object[]{ getMessage(), new Integer(0) }, "Auto-Dilution Factor Default");
058 this.add(SN.class, false, 1, 20, new Object[]{ getMessage(), new Integer(0) }, "Rerun Dilution Factor Default");
059 this.add(SN.class, false, 1, 20, new Object[]{ getMessage(), new Integer(0) }, "Pre-Dilution Factor Default");
060 this.add(SN.class, false, 1, 20, new Object[]{ getMessage(), new Integer(0) }, "Endogenous Content of Pre-Dilution Diluent");
061 this.add(NM.class, false, 1, 10, new Object[]{ getMessage(), new Integer(0) }, "Inventory Limits Warning Level");
062 this.add(ID.class, false, 1, 1, new Object[]{ getMessage() }, "Automatic Rerun Allowed");
063 this.add(ID.class, false, 1, 1, new Object[]{ getMessage() }, "Automatic Repeat Allowed");
064 this.add(ID.class, false, 1, 1, new Object[]{ getMessage() }, "Automatic Reflex Allowed");
065 this.add(SN.class, false, 1, 20, new Object[]{ getMessage(), new Integer(0) }, "Equipment Dynamic Range");
066 this.add(CE.class, false, 1, 250, new Object[]{ getMessage(), new Integer(0) }, "Units");
067 this.add(CE.class, false, 1, 250, new Object[]{ getMessage(), new Integer(388) }, "Processing Type");
068 } catch(HL7Exception e) {
069 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected error creating TCC - this is probably a bug in the source code generator.", e);
070 }
071 }
072
073
074
075 /**
076 * Returns
077 * TCC-1: "Universal Service Identifier" - creates it if necessary
078 */
079 public CE getUniversalServiceIdentifier() {
080 CE ret = null;
081 try {
082 Type t = this.getField(1, 0);
083 ret = (CE)t;
084 } catch (ClassCastException cce) {
085 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
086 throw new RuntimeException(cce);
087 } catch (HL7Exception he) {
088 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
089 throw new RuntimeException(he);
090 }
091 return ret;
092 }
093
094
095 /**
096 * Returns
097 * TCC-1: "Universal Service Identifier" - creates it if necessary
098 */
099 public CE getTcc1_UniversalServiceIdentifier() {
100 CE ret = null;
101 try {
102 Type t = this.getField(1, 0);
103 ret = (CE)t;
104 } catch (ClassCastException cce) {
105 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
106 throw new RuntimeException(cce);
107 } catch (HL7Exception he) {
108 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
109 throw new RuntimeException(he);
110 }
111 return ret;
112 }
113
114
115
116 /**
117 * Returns
118 * TCC-2: "Test Application Identifier" - creates it if necessary
119 */
120 public EI getTestApplicationIdentifier() {
121 EI ret = null;
122 try {
123 Type t = this.getField(2, 0);
124 ret = (EI)t;
125 } catch (ClassCastException cce) {
126 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
127 throw new RuntimeException(cce);
128 } catch (HL7Exception he) {
129 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
130 throw new RuntimeException(he);
131 }
132 return ret;
133 }
134
135
136 /**
137 * Returns
138 * TCC-2: "Test Application Identifier" - creates it if necessary
139 */
140 public EI getTcc2_TestApplicationIdentifier() {
141 EI ret = null;
142 try {
143 Type t = this.getField(2, 0);
144 ret = (EI)t;
145 } catch (ClassCastException cce) {
146 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
147 throw new RuntimeException(cce);
148 } catch (HL7Exception he) {
149 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
150 throw new RuntimeException(he);
151 }
152 return ret;
153 }
154
155
156
157 /**
158 * Returns
159 * TCC-3: "Specimen Source" - creates it if necessary
160 */
161 public SPS getSpecimenSource() {
162 SPS ret = null;
163 try {
164 Type t = this.getField(3, 0);
165 ret = (SPS)t;
166 } catch (ClassCastException cce) {
167 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
168 throw new RuntimeException(cce);
169 } catch (HL7Exception he) {
170 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
171 throw new RuntimeException(he);
172 }
173 return ret;
174 }
175
176
177 /**
178 * Returns
179 * TCC-3: "Specimen Source" - creates it if necessary
180 */
181 public SPS getTcc3_SpecimenSource() {
182 SPS ret = null;
183 try {
184 Type t = this.getField(3, 0);
185 ret = (SPS)t;
186 } catch (ClassCastException cce) {
187 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
188 throw new RuntimeException(cce);
189 } catch (HL7Exception he) {
190 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
191 throw new RuntimeException(he);
192 }
193 return ret;
194 }
195
196
197
198 /**
199 * Returns
200 * TCC-4: "Auto-Dilution Factor Default" - creates it if necessary
201 */
202 public SN getAutoDilutionFactorDefault() {
203 SN ret = null;
204 try {
205 Type t = this.getField(4, 0);
206 ret = (SN)t;
207 } catch (ClassCastException cce) {
208 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
209 throw new RuntimeException(cce);
210 } catch (HL7Exception he) {
211 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
212 throw new RuntimeException(he);
213 }
214 return ret;
215 }
216
217
218 /**
219 * Returns
220 * TCC-4: "Auto-Dilution Factor Default" - creates it if necessary
221 */
222 public SN getTcc4_AutoDilutionFactorDefault() {
223 SN ret = null;
224 try {
225 Type t = this.getField(4, 0);
226 ret = (SN)t;
227 } catch (ClassCastException cce) {
228 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
229 throw new RuntimeException(cce);
230 } catch (HL7Exception he) {
231 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
232 throw new RuntimeException(he);
233 }
234 return ret;
235 }
236
237
238
239 /**
240 * Returns
241 * TCC-5: "Rerun Dilution Factor Default" - creates it if necessary
242 */
243 public SN getRerunDilutionFactorDefault() {
244 SN ret = null;
245 try {
246 Type t = this.getField(5, 0);
247 ret = (SN)t;
248 } catch (ClassCastException cce) {
249 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
250 throw new RuntimeException(cce);
251 } catch (HL7Exception he) {
252 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
253 throw new RuntimeException(he);
254 }
255 return ret;
256 }
257
258
259 /**
260 * Returns
261 * TCC-5: "Rerun Dilution Factor Default" - creates it if necessary
262 */
263 public SN getTcc5_RerunDilutionFactorDefault() {
264 SN ret = null;
265 try {
266 Type t = this.getField(5, 0);
267 ret = (SN)t;
268 } catch (ClassCastException cce) {
269 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
270 throw new RuntimeException(cce);
271 } catch (HL7Exception he) {
272 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
273 throw new RuntimeException(he);
274 }
275 return ret;
276 }
277
278
279
280 /**
281 * Returns
282 * TCC-6: "Pre-Dilution Factor Default" - creates it if necessary
283 */
284 public SN getPreDilutionFactorDefault() {
285 SN ret = null;
286 try {
287 Type t = this.getField(6, 0);
288 ret = (SN)t;
289 } catch (ClassCastException cce) {
290 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
291 throw new RuntimeException(cce);
292 } catch (HL7Exception he) {
293 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
294 throw new RuntimeException(he);
295 }
296 return ret;
297 }
298
299
300 /**
301 * Returns
302 * TCC-6: "Pre-Dilution Factor Default" - creates it if necessary
303 */
304 public SN getTcc6_PreDilutionFactorDefault() {
305 SN ret = null;
306 try {
307 Type t = this.getField(6, 0);
308 ret = (SN)t;
309 } catch (ClassCastException cce) {
310 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
311 throw new RuntimeException(cce);
312 } catch (HL7Exception he) {
313 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
314 throw new RuntimeException(he);
315 }
316 return ret;
317 }
318
319
320
321 /**
322 * Returns
323 * TCC-7: "Endogenous Content of Pre-Dilution Diluent" - creates it if necessary
324 */
325 public SN getEndogenousContentOfPreDilutionDiluent() {
326 SN ret = null;
327 try {
328 Type t = this.getField(7, 0);
329 ret = (SN)t;
330 } catch (ClassCastException cce) {
331 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
332 throw new RuntimeException(cce);
333 } catch (HL7Exception he) {
334 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
335 throw new RuntimeException(he);
336 }
337 return ret;
338 }
339
340
341 /**
342 * Returns
343 * TCC-7: "Endogenous Content of Pre-Dilution Diluent" - creates it if necessary
344 */
345 public SN getTcc7_EndogenousContentOfPreDilutionDiluent() {
346 SN ret = null;
347 try {
348 Type t = this.getField(7, 0);
349 ret = (SN)t;
350 } catch (ClassCastException cce) {
351 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
352 throw new RuntimeException(cce);
353 } catch (HL7Exception he) {
354 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
355 throw new RuntimeException(he);
356 }
357 return ret;
358 }
359
360
361
362 /**
363 * Returns
364 * TCC-8: "Inventory Limits Warning Level" - creates it if necessary
365 */
366 public NM getInventoryLimitsWarningLevel() {
367 NM ret = null;
368 try {
369 Type t = this.getField(8, 0);
370 ret = (NM)t;
371 } catch (ClassCastException cce) {
372 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
373 throw new RuntimeException(cce);
374 } catch (HL7Exception he) {
375 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
376 throw new RuntimeException(he);
377 }
378 return ret;
379 }
380
381
382 /**
383 * Returns
384 * TCC-8: "Inventory Limits Warning Level" - creates it if necessary
385 */
386 public NM getTcc8_InventoryLimitsWarningLevel() {
387 NM ret = null;
388 try {
389 Type t = this.getField(8, 0);
390 ret = (NM)t;
391 } catch (ClassCastException cce) {
392 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
393 throw new RuntimeException(cce);
394 } catch (HL7Exception he) {
395 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
396 throw new RuntimeException(he);
397 }
398 return ret;
399 }
400
401
402
403 /**
404 * Returns
405 * TCC-9: "Automatic Rerun Allowed" - creates it if necessary
406 */
407 public ID getAutomaticRerunAllowed() {
408 ID ret = null;
409 try {
410 Type t = this.getField(9, 0);
411 ret = (ID)t;
412 } catch (ClassCastException cce) {
413 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
414 throw new RuntimeException(cce);
415 } catch (HL7Exception he) {
416 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
417 throw new RuntimeException(he);
418 }
419 return ret;
420 }
421
422
423 /**
424 * Returns
425 * TCC-9: "Automatic Rerun Allowed" - creates it if necessary
426 */
427 public ID getTcc9_AutomaticRerunAllowed() {
428 ID ret = null;
429 try {
430 Type t = this.getField(9, 0);
431 ret = (ID)t;
432 } catch (ClassCastException cce) {
433 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
434 throw new RuntimeException(cce);
435 } catch (HL7Exception he) {
436 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
437 throw new RuntimeException(he);
438 }
439 return ret;
440 }
441
442
443
444 /**
445 * Returns
446 * TCC-10: "Automatic Repeat Allowed" - creates it if necessary
447 */
448 public ID getAutomaticRepeatAllowed() {
449 ID ret = null;
450 try {
451 Type t = this.getField(10, 0);
452 ret = (ID)t;
453 } catch (ClassCastException cce) {
454 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
455 throw new RuntimeException(cce);
456 } catch (HL7Exception he) {
457 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
458 throw new RuntimeException(he);
459 }
460 return ret;
461 }
462
463
464 /**
465 * Returns
466 * TCC-10: "Automatic Repeat Allowed" - creates it if necessary
467 */
468 public ID getTcc10_AutomaticRepeatAllowed() {
469 ID ret = null;
470 try {
471 Type t = this.getField(10, 0);
472 ret = (ID)t;
473 } catch (ClassCastException cce) {
474 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
475 throw new RuntimeException(cce);
476 } catch (HL7Exception he) {
477 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
478 throw new RuntimeException(he);
479 }
480 return ret;
481 }
482
483
484
485 /**
486 * Returns
487 * TCC-11: "Automatic Reflex Allowed" - creates it if necessary
488 */
489 public ID getAutomaticReflexAllowed() {
490 ID ret = null;
491 try {
492 Type t = this.getField(11, 0);
493 ret = (ID)t;
494 } catch (ClassCastException cce) {
495 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
496 throw new RuntimeException(cce);
497 } catch (HL7Exception he) {
498 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
499 throw new RuntimeException(he);
500 }
501 return ret;
502 }
503
504
505 /**
506 * Returns
507 * TCC-11: "Automatic Reflex Allowed" - creates it if necessary
508 */
509 public ID getTcc11_AutomaticReflexAllowed() {
510 ID ret = null;
511 try {
512 Type t = this.getField(11, 0);
513 ret = (ID)t;
514 } catch (ClassCastException cce) {
515 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
516 throw new RuntimeException(cce);
517 } catch (HL7Exception he) {
518 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
519 throw new RuntimeException(he);
520 }
521 return ret;
522 }
523
524
525
526 /**
527 * Returns
528 * TCC-12: "Equipment Dynamic Range" - creates it if necessary
529 */
530 public SN getEquipmentDynamicRange() {
531 SN ret = null;
532 try {
533 Type t = this.getField(12, 0);
534 ret = (SN)t;
535 } catch (ClassCastException cce) {
536 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
537 throw new RuntimeException(cce);
538 } catch (HL7Exception he) {
539 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
540 throw new RuntimeException(he);
541 }
542 return ret;
543 }
544
545
546 /**
547 * Returns
548 * TCC-12: "Equipment Dynamic Range" - creates it if necessary
549 */
550 public SN getTcc12_EquipmentDynamicRange() {
551 SN ret = null;
552 try {
553 Type t = this.getField(12, 0);
554 ret = (SN)t;
555 } catch (ClassCastException cce) {
556 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
557 throw new RuntimeException(cce);
558 } catch (HL7Exception he) {
559 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
560 throw new RuntimeException(he);
561 }
562 return ret;
563 }
564
565
566
567 /**
568 * Returns
569 * TCC-13: "Units" - creates it if necessary
570 */
571 public CE getUnits() {
572 CE ret = null;
573 try {
574 Type t = this.getField(13, 0);
575 ret = (CE)t;
576 } catch (ClassCastException cce) {
577 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
578 throw new RuntimeException(cce);
579 } catch (HL7Exception he) {
580 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
581 throw new RuntimeException(he);
582 }
583 return ret;
584 }
585
586
587 /**
588 * Returns
589 * TCC-13: "Units" - creates it if necessary
590 */
591 public CE getTcc13_Units() {
592 CE ret = null;
593 try {
594 Type t = this.getField(13, 0);
595 ret = (CE)t;
596 } catch (ClassCastException cce) {
597 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
598 throw new RuntimeException(cce);
599 } catch (HL7Exception he) {
600 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
601 throw new RuntimeException(he);
602 }
603 return ret;
604 }
605
606
607
608 /**
609 * Returns
610 * TCC-14: "Processing Type" - creates it if necessary
611 */
612 public CE getProcessingType() {
613 CE ret = null;
614 try {
615 Type t = this.getField(14, 0);
616 ret = (CE)t;
617 } catch (ClassCastException cce) {
618 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
619 throw new RuntimeException(cce);
620 } catch (HL7Exception he) {
621 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
622 throw new RuntimeException(he);
623 }
624 return ret;
625 }
626
627
628 /**
629 * Returns
630 * TCC-14: "Processing Type" - creates it if necessary
631 */
632 public CE getTcc14_ProcessingType() {
633 CE ret = null;
634 try {
635 Type t = this.getField(14, 0);
636 ret = (CE)t;
637 } catch (ClassCastException cce) {
638 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
639 throw new RuntimeException(cce);
640 } catch (HL7Exception he) {
641 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
642 throw new RuntimeException(he);
643 }
644 return ret;
645 }
646
647
648
649
650
651 /** {@inheritDoc} */
652 protected Type createNewTypeWithoutReflection(int field) {
653 switch (field) {
654 case 0: return new CE(getMessage());
655 case 1: return new EI(getMessage());
656 case 2: return new SPS(getMessage());
657 case 3: return new SN(getMessage());
658 case 4: return new SN(getMessage());
659 case 5: return new SN(getMessage());
660 case 6: return new SN(getMessage());
661 case 7: return new NM(getMessage());
662 case 8: return new ID(getMessage(), new Integer( 136 ));
663 case 9: return new ID(getMessage(), new Integer( 136 ));
664 case 10: return new ID(getMessage(), new Integer( 136 ));
665 case 11: return new SN(getMessage());
666 case 12: return new CE(getMessage());
667 case 13: return new CE(getMessage());
668 default: return null;
669 }
670 }
671
672
673 }
674