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(CM.class, false, 1, 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 CM(getMessage()); default: return null; } }
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(CM.class, false, 1, 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 CM(getMessage()); default: return null; } }