/** * Returns ID number (NM) (component 1). This is a convenience method that saves you from * casting and handling an exception. */ public NM getIDNumber() { return getTyped(0, NM.class); }
/** * Creates a new CK type */ public CK(Message message) { super(message); init(); }
/** {@inheritDoc} */ protected Type createNewTypeWithoutReflection(int field) { switch (field) { case 0: return new CM_CCD(getMessage()); case 1: return new ID(getMessage(), new Integer( 122 )); case 2: return new CK(getMessage()); default: return null; } }
private void init() { data = new Type[4]; data[0] = new NM(getMessage()); data[1] = new ST(getMessage()); data[2] = new ID(getMessage(), 0); data[3] = new HD(getMessage()); }
/** {@inheritDoc} */ protected Type createNewTypeWithoutReflection(int field) { switch (field) { case 0: return new CM_CCD(getMessage()); case 1: return new ID(getMessage(), new Integer( 122 )); case 2: return new CK(getMessage()); default: return null; } }
private void init() { data = new Type[4]; data[0] = new NM(getMessage()); data[1] = new ST(getMessage()); data[2] = new ID(getMessage(), 0); data[3] = new HD(getMessage()); }
/** * Returns check digit (component 2). This is a convenience method that saves you from * casting and handling an exception. */ public ST getCk2_CheckDigit() { return getTyped(1, ST.class); }
/** {@inheritDoc} */ protected Type createNewTypeWithoutReflection(int field) { switch (field) { case 0: return new CE(getMessage()); case 1: return new CE(getMessage()); case 2: return new ST(getMessage()); case 3: return new ST(getMessage()); case 4: return new ID(getMessage(), new Integer( 268 )); case 5: return new CE(getMessage()); case 6: return new CE(getMessage()); case 7: return new ID(getMessage(), new Integer( 183 )); case 8: return new CE(getMessage()); case 9: return new NM(getMessage()); case 10: return new CK(getMessage()); case 11: return new XON(getMessage()); case 12: return new ID(getMessage(), new Integer( 136 )); default: return null; } }
/** * Creates a new CK type */ public CK(Message message) { super(message); init(); }
/** * Returns check digit (component 2). This is a convenience method that saves you from * casting and handling an exception. */ public ST getCk2_CheckDigit() { return getTyped(1, ST.class); }
/** {@inheritDoc} */ protected Type createNewTypeWithoutReflection(int field) { switch (field) { case 0: return new CE(getMessage()); case 1: return new CE(getMessage()); case 2: return new ST(getMessage()); case 3: return new ST(getMessage()); case 4: return new ID(getMessage(), new Integer( 268 )); case 5: return new CE(getMessage()); case 6: return new CE(getMessage()); case 7: return new ID(getMessage(), new Integer( 183 )); case 8: return new CE(getMessage()); case 9: return new NM(getMessage()); case 10: return new CK(getMessage()); case 11: return new XON(getMessage()); case 12: return new ID(getMessage(), new Integer( 136 )); default: return null; } }
/** * Returns code identifying the check digit scheme employed (component 3). This is a convenience method that saves you from * casting and handling an exception. */ public ID getCk3_CodeIdentifyingTheCheckDigitSchemeEmployed() { return getTyped(2, ID.class); }
/** * Returns check digit (component 2). This is a convenience method that saves you from * casting and handling an exception. */ public ST getCheckDigit() { return getTyped(1, ST.class); }
/** * Returns assigning authority (component 4). This is a convenience method that saves you from * casting and handling an exception. */ public HD getAssigningAuthority() { return getTyped(3, HD.class); }
/** * Returns ID number (NM) (component 1). This is a convenience method that saves you from * casting and handling an exception. */ public NM getIDNumber() { return getTyped(0, NM.class); }
/** * Returns ID number (NM) (component 1). This is a convenience method that saves you from * casting and handling an exception. */ public NM getCk1_IDNumber() { return getTyped(0, NM.class); }
/** * Returns code identifying the check digit scheme employed (component 3). This is a convenience method that saves you from * casting and handling an exception. */ public ID getCodeIdentifyingTheCheckDigitSchemeEmployed() { return getTyped(2, ID.class); }
/** * Returns check digit (component 2). This is a convenience method that saves you from * casting and handling an exception. */ public ST getCheckDigit() { return getTyped(1, ST.class); }
/** * Returns assigning authority (component 4). This is a convenience method that saves you from * casting and handling an exception. */ public HD getCk4_AssigningAuthority() { return getTyped(3, HD.class); }
/** * Returns ID number (NM) (component 1). This is a convenience method that saves you from * casting and handling an exception. */ public NM getCk1_IDNumber() { return getTyped(0, NM.class); }