private void init(ModelClassFactory factory) { try { this.add(ST.class, false, 1, 10, new Object[]{ getMessage() }, "Batch Message Count"); this.add(ST.class, false, 1, 80, new Object[]{ getMessage() }, "Batch Comment"); this.add(NM.class, false, 0, 100, new Object[]{ getMessage() }, "Batch Totals"); } catch(HL7Exception e) { log.error("Unexpected error creating BTS - this is probably a bug in the source code generator.", e); } }
private void init(ModelClassFactory factory) { try { this.add(ST.class, false, 1, 10, new Object[]{ getMessage() }, "Batch Message Count"); this.add(ST.class, false, 1, 80, new Object[]{ getMessage() }, "Batch Comment"); this.add(NM.class, false, 0, 100, new Object[]{ getMessage() }, "Batch Totals"); } catch(HL7Exception e) { log.error("Unexpected error creating BTS - 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 NM(getMessage()); default: return null; } }
/** {@inheritDoc} */ protected Type createNewTypeWithoutReflection(int field) { switch (field) { case 0: return new ST(getMessage()); case 1: return new ST(getMessage()); case 2: return new NM(getMessage()); default: return null; } }