org.keridwen.core.data.storage.manager
Class DataPacketInformation

java.lang.Object
  extended by org.keridwen.core.data.storage.manager.DataPacketInformation

public class DataPacketInformation
extends Object

This class contains information about a data packet.


Constructor Summary
DataPacketInformation()
          Default constructor.
 
Method Summary
 Date getCreationDate()
          Gets the creation date of the packet.
 boolean isLogActive()
          Checks whether the log is active.
 void log(String log)
          Adds the given text to the log.
 void setLogActive(boolean activity)
          Sets the log activity to the given value.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DataPacketInformation

public DataPacketInformation()
Default constructor.

Method Detail

log

public final void log(String log)
Adds the given text to the log.

Parameters:
log - the text to log

getCreationDate

public final Date getCreationDate()
Gets the creation date of the packet.

Returns:
the creationDate

isLogActive

public final boolean isLogActive()
Checks whether the log is active.

Returns:
the true if the log is active

setLogActive

public final void setLogActive(boolean activity)
Sets the log activity to the given value.

Parameters:
activity - the logActive to set

toString

public final String toString()
Overrides:
toString in class Object


Copyright © 2010-2013 Artenum. All Rights Reserved.