org.daisy.zedval.engine
Class CustomTestProcessor

java.lang.Object
  extended byorg.daisy.zedval.engine.ZedTestProcessor
      extended byorg.daisy.zedval.engine.CustomTestProcessor

public class CustomTestProcessor
extends ZedTestProcessor

A CustomTestProcessor object executes tests via a custom Java class

Author:
James Pritchett

Constructor Summary
CustomTestProcessor(java.lang.String id, java.lang.String l, java.util.LinkedHashMap tests, java.util.LinkedHashMap files, ZedContext c, java.lang.String testerName)
           
 
Method Summary
 ZedCustomTest getTester()
          Returns the object being used to test files
 java.lang.String getTesterName()
          Returns the class name of the object being used to test files
 boolean performTests()
          Performs the tests on all the files
 java.lang.String toString()
           
 
Methods inherited from class org.daisy.zedval.engine.ZedTestProcessor
getContext, getFilesTested, getId, getLabel, getTestsImplemented
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CustomTestProcessor

public CustomTestProcessor(java.lang.String id,
                           java.lang.String l,
                           java.util.LinkedHashMap tests,
                           java.util.LinkedHashMap files,
                           ZedContext c,
                           java.lang.String testerName)
Parameters:
id - ID of this ZedTestProcessor (from processor map)
l - Name for this ZedTestProcessor
tests - LinkedHashMap of ZedTests that this ZedTestProcessor implements (key = id)
files - LinkedHashMap of ZedFiles upon which this ZedTestProcessor is to be invoked (key = absolute full path)
c - ZedContext for this run
testerName - The name of a class that implements the ZedCustomTest interface that will actually execute the tests
Method Detail

performTests

public boolean performTests()
Performs the tests on all the files

Overrides:
performTests in class ZedTestProcessor
Returns:
TRUE if tests were performed on one or more files

getTester

public ZedCustomTest getTester()
Returns the object being used to test files

Returns:
The ZedCustomTest object

getTesterName

public java.lang.String getTesterName()
Returns the class name of the object being used to test files

Returns:
The ZedCustomTest implementation class name

toString

public java.lang.String toString()
Overrides:
toString in class ZedTestProcessor