public String getEncodingCharactersValue() throws HL7Exception { return getDelegate().getEncodingCharactersValue(); }
public String getEncodingCharactersValue() throws HL7Exception { return getDelegate().getEncodingCharactersValue(); }
/** * Returns an instance using the MSH-1 and MSH-2 values of the given message * * @param message the message * @return the encoding characters for this message * @throws HL7Exception If either MSH-1 or MSH-2 are not populated * @since 1.0 */ public static EncodingCharacters getInstance(Message message) throws HL7Exception { final String encodingCharactersValue = message.getEncodingCharactersValue(); if (encodingCharactersValue == null || encodingCharactersValue.length() == 0) { throw new HL7Exception("encoding characters not populated"); } final Character fieldSeparatorValue = message.getFieldSeparatorValue(); if (fieldSeparatorValue == null) { throw new HL7Exception("Field separator not populated"); } return new EncodingCharacters(fieldSeparatorValue, encodingCharactersValue); }
/** * Returns an instance using the MSH-1 and MSH-2 values of the given message * * @param message the message * @return the encoding characters for this message * @throws HL7Exception If either MSH-1 or MSH-2 are not populated * @since 1.0 */ public static EncodingCharacters getInstance(Message message) throws HL7Exception { final String encodingCharactersValue = message.getEncodingCharactersValue(); if (encodingCharactersValue == null || encodingCharactersValue.length() == 0) { throw new HL7Exception("encoding characters not populated"); } final Character fieldSeparatorValue = message.getFieldSeparatorValue(); if (fieldSeparatorValue == null) { throw new HL7Exception("Field separator not populated"); } return new EncodingCharacters(fieldSeparatorValue, encodingCharactersValue); }