/** {@inheritDoc} */ protected Type createNewTypeWithoutReflection(int field) { switch (field) { case 0: return new CE(getMessage()); case 1: return new CE(getMessage()); case 2: return new CE(getMessage()); case 3: return new CE(getMessage()); case 4: return new CE(getMessage()); default: return null; } }
private void init() { data = new Type[6]; data[0] = new ST(getMessage()); data[1] = new ST(getMessage()); data[2] = new IS(getMessage(), 0); data[3] = new ST(getMessage()); data[4] = new ST(getMessage()); data[5] = new IS(getMessage(), 0); }
/** * Returns alternate text (component 5). This is a convenience method that saves you from * casting and handling an exception. */ public ST getCe5_AlternateText() { return getTyped(4, ST.class); }
/** * Creates a new CE type */ public CE(Message message) { super(message); init(); }
/** * Creates a new CE type */ public CE(Message message) { super(message); init(); }
/** * Returns alternate identifier (ST) (component 4). This is a convenience method that saves you from * casting and handling an exception. */ public ST getCe4_AlternateIdentifier() { return getTyped(3, ST.class); }
private void init() { data = new Type[6]; data[0] = new ST(getMessage()); data[1] = new ST(getMessage()); data[2] = new IS(getMessage(), 0); data[3] = new ST(getMessage()); data[4] = new ST(getMessage()); data[5] = new IS(getMessage(), 0); }
/** * Returns text (component 2). This is a convenience method that saves you from * casting and handling an exception. */ public ST getCe2_Text() { return getTyped(1, ST.class); }
/** * Returns alternate identifier (ST) (component 4). This is a convenience method that saves you from * casting and handling an exception. */ public ST getCe4_AlternateIdentifier() { return getTyped(3, ST.class); }
/** * Returns name of alternate coding system (component 6). This is a convenience method that saves you from * casting and handling an exception. */ public IS getCe6_NameOfAlternateCodingSystem() { return getTyped(5, IS.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 CE(getMessage()); case 3: return new CE(getMessage()); case 4: return new ST(getMessage()); case 5: return new DT(getMessage()); default: return null; } }
/** * Returns identifier (ST) (component 1). This is a convenience method that saves you from * casting and handling an exception. */ public ST getCe1_Identifier() { return getTyped(0, ST.class); }
/** * Returns text (component 2). This is a convenience method that saves you from * casting and handling an exception. */ public ST getText() { return getTyped(1, ST.class); }
/** * Returns alternate text (component 5). This is a convenience method that saves you from * casting and handling an exception. */ public ST getAlternateText() { return getTyped(4, ST.class); }