/** * @deprecated this method should not be public * @param message HL7 message * @return message structure * @throws HL7Exception */ public String getMessageStructure(String message) throws HL7Exception { return getStructure(message).messageStructure; }
@Override public void parse(Message message, String string) throws HL7Exception { if (message instanceof AbstractSuperMessage && message.getName() == null) { String structure = getStructure(string).messageStructure; ((AbstractSuperMessage) message).setName(structure);
@Override public void parse(Message message, String string) throws HL7Exception { if (message instanceof AbstractSuperMessage && message.getName() == null) { String structure = getStructure(string).messageStructure; ((AbstractSuperMessage) message).setName(structure);
/** * @deprecated this method should not be public * @param message HL7 message * @return message structure * @throws HL7Exception */ public String getMessageStructure(String message) throws HL7Exception { return getStructure(message).messageStructure; }
/** * {@inheritDoc} */ protected Message doParseForSpecificPackage(String message, String version, String packageName) throws HL7Exception { // try to instantiate a message object of the right class MessageStructure structure = getStructure(message); Message m = instantiateMessageInASpecificPackage(structure.messageStructure, version, structure.explicitlyDefined, packageName); parse(m, message); return m; }
/** * {@inheritDoc} */ protected Message doParseForSpecificPackage(String message, String version, String packageName) throws HL7Exception { // try to instantiate a message object of the right class MessageStructure structure = getStructure(message); Message m = instantiateMessageInASpecificPackage(structure.messageStructure, version, structure.explicitlyDefined, packageName); parse(m, message); return m; }
/** * Parses a message string and returns the corresponding Message object. * Unexpected segments added at the end of their group. * * @throws HL7Exception * if the message is not correctly formatted. * @throws EncodingNotSupportedException * if the message encoded is not supported by this parser. */ protected Message doParse(String message, String version) throws HL7Exception { // try to instantiate a message object of the right class MessageStructure structure = getStructure(message); Message m = instantiateMessage(structure.messageStructure, version, structure.explicitlyDefined); m.setParser(this); parse(m, message); return m; }
/** * Parses a message string and returns the corresponding Message object. * Unexpected segments added at the end of their group. * * @throws HL7Exception * if the message is not correctly formatted. * @throws EncodingNotSupportedException * if the message encoded is not supported by this parser. */ protected Message doParse(String message, String version) throws HL7Exception { // try to instantiate a message object of the right class MessageStructure structure = getStructure(message); Message m = instantiateMessage(structure.messageStructure, version, structure.explicitlyDefined); m.setParser(this); parse(m, message); return m; }