001package ca.uhn.hl7v2.hoh.hapi.api; 002 003import ca.uhn.hl7v2.hoh.api.AbstractReceivable; 004import ca.uhn.hl7v2.hoh.api.IReceivable; 005import ca.uhn.hl7v2.model.Message; 006 007public class MessageReceivable extends AbstractReceivable<Message> implements IReceivable<Message> { 008 009 private final Message myMessage; 010 011 public MessageReceivable(Message theMessage) { 012 myMessage = theMessage; 013 } 014 015 /** 016 * {@inheritDoc} 017 */ 018 public Message getMessage() { 019 return myMessage; 020 } 021 022}