1 package net.sourceforge.argval.message; 2 3 4 import java.util.Date; 5 6 7 /** 8 * The MessageItem interface gives access to a text message. It can also hold a Throwable and a time stamp 9 * ad which the message was created. 10 * 11 * @author T. Verhagen 12 */ 13 public interface MessageItem { 14 15 /** 16 * Returns the time stamp ad which the message was created. 17 * 18 * @return The time stamp ad which the massage was created. 19 */ 20 Date getDate(); 21 22 23 /** 24 * Returns the message priority. 25 * 26 * @return The message priority. 27 */ 28 String getPriority(); 29 30 31 /** 32 * If the message is related to a cause, this returns that cause. 33 * 34 * @return The cause related to the message. 35 */ 36 Throwable getCause(); 37 38 39 /** 40 * Returns the message text. 41 * 42 * @return The message text. 43 */ 44 String getMessage(); 45 46 }