|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.gargoylesoftware.base.trace.TraceItem
An item of data to be written.
Constructor Summary | |
TraceItem()
Create a new item. |
Method Summary | |
protected void |
assertNotNull(String fieldName,
Object fieldValue)
Verify that the specified value is not null. |
(package private) 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. |
(package private) 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 |
(package private) boolean |
isClear()
|
(package private) void |
setChannel(TraceChannel channel)
|
(package private) void |
setLock(Object lock)
|
(package private) void |
setMessage(String string)
|
(package private) void |
setNextItem(TraceItem item)
|
(package private) void |
setPrevItem(TraceItem item)
|
(package private) void |
setThread(Thread thread)
|
(package private) void |
setThrowable(Throwable t)
|
(package private) void |
setTime(Date time)
|
String |
toString()
Return a string representation of this object for testing purposes. |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public TraceItem()
Method Detail |
void clear()
boolean isClear()
public String toString()
public boolean containsText()
public String getMessage()
void setMessage(String string)
string
- The messagepublic Throwable getThrowable()
void setThrowable(Throwable t)
t
- The throwablepublic Date getTime()
void setTime(Date time)
time
- The timeThread getThread()
void setThread(Thread thread)
thread
- The threadpublic String getThreadName()
public Object getLock()
void setLock(Object lock)
lock
- The lockpublic TraceItem getPrevItem()
void setPrevItem(TraceItem item)
item
- The previous itempublic TraceItem getNextItem()
void setNextItem(TraceItem item)
item
- The next itempublic TraceChannel getChannel()
void setChannel(TraceChannel channel)
channel
- The channelpublic Object clone() throws CloneNotSupportedException
CloneNotSupportedException
- If this object is not cloneable.protected final void assertNotNull(String fieldName, Object fieldValue) throws DetailedNullPointerException
fieldName
- The name of the field to checkfieldValue
- The value of the field to check
DetailedNullPointerException
- If fieldValue is null
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |