org.daisy.zedval
Class DefaultContext

java.lang.Object
  extended byorg.daisy.zedval.engine.ZedContext
      extended byorg.daisy.zedval.DefaultContext

public class DefaultContext
extends ZedContext

Author:
Markus Gylling

Field Summary
 
Fields inherited from class org.daisy.zedval.engine.ZedContext
ENGINE_VERSION
 
Constructor Summary
DefaultContext(java.lang.String appName, java.lang.String appVersion)
           
 
Method Summary
 java.lang.String[] getCommandLineArguments()
           
 java.net.URL getDefaultProcMap(java.lang.String specVersion)
           
 java.net.URL getDefaultTestMap(java.lang.String specVersion)
           
 java.lang.String getManualReportPath()
           
 boolean getOutputListFlag()
          Is the outputList flag set?
 java.util.GregorianCalendar getStartTime()
          Returns the start time of the application
 java.lang.String getStylesheetName()
          Returns the name of the stylesheet to use in the output report
 java.lang.String getTestListName()
           
 int getVerbosity()
           
 java.util.LinkedHashMap loadTestProcessors()
          Instantiates all applicable test processors based on test list and processor map Note: setTests() or loadTests() must be called before this method
 java.util.LinkedHashMap loadTests()
          Instantiates all applicable tests based on contents of package file, test map, and options
 void setCommandLineArguments(java.lang.String[] args)
           
 void setManualReportPath(java.lang.String manualReportPath)
           
 void setOutputList(java.lang.String testListName)
           
 void setStylesheetName(java.lang.String xsltName)
           
 void setTimeTolerance(long tol)
           
 void setTimeTolerance(java.lang.String tol)
           
 void setVerbosity(int v)
           
 void setVerbosity(java.lang.String vrbs)
           
 
Methods inherited from class org.daisy.zedval.engine.ZedContext
getAppName, getAppVersion, getPackageFile, getProcessorMap, getReporter, getSpecYear, getTestMap, getTestProcessors, getTests, loadPackageFile, loadProcessorMap, loadProcessorMap, loadReporter, loadTestMap, loadTestMap, printTests, setPackageFile, setProcessorMap, setReporter, setTestMap, setTestProcessors, setTests, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DefaultContext

public DefaultContext(java.lang.String appName,
                      java.lang.String appVersion)
Parameters:
appName - The name of the application being run
appVersion - The version number of the application being run
Method Detail

getDefaultProcMap

public java.net.URL getDefaultProcMap(java.lang.String specVersion)
                               throws ZedContextException
Throws:
ZedContextException

getDefaultTestMap

public java.net.URL getDefaultTestMap(java.lang.String specVersion)
                               throws ZedContextException
Throws:
ZedContextException

loadTests

public java.util.LinkedHashMap loadTests()
                                  throws ZedContextException
Instantiates all applicable tests based on contents of package file, test map, and options

Overrides:
loadTests in class ZedContext
Returns:
LinkedHashMap of ZedTests created (key = id)
Throws:
ZedContextException

loadTestProcessors

public java.util.LinkedHashMap loadTestProcessors()
                                           throws ZedContextException
Instantiates all applicable test processors based on test list and processor map

Note: setTests() or loadTests() must be called before this method

Overrides:
loadTestProcessors in class ZedContext
Returns:
LinkedHashMap of ZedTestProcessors created
Throws:
ZedContextException

setVerbosity

public void setVerbosity(java.lang.String vrbs)
                  throws java.lang.NumberFormatException
Throws:
java.lang.NumberFormatException

setVerbosity

public void setVerbosity(int v)
                  throws java.lang.NumberFormatException
Throws:
java.lang.NumberFormatException

getVerbosity

public int getVerbosity()
Returns:
The verbosity level

setTimeTolerance

public void setTimeTolerance(java.lang.String tol)
                      throws java.lang.NumberFormatException
Throws:
java.lang.NumberFormatException

setTimeTolerance

public void setTimeTolerance(long tol)

setStylesheetName

public void setStylesheetName(java.lang.String xsltName)

getStylesheetName

public java.lang.String getStylesheetName()
Returns the name of the stylesheet to use in the output report

Returns:
String value of stylesheet name

setManualReportPath

public void setManualReportPath(java.lang.String manualReportPath)

getManualReportPath

public java.lang.String getManualReportPath()

setOutputList

public void setOutputList(java.lang.String testListName)
                   throws java.io.IOException
Throws:
java.io.IOException

getCommandLineArguments

public java.lang.String[] getCommandLineArguments()

setCommandLineArguments

public void setCommandLineArguments(java.lang.String[] args)

getOutputListFlag

public boolean getOutputListFlag()
Is the outputList flag set?

Returns:
The outputList flag value

getTestListName

public java.lang.String getTestListName()
Returns:
The name of the test list file for output

getStartTime

public java.util.GregorianCalendar getStartTime()
Returns the start time of the application

Returns:
GregorianCalendar that represents start time