net.sourceforge.argval.message.impl
Class MessageItemImpl

java.lang.Object
  extended by net.sourceforge.argval.message.impl.MessageItemImpl
All Implemented Interfaces:
MessageItem, MessageStoreVisitorAccepter

public class MessageItemImpl
extends Object
implements MessageItem, MessageStoreVisitorAccepter


Constructor Summary
MessageItemImpl(String priority, String message, Throwable cause)
           
 
Method Summary
 void accept(MessageStoreVisitor visitor)
           
 Throwable getCause()
          If the message is related to a cause, this returns that cause.
 Date getDate()
          Returns the time stamp ad which the message was created.
 String getMessage()
          Returns the message text.
 String getPriority()
          Returns the message priority.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessageItemImpl

public MessageItemImpl(String priority,
                       String message,
                       Throwable cause)
Method Detail

accept

public void accept(MessageStoreVisitor visitor)
Specified by:
accept in interface MessageStoreVisitorAccepter

getDate

public Date getDate()
Description copied from interface: MessageItem
Returns the time stamp ad which the message was created.

Specified by:
getDate in interface MessageItem
Returns:
The time stamp ad which the massage was created.

getPriority

public String getPriority()
Description copied from interface: MessageItem
Returns the message priority.

Specified by:
getPriority in interface MessageItem
Returns:
The message priority.

getMessage

public String getMessage()
Description copied from interface: MessageItem
Returns the message text.

Specified by:
getMessage in interface MessageItem
Returns:
The message text.

getCause

public Throwable getCause()
Description copied from interface: MessageItem
If the message is related to a cause, this returns that cause.

Specified by:
getCause in interface MessageItem
Returns:
The cause related to the message.


Copyright © 2013 Verhagen Software. All Rights Reserved.