/** * Returns date/time (component 2). This is a convenience method that saves you from * casting and handling an exception. */ public TS getDateTime() { return getTyped(1, TS.class); }
/** * Creates a new CCD type */ public CCD(Message message) { super(message); init(); }
/** {@inheritDoc} */ protected Type createNewTypeWithoutReflection(int field) { switch (field) { case 0: return new CCD(getMessage()); case 1: return new ID(getMessage(), new Integer( 122 )); case 2: return new CX(getMessage()); default: return null; } }
private void init() { data = new Type[2]; data[0] = new ID(getMessage(), 0); data[1] = new TS(getMessage()); }
/** {@inheritDoc} */ protected Type createNewTypeWithoutReflection(int field) { switch (field) { case 0: return new CCD(getMessage()); case 1: return new ID(getMessage(), new Integer( 122 )); case 2: return new CX(getMessage()); default: return null; } }
private void init() { data = new Type[2]; data[0] = new ID(getMessage(), 0); data[1] = new TS(getMessage()); }
/** * Returns date/time (component 2). This is a convenience method that saves you from * casting and handling an exception. */ public TS getCcd2_DateTime() { return getTyped(1, TS.class); }
/** * Creates a new CCD type */ public CCD(Message message) { super(message); init(); }
/** * Returns when to charge code (component 1). This is a convenience method that saves you from * casting and handling an exception. */ public ID getCcd1_WhenToChargeCode() { return getTyped(0, ID.class); }
/** * Returns when to charge code (component 1). This is a convenience method that saves you from * casting and handling an exception. */ public ID getWhenToChargeCode() { return getTyped(0, ID.class); }
/** * Returns date/time (component 2). This is a convenience method that saves you from * casting and handling an exception. */ public TS getCcd2_DateTime() { return getTyped(1, TS.class); }
/** * Returns when to charge code (component 1). This is a convenience method that saves you from * casting and handling an exception. */ public ID getWhenToChargeCode() { return getTyped(0, ID.class); }
/** * Returns when to charge code (component 1). This is a convenience method that saves you from * casting and handling an exception. */ public ID getCcd1_WhenToChargeCode() { return getTyped(0, ID.class); }
/** * Returns date/time (component 2). This is a convenience method that saves you from * casting and handling an exception. */ public TS getDateTime() { return getTyped(1, TS.class); }