/** * Returns Encoding (component 4). This is a convenience method that saves you from * casting and handling an exception. */ public ID getEncoding() { return getTyped(3, ID.class); }
/** * Creates a new ED type */ public ED(Message message) { super(message); init(); }
/** {@inheritDoc} */ protected Type createNewTypeWithoutReflection(int field) { switch (field) { case 0: return new CWE(getMessage()); case 1: return new ED(getMessage()); default: return null; } }
private void init() { data = new Type[5]; data[0] = new HD(getMessage()); data[1] = new ID(getMessage(), 834); data[2] = new ID(getMessage(), 291); data[3] = new ID(getMessage(), 299); data[4] = new TX(getMessage()); }
/** {@inheritDoc} */ protected Type createNewTypeWithoutReflection(int field) { switch (field) { case 0: return new CWE(getMessage()); case 1: return new ED(getMessage()); default: return null; } }
private void init() { data = new Type[5]; data[0] = new HD(getMessage()); data[1] = new ID(getMessage(), 834); data[2] = new ID(getMessage(), 291); data[3] = new ID(getMessage(), 299); data[4] = new TX(getMessage()); }
/** * Returns Data (component 5). This is a convenience method that saves you from * casting and handling an exception. */ public TX getData() { return getTyped(4, TX.class); }
case 3: return new XON(getMessage()); case 4: return new XCN(getMessage()); case 5: return new ED(getMessage()); case 6: return new ID(getMessage(), new Integer( 399 )); case 7: return new CWE(getMessage());
/** * Creates a new ED type */ public ED(Message message) { super(message); init(); }
/** * Returns Data Subtype (component 3). This is a convenience method that saves you from * casting and handling an exception. */ public ID getDataSubtype() { return getTyped(2, ID.class); }
case 3: return new XON(getMessage()); case 4: return new XCN(getMessage()); case 5: return new ED(getMessage()); case 6: return new ID(getMessage(), new Integer( 399 )); case 7: return new CWE(getMessage());
/** * Returns Data Subtype (component 3). This is a convenience method that saves you from * casting and handling an exception. */ public ID getEd3_DataSubtype() { return getTyped(2, ID.class); }
/** * Returns Encoding (component 4). This is a convenience method that saves you from * casting and handling an exception. */ public ID getEd4_Encoding() { return getTyped(3, ID.class); }
/** * Returns Type of Data (component 2). This is a convenience method that saves you from * casting and handling an exception. */ public ID getTypeOfData() { return getTyped(1, ID.class); }
/** * Returns Type of Data (component 2). This is a convenience method that saves you from * casting and handling an exception. */ public ID getEd2_TypeOfData() { return getTyped(1, ID.class); }
/** * Returns Encoding (component 4). This is a convenience method that saves you from * casting and handling an exception. */ public ID getEncoding() { return getTyped(3, ID.class); }
/** * Returns Data (component 5). This is a convenience method that saves you from * casting and handling an exception. */ public TX getEd5_Data() { return getTyped(4, TX.class); }
/** * Returns Source Application (component 1). This is a convenience method that saves you from * casting and handling an exception. */ public HD getSourceApplication() { return getTyped(0, HD.class); }
/** * Returns Source Application (component 1). This is a convenience method that saves you from * casting and handling an exception. */ public HD getEd1_SourceApplication() { return getTyped(0, HD.class); }
/** * Returns Type of Data (component 2). This is a convenience method that saves you from * casting and handling an exception. */ public ID getTypeOfData() { return getTyped(1, ID.class); }