org.daisy.zedval.engine
Class ZedTestProcessor

java.lang.Object
  extended byorg.daisy.zedval.engine.ZedTestProcessor
Direct Known Subclasses:
CustomTestProcessor, DtdTestProcessor, ManualTestProcessor, RngSchematronTestProcessor, XslTestProcessor

public class ZedTestProcessor
extends java.lang.Object

A ZedTestProcessor object executes one or more Tests on one or more ZedFiles

Author:
James Pritchett

Constructor Summary
ZedTestProcessor(java.lang.String id, java.lang.String l, java.util.LinkedHashMap tests, java.util.LinkedHashMap files, ZedContext c)
           
 
Method Summary
 ZedContext getContext()
          Returns ZedContext for this run
 java.util.LinkedHashMap getFilesTested()
          Returns a list of all files tested by this ZedTestProcessor
 java.lang.String getId()
          Returns the id of this ZedTestProcessor (from processor map)
 java.lang.String getLabel()
          Returns the name for this ZedTestProcessor
 java.util.LinkedHashMap getTestsImplemented()
          Returns a list of all tests implemented by this ZedTestProcessor
 boolean performTests()
          Performs all implemented tests on all given files
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ZedTestProcessor

public ZedTestProcessor(java.lang.String id,
                        java.lang.String l,
                        java.util.LinkedHashMap tests,
                        java.util.LinkedHashMap files,
                        ZedContext c)
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
Method Detail

performTests

public boolean performTests()
Performs all implemented tests on all given files

Returns:
TRUE if tests were performed on one or more files

getId

public java.lang.String getId()
Returns the id of this ZedTestProcessor (from processor map)

Returns:
the id of this ZedTestProcessor

getLabel

public java.lang.String getLabel()
Returns the name for this ZedTestProcessor

Returns:
the name for this ZedTestProcessor

getTestsImplemented

public java.util.LinkedHashMap getTestsImplemented()
Returns a list of all tests implemented by this ZedTestProcessor

Returns:
a LinkedHashMap of ZedTests (key = ZedTest.getId())

getFilesTested

public java.util.LinkedHashMap getFilesTested()
Returns a list of all files tested by this ZedTestProcessor

Returns:
a LinkedHashMap of ZedFile objects (key = File.getName())

getContext

public ZedContext getContext()
Returns ZedContext for this run

Returns:
ZedContext object for this run

toString

public java.lang.String toString()