/** {@inheritDoc} */ protected Type createNewTypeWithoutReflection(int field) { switch (field) { case 0: return new ST(getMessage()); case 1: return new ST(getMessage()); case 2: return new ST(getMessage()); case 3: return new ST(getMessage()); case 4: return new ST(getMessage()); case 5: return new ST(getMessage()); case 6: return new TS(getMessage()); case 7: return new ST(getMessage()); case 8: return new ST(getMessage()); case 9: return new ST(getMessage()); case 10: return new ST(getMessage()); case 11: return new ST(getMessage()); default: return null; } }
private void init(ModelClassFactory factory) { try { this.add(ST.class, true, 1, 1, new Object[]{ getMessage() }, "Batch Field Separator"); this.add(ST.class, true, 1, 3, new Object[]{ getMessage() }, "Batch Encoding Characters"); this.add(ST.class, false, 1, 15, new Object[]{ getMessage() }, "Batch Sending Application"); this.add(ST.class, false, 1, 20, new Object[]{ getMessage() }, "Batch Sending Facility"); this.add(ST.class, false, 1, 15, new Object[]{ getMessage() }, "Batch Receiving Application"); this.add(ST.class, false, 1, 20, new Object[]{ getMessage() }, "Batch Receiving Facility"); this.add(TS.class, false, 1, 26, new Object[]{ getMessage() }, "Batch Creation Date/Time"); this.add(ST.class, false, 1, 40, new Object[]{ getMessage() }, "Batch Security"); this.add(ST.class, false, 1, 20, new Object[]{ getMessage() }, "Batch Name/ID/Type"); this.add(ST.class, false, 1, 80, new Object[]{ getMessage() }, "Batch Comment"); this.add(ST.class, false, 1, 20, new Object[]{ getMessage() }, "Batch Control ID"); this.add(ST.class, false, 1, 20, new Object[]{ getMessage() }, "Reference Batch Control ID"); } catch(HL7Exception e) { log.error("Unexpected error creating BHS - this is probably a bug in the source code generator.", e); } }
/** {@inheritDoc} */ protected Type createNewTypeWithoutReflection(int field) { switch (field) { case 0: return new ST(getMessage()); case 1: return new ST(getMessage()); case 2: return new ST(getMessage()); case 3: return new ST(getMessage()); case 4: return new ST(getMessage()); case 5: return new ST(getMessage()); case 6: return new TS(getMessage()); case 7: return new ST(getMessage()); case 8: return new ST(getMessage()); case 9: return new ST(getMessage()); case 10: return new ST(getMessage()); case 11: return new ST(getMessage()); default: return null; } }
private void init(ModelClassFactory factory) { try { this.add(ST.class, true, 1, 1, new Object[]{ getMessage() }, "Batch Field Separator"); this.add(ST.class, true, 1, 3, new Object[]{ getMessage() }, "Batch Encoding Characters"); this.add(ST.class, false, 1, 15, new Object[]{ getMessage() }, "Batch Sending Application"); this.add(ST.class, false, 1, 20, new Object[]{ getMessage() }, "Batch Sending Facility"); this.add(ST.class, false, 1, 15, new Object[]{ getMessage() }, "Batch Receiving Application"); this.add(ST.class, false, 1, 20, new Object[]{ getMessage() }, "Batch Receiving Facility"); this.add(TS.class, false, 1, 26, new Object[]{ getMessage() }, "Batch Creation Date/Time"); this.add(ST.class, false, 1, 40, new Object[]{ getMessage() }, "Batch Security"); this.add(ST.class, false, 1, 20, new Object[]{ getMessage() }, "Batch Name/ID/Type"); this.add(ST.class, false, 1, 80, new Object[]{ getMessage() }, "Batch Comment"); this.add(ST.class, false, 1, 20, new Object[]{ getMessage() }, "Batch Control ID"); this.add(ST.class, false, 1, 20, new Object[]{ getMessage() }, "Reference Batch Control ID"); } catch(HL7Exception e) { log.error("Unexpected error creating BHS - this is probably a bug in the source code generator.", e); } }