public class TraceItem extends Object implements Cloneable
Constructor and Description |
---|
TraceItem()
Create a new item.
|
Modifier and Type | Method and Description |
---|---|
protected void |
assertNotNull(String fieldName,
Object fieldValue)
Verify that the specified value is not 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.
|
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
|
String |
toString()
Return a string representation of this object for testing purposes.
|
public String toString()
public boolean containsText()
public String getMessage()
public Throwable getThrowable()
public Date getTime()
public String getThreadName()
public Object getLock()
public TraceItem getPrevItem()
public TraceItem getNextItem()
public TraceChannel getChannel()
public Object clone() throws CloneNotSupportedException
clone
in class Object
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 checkDetailedNullPointerException
- If fieldValue is nullCopyright © 1998–2014 Gargoyle Software Inc.. All rights reserved.