|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.writersforge.catalan.transform.BaseNodeProcessor
org.writersforge.catalan.transform.io.DebugProcessor
Debug logging processor which sends each node to the debug output, but does not alter anything.
| Constructor Summary | |
DebugProcessor(org.writersforge.bellows.Datum xml)
Creates a new instance of DebugProcessor from the XML spec. |
|
DebugProcessor(java.lang.String logLevel,
java.lang.String message)
Creates a new instance of DebugProcessor that logs the message to the requested logging channel. |
|
DebugProcessor(java.lang.String logLevel,
java.lang.String preText,
java.lang.String postText)
Creates a new instance of DebugProcessor that logs all nodes to the requested logging channel. |
|
| Method Summary | |
static void |
main(java.lang.String[] args)
Tests debugging output, since it's not so easy in a JUnit test. |
java.util.List |
processNode(java.lang.Object node)
Process a single node. |
void |
start(java.util.List nodes)
Starts a new traversal. |
| Methods inherited from class org.writersforge.catalan.transform.BaseNodeProcessor |
addLeftover, end, getLeftovers, getNodes |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DebugProcessor(org.writersforge.bellows.Datum xml)
xml - XML initializing spec
public DebugProcessor(java.lang.String logLevel,
java.lang.String preText,
java.lang.String postText)
logLevel - the name of the logging channelpreText - optional leading log text for each nodepostText - optional trailing log text for each node
public DebugProcessor(java.lang.String logLevel,
java.lang.String message)
logLevel - the name of the logging channelmessage - static log text| Method Detail |
public void start(java.util.List nodes)
start in interface org.writersforge.bellows.traverse.NodeProcessorstart in class BaseNodeProcessornodes - the list of nodes that will later be traversedpublic java.util.List processNode(java.lang.Object node)
node - the node to process
public static void main(java.lang.String[] args)
args - unused
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||