/** * Returns ID number (ST) (component 1). This is a convenience method that saves you from * casting and handling an exception. */ public ST getPi1_IDNumber() { return getTyped(0, ST.class); }
/** * Creates a new PI type */ public PI(Message message) { super(message); init(); }
PI pi = new PI(); while (Math.round(pi.getEstimate() * 1e5) != Math.round(Math.PI * 1e5)) pi.iterate();
/** {@inheritDoc} */ protected Type createNewTypeWithoutReflection(int field) { switch (field) { case 0: return new CE(getMessage()); case 1: return new XPN(getMessage()); case 2: return new XAD(getMessage()); case 3: return new PL(getMessage()); case 4: return new XTN(getMessage()); case 5: return new CE(getMessage()); case 6: return new PI(getMessage()); default: return null; } }
private void init() { data = new Type[3]; data[0] = new ST(getMessage()); data[1] = new IS(getMessage(), 0); data[2] = new ST(getMessage()); }
/** {@inheritDoc} */ protected Type createNewTypeWithoutReflection(int field) { switch (field) { case 0: return new CE(getMessage()); case 1: return new XPN(getMessage()); case 2: return new XAD(getMessage()); case 3: return new PL(getMessage()); case 4: return new XTN(getMessage()); case 5: return new CE(getMessage()); case 6: return new PI(getMessage()); default: return null; } }
private void init() { data = new Type[3]; data[0] = new ST(getMessage()); data[1] = new IS(getMessage(), 0); data[2] = new ST(getMessage()); }
/** * Returns type of ID number (IS) (component 2). This is a convenience method that saves you from * casting and handling an exception. */ public IS getTypeOfIDNumber() { return getTyped(1, IS.class); }
/** {@inheritDoc} */ protected Type createNewTypeWithoutReflection(int field) { switch (field) { case 0: return new CE(getMessage()); case 1: return new XPN(getMessage()); case 2: return new XAD(getMessage()); case 3: return new PL(getMessage()); case 4: return new XTN(getMessage()); case 5: return new CE(getMessage()); case 6: return new PI(getMessage()); case 7: return new TS(getMessage()); case 8: return new TS(getMessage()); default: return null; } }
/** * Creates a new PI type */ public PI(Message message) { super(message); init(); }
/** * Returns type of ID number (IS) (component 2). This is a convenience method that saves you from * casting and handling an exception. */ public IS getPi2_TypeOfIDNumber() { return getTyped(1, IS.class); }
/** {@inheritDoc} */ protected Type createNewTypeWithoutReflection(int field) { switch (field) { case 0: return new CE(getMessage()); case 1: return new XPN(getMessage()); case 2: return new XAD(getMessage()); case 3: return new PL(getMessage()); case 4: return new XTN(getMessage()); case 5: return new CE(getMessage()); case 6: return new PI(getMessage()); case 7: return new TS(getMessage()); case 8: return new TS(getMessage()); default: return null; } }
/** * Returns other qualifying info (component 3). This is a convenience method that saves you from * casting and handling an exception. */ public ST getOtherQualifyingInfo() { return getTyped(2, ST.class); }
/** * Returns other qualifying info (component 3). This is a convenience method that saves you from * casting and handling an exception. */ public ST getPi3_OtherQualifyingInfo() { return getTyped(2, ST.class); }
/** * Returns ID number (ST) (component 1). This is a convenience method that saves you from * casting and handling an exception. */ public ST getIDNumber() { return getTyped(0, ST.class); }
/** * Returns type of ID number (IS) (component 2). This is a convenience method that saves you from * casting and handling an exception. */ public IS getTypeOfIDNumber() { return getTyped(1, IS.class); }
/** * Returns ID number (ST) (component 1). This is a convenience method that saves you from * casting and handling an exception. */ public ST getIDNumber() { return getTyped(0, ST.class); }
/** * Returns ID number (ST) (component 1). This is a convenience method that saves you from * casting and handling an exception. */ public ST getPi1_IDNumber() { return getTyped(0, ST.class); }
/** * Returns other qualifying info (component 3). This is a convenience method that saves you from * casting and handling an exception. */ public ST getOtherQualifyingInfo() { return getTyped(2, ST.class); }
/** * Returns other qualifying info (component 3). This is a convenience method that saves you from * casting and handling an exception. */ public ST getPi3_OtherQualifyingInfo() { return getTyped(2, ST.class); }