/* * Copyright LGPL3 * YES Technology Association * http://yestech.org * * http://www.opensource.org/licenses/lgpl-3.0.html */ /* * * Original Author: Artie Copeland * Last Modified Date: $DateTime: $ */ package org.yestech.notify.objectmodel; import org.yestech.notify.constant.IMessageType; import org.yestech.notify.constant.MessageTypeEnum; import java.io.Serializable; import java.util.Collection; /** * @author $Author: $ * @version $Revision: $ */ public interface IMessage extends Serializable { void addAttachments(Collection attachments); void addAttachment(Attachment attachment); void clearAttachment(); boolean isAttachmentEmpty(); int attachementSize(); Collection getAttachments(); String getSubject(); void setSubject(String subject); String getText(); void setText(String text); MessageTypeEnum getMessageType(); void setMessageType(MessageTypeEnum messageType); }