peer2me.util
Class LogElement

java.lang.Object
  extended by peer2me.util.LogElement

public class LogElement
extends java.lang.Object

Describing an entry in the log as a LogElement holding LogEntryType and a LogEntryDate along with a textual description of the log-entry.

Author:
Tommy Bjoernsgaard

Method Summary
 LogElementDate getDate()
          Gets the date/time of the log-entry
 java.lang.String getText()
          Gets the description of the log-entry
 LogElementType getType()
          Gets the type of log-entry
 java.lang.String toString()
          Overrides the default toString() giving a textual description of the object in a better manner.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getDate

public LogElementDate getDate()
Gets the date/time of the log-entry

Returns:
the date as a LogElementDate object

getType

public LogElementType getType()
Gets the type of log-entry

Returns:
An int describing the LogElementType

getText

public java.lang.String getText()
Gets the description of the log-entry

Returns:
The string describing the log-entry

toString

public java.lang.String toString()
Overrides the default toString() giving a textual description of the object in a better manner.

Overrides:
toString in class java.lang.Object