net.sf.swan.xml.input.traceview
Class JTreeTraceHandler

java.lang.Object
  |
  +--net.sf.swan.xml.input.event.TraceHandler
        |
        +--net.sf.swan.xml.input.traceview.JTreeTraceHandler
All Implemented Interfaces:
ErrorHandler

public class JTreeTraceHandler
extends TraceHandler
implements ErrorHandler


Field Summary
static int ERROR
           
static int FATAL_ERROR
           
static int WARNING
           
 
Constructor Summary
JTreeTraceHandler()
           
JTreeTraceHandler(int errorLevel)
           
 
Method Summary
 javax.swing.JComponent createView()
           
 void endContext(java.lang.Object context)
           
 void endContextRef(java.lang.Object contextRef, java.lang.Object message)
           
 void endTrace(ContextEvent event, java.lang.Object subject)
           
 void error(EventContextException ex)
           
 void fatalError(EventContextException ex)
           
 int getErrorLevel()
           
 javax.swing.tree.TreeNode getRoot()
           
 void setErrorLevel(int errorLevel)
          Sets the threshold for throwing exceptions rather than simply printing them.
 javax.swing.JFrame showFrame()
           
 void startContext(java.lang.Object context)
           
 void startContextRef(java.lang.Object contextRef, java.lang.Object message)
           
 void startTrace(ContextEvent event, java.lang.Object subject)
           
 void startTrace(DocumentContext context)
           
 void trace(java.lang.Object subject)
           
 void traceClientState(EventContext context)
           
 void traceContextProperty(EventContext context, java.lang.Object key, java.lang.Object value)
           
 void traceProperty(EventContext context, java.lang.Object key, java.lang.Object value)
           
 void warning(EventContextException ex)
           
 
Methods inherited from class net.sf.swan.xml.input.event.TraceHandler
endTrace, getContextIdentifier, getDefaultTraceHandler, getDocumentIdentifier, getElementIdentifier, setDefaultTraceHandler, traceEnabled
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

WARNING

public static final int WARNING

ERROR

public static final int ERROR

FATAL_ERROR

public static final int FATAL_ERROR
Constructor Detail

JTreeTraceHandler

public JTreeTraceHandler()

JTreeTraceHandler

public JTreeTraceHandler(int errorLevel)
Method Detail

getErrorLevel

public int getErrorLevel()

warning

public void warning(EventContextException ex)
             throws EventContextException
Specified by:
warning in interface ErrorHandler

error

public void error(EventContextException ex)
           throws EventContextException
Specified by:
error in interface ErrorHandler

fatalError

public void fatalError(EventContextException ex)
                throws EventContextException
Specified by:
fatalError in interface ErrorHandler

setErrorLevel

public void setErrorLevel(int errorLevel)
Sets the threshold for throwing exceptions rather than simply printing them. The value should be one of WARNING, ERROR, or FATAL_ERROR.

startTrace

public void startTrace(DocumentContext context)
Overrides:
startTrace in class TraceHandler

showFrame

public javax.swing.JFrame showFrame()

createView

public javax.swing.JComponent createView()

startContext

public void startContext(java.lang.Object context)
Overrides:
startContext in class TraceHandler

startTrace

public void startTrace(ContextEvent event,
                       java.lang.Object subject)
Overrides:
startTrace in class TraceHandler

endTrace

public void endTrace(ContextEvent event,
                     java.lang.Object subject)
Overrides:
endTrace in class TraceHandler

trace

public void trace(java.lang.Object subject)
Overrides:
trace in class TraceHandler

endContext

public void endContext(java.lang.Object context)
Overrides:
endContext in class TraceHandler

startContextRef

public void startContextRef(java.lang.Object contextRef,
                            java.lang.Object message)
Overrides:
startContextRef in class TraceHandler

endContextRef

public void endContextRef(java.lang.Object contextRef,
                          java.lang.Object message)
Overrides:
endContextRef in class TraceHandler

traceClientState

public void traceClientState(EventContext context)
Overrides:
traceClientState in class TraceHandler

traceProperty

public void traceProperty(EventContext context,
                          java.lang.Object key,
                          java.lang.Object value)
Overrides:
traceProperty in class TraceHandler

traceContextProperty

public void traceContextProperty(EventContext context,
                                 java.lang.Object key,
                                 java.lang.Object value)
Overrides:
traceContextProperty in class TraceHandler

getRoot

public javax.swing.tree.TreeNode getRoot()