Interface AssessmentExecutor<DOC extends Document>
-
- Type Parameters:
DOC- the type of document that is the target of the assessment
- All Known Implementing Classes:
AbstractAssessmentExecutor,BasicAssessmentExecutor,ConcurrentAssessmentExecutor
public interface AssessmentExecutor<DOC extends Document>This interface represents an executor that is capable of evaluating one or more associatedAssessmentinstances. After completing all evaluations, anAssessmentResultsis returned that contains the results of the evaluations.A simple implementation of this interface is provided by
BasicAssessmentExecutor. TheAbstractAssessmentExecutorclass is provided to support customization of Assessment execution behavior for more advanced cases.Implementations of this interface are expected to allow thread-safe execution of the collection of Assessments through multiple simultaneous calls to
execute(Document, AssessmentResultBuilder).
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidexecute(DOC documentToAssess, AssessmentResultBuilder resultBuilder)Executes an assessment over the provided XML document.
-
-
-
Method Detail
-
execute
void execute(DOC documentToAssess, AssessmentResultBuilder resultBuilder) throws AssessmentException
Executes an assessment over the provided XML document.Implementations of this method are expected to catch any exceptions and wrap them in an
AssessmentException.- Parameters:
documentToAssess- the document to perform the assessment overresultBuilder- a result builder instance that can be used to record the results of the assessment execution- Throws:
AssessmentException- if an error occurs while performing the assessment
-
-