net.firstpartners.nounit.report.process
Class CallChainer

java.lang.Object
  |
  +--net.firstpartners.nounit.report.process.CallChainer
All Implemented Interfaces:
ICallsXmlConstants

public class CallChainer
extends java.lang.Object
implements ICallsXmlConstants

Using the Start Class as a base , traces *all* calls through the document to see what calls what. Start Class is defined as any class that extends @param nameOfBaseClass. While tracing calls through the Java (XML tree) , it updates the tree, to see who calls who , when and a what depth (and to see what this method may call in turn.
This process is called the 'Call Chain'.
The class acts on XML as per dtd @see nounit-standard.dtd and should produce a similar XML tree , but with extra information (mainly attrubtes) as per (output XML @see nounit-calls.dtd)


Fields inherited from interface net.firstpartners.nounit.report.process.ICallsXmlConstants
ATTRIBUTE_MIN_CALL_DEPTH, ATTRIBUTE_NUMBER_OF_CALLS
 
Constructor Summary
CallChainer()
           
 
Method Summary
 void addCallChainInformation(java.lang.String fullXmlFileName, java.lang.String outputFile, java.lang.String nameOfBaseClass)
          Add Calls information to the XMl Tree (@see nounit-standard.dtd)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CallChainer

public CallChainer()
Method Detail

addCallChainInformation

public void addCallChainInformation(java.lang.String fullXmlFileName,
                                    java.lang.String outputFile,
                                    java.lang.String nameOfBaseClass)
                             throws NoUnitException,
                                    java.io.IOException,
                                    org.jdom.JDOMException
Add Calls information to the XMl Tree (@see nounit-standard.dtd)
Parameters:
fullXMLFileName - file to process
outputFile -  
nameOfBaseClass - - the calls trail will run from here
Throws:
NoUnitException -  
java.io.IOException -