com.gargoylesoftware.base.trace
public class TraceItem extends Object implements Cloneable
Version: $Revision: 1.4 $
| Field Summary | |
|---|---|
| TraceChannel | channel_ |
| Object | lock_ |
| String | message_ |
| TraceItem | nextItem_ |
| TraceItem | prevItem_ |
| Thread | thread_ |
| Throwable | throwable_ |
| Date | time_ |
| Constructor Summary | |
|---|---|
| TraceItem()
Create a new item. | |
| Method Summary | |
|---|---|
| protected void | assertNotNull(String fieldName, Object fieldValue)
Verify that the specified value is not null. |
| void | clear()
Reset all the values to null |
| Object | clone()
Return a copy of this object. |
| boolean | containsText()
Return true if this item contains any text. |
| TraceChannel | getChannel()
Return the channel. |
| Object | getLock()
Return the lock. |
| String | getMessage()
Return the message. |
| TraceItem | getNextItem()
Return the next item. |
| TraceItem | getPrevItem()
Return the previous item. |
| Thread | getThread() |
| String | getThreadName()
Return the name of the thread that called Trace. |
| Throwable | getThrowable()
Return the throwable. |
| Date | getTime()
Return the time that the item was written to Trace |
| boolean | isClear() |
| void | setChannel(TraceChannel channel) |
| void | setLock(Object lock) |
| void | setMessage(String string) |
| void | setNextItem(TraceItem item) |
| void | setPrevItem(TraceItem item) |
| void | setThread(Thread thread) |
| void | setThrowable(Throwable t) |
| void | setTime(Date time) |
| String | toString()
Return a string representation of this object for testing purposes. |
Parameters: fieldName The name of the field to check fieldValue The value of the field to check
Throws: DetailedNullPointerException If fieldValue is null
Returns: A copy.
Throws: CloneNotSupportedException If this object is not cloneable.
Returns: true if this item contains any text.
Returns: the channel.
Returns: the lock.
Returns: the message.
Returns: the next item.
Returns: the previous item.
Returns: The thread
Returns: the name of the thread.
Returns: the throwable.
Returns: the time.
Returns: true if the message has no content
Parameters: channel The channel
Parameters: lock The lock
Parameters: string The message
Parameters: item The next item
Parameters: item The previous item
Parameters: thread The thread
Parameters: t The throwable
Parameters: time The time
Returns: The string representation