com.ohrasys.cad.bnf
Interface BNFTestImplementor

All Known Implementing Classes:
AndFactorsValidator, AssignmentValidator, BasicSymbolValidator, BNFAbstractTest, BNFNoFallthruTest, BNFOneOfManyRequiredTest, BNFOneOrMoreOptionalTest, BNFOneOrMoreRequiredTest, BNFOptionalTest, BNFRequiredTest, BNFValidator, BracedTermValidator, BracketedTermValidator, EscapedSymbolValidator, FactorsValidator, FactorValidator, IdentifierAdditionalCharacterValidator, IdentifierStartCharacterValidator, IdentifierValidator, LowercaseValidator, NumberValidator, OrFactorsValidator, OrFactorValidator, QuotedValidator, RuleValidator, SubFactorsValidator, SymbolValidator, TermValidator, UnderscoreValidator, UppercaseValidator, WhitespaceValidator

public interface BNFTestImplementor

An interface that all BNF test implementations must implement.


Method Summary
 java.lang.Object collect()
          A method to retrieve information collected during the evaluation of the test.
 void reset()
          A method used to reset the test state
 void setCollecting(boolean isCollecting)
          A method to turn data collection on and off
 void setFormatting(boolean isFormatting)
           
 BNFTestResult test(BNFTestableObject obj)
          A method to evaluate the test using the supplied testable object
 

Method Detail

collect

java.lang.Object collect()
A method to retrieve information collected during the evaluation of the test.

Returns:
A list containing the data collected during the evaluation of the test.

reset

void reset()
A method used to reset the test state


setCollecting

void setCollecting(boolean isCollecting)
A method to turn data collection on and off

Parameters:
isCollecting - true if the test should collect data as it evaluates

setFormatting

void setFormatting(boolean isFormatting)

test

BNFTestResult test(BNFTestableObject obj)
A method to evaluate the test using the supplied testable object

Parameters:
obj - The BNFTestableObject from which to extract the token used to evaluate the test
Returns:
A BNFTestResult object representing the completion status of the test