biz.c24.io.api
Class LogEntry

java.lang.Object
  extended by biz.c24.io.api.LogEntry

public class LogEntry
extends Object

An entry which will get logged, providing access to a message and the underlying object or element / attribute.


Constructor Summary
LogEntry(String message)
          Creates a new instance with the specified message.
LogEntry(String message, ComplexDataObject object)
          Creates a new instance with the specified message and object.
LogEntry(String message, DataComponent comp)
          Creates a new instance with the specified message and component.
 
Method Summary
 String getMessage()
          Returns the message.
 String toString()
          Returns the name of the object or component followed by a colon and the message.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LogEntry

public LogEntry(String message)
Creates a new instance with the specified message.

Parameters:
message - The message to log.

LogEntry

public LogEntry(String message,
                ComplexDataObject object)
Creates a new instance with the specified message and object.

Parameters:
message - The message to log.
object - The associated object.

LogEntry

public LogEntry(String message,
                DataComponent comp)
Creates a new instance with the specified message and component.

Parameters:
message - The message to log.
comp - The associated component.
Method Detail

getMessage

public String getMessage()
Returns the message.

Returns:
The message.

toString

public String toString()
Returns the name of the object or component followed by a colon and the message.

Overrides:
toString in class Object
Returns:
The string


C24 Technologies © 2002-2012: All Rights Reserved.