private void init() { data = new Type[4]; data[0] = new ST(getMessage()); data[1] = new IS(getMessage(), 0); data[2] = new ST(getMessage()); data[3] = new ID(getMessage(), 0); }
/** * Returns entity identifier (component 1). This is a convenience method that saves you from * casting and handling an exception. */ public ST getEi1_EntityIdentifier() { return getTyped(0, ST.class); }
/** * Creates a new EI type */ public EI(Message message) { super(message); init(); }
/** * Creates a new EI type */ public EI(Message message) { super(message); init(); }
/** * Returns universal ID (component 3). This is a convenience method that saves you from * casting and handling an exception. */ public ST getUniversalID() { return getTyped(2, ST.class); }
private void init() { data = new Type[4]; data[0] = new ST(getMessage()); data[1] = new IS(getMessage(), 0); data[2] = new ST(getMessage()); data[3] = new ID(getMessage(), 0); }
/** {@inheritDoc} */ protected Type createNewTypeWithoutReflection(int field) { switch (field) { case 0: return new PL(getMessage()); case 1: return new ID(getMessage(), new Integer( 206 )); case 2: return new EI(getMessage()); case 3: return new CE(getMessage()); case 4: return new CE(getMessage()); default: return null; } }
/** * Returns universal ID type (component 4). This is a convenience method that saves you from * casting and handling an exception. */ public ID getUniversalIDType() { return getTyped(3, ID.class); }
/** {@inheritDoc} */ protected Type createNewTypeWithoutReflection(int field) { switch (field) { case 0: return new EI(getMessage()); case 1: return new CE(getMessage()); case 2: return new CE(getMessage()); default: return null; } }
/** * Returns namespace ID (component 2). This is a convenience method that saves you from * casting and handling an exception. */ public IS getNamespaceID() { return getTyped(1, IS.class); }
/** {@inheritDoc} */ protected Type createNewTypeWithoutReflection(int field) { switch (field) { case 0: return new PL(getMessage()); case 1: return new ID(getMessage(), new Integer( 206 )); case 2: return new EI(getMessage()); case 3: return new CE(getMessage()); case 4: return new CE(getMessage()); default: return null; } }
/** * Returns universal ID type (component 4). This is a convenience method that saves you from * casting and handling an exception. */ public ID getUniversalIDType() { return getTyped(3, ID.class); }
/** {@inheritDoc} */ protected Type createNewTypeWithoutReflection(int field) { switch (field) { case 0: return new EI(getMessage()); case 1: return new CE(getMessage()); case 2: return new CE(getMessage()); default: return null; } }
/** * Returns universal ID type (component 4). This is a convenience method that saves you from * casting and handling an exception. */ public ID getEi4_UniversalIDType() { return getTyped(3, ID.class); }
/** {@inheritDoc} */ protected Type createNewTypeWithoutReflection(int field) { switch (field) { case 0: return new ID(getMessage(), new Integer( 287 )); case 1: return new CE(getMessage()); case 2: return new EI(getMessage()); case 3: return new TS(getMessage()); case 4: return new CE(getMessage()); case 5: return new TS(getMessage()); default: return null; } }
/** * Returns entity identifier (component 1). This is a convenience method that saves you from * casting and handling an exception. */ public ST getEi1_EntityIdentifier() { return getTyped(0, ST.class); }
/** {@inheritDoc} */ protected Type createNewTypeWithoutReflection(int field) { switch (field) { case 0: return new PL(getMessage()); case 1: return new ID(getMessage(), new Integer( 206 )); case 2: return new EI(getMessage()); case 3: return new CE(getMessage()); case 4: return new XON(getMessage()); case 5: return new PL(getMessage()); default: return null; } }
/** * Returns entity identifier (component 1). This is a convenience method that saves you from * casting and handling an exception. */ public ST getEntityIdentifier() { return getTyped(0, ST.class); }