Skip to content
Snippets Groups Projects
Commit e1c2c3d8 authored by Jonas Blatt's avatar Jonas Blatt :ant:
Browse files

Add documentation for Abstract Verifier

parent acaecb84
No related branches found
No related tags found
No related merge requests found
......@@ -16,6 +16,10 @@ import org.apache.commons.lang3.time.StopWatch;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* The abstract verifier is a implementation staring point for the {@link Verifier} interface and
* contains the needed components for the final implementation of verifiers.
*/
public abstract class AbstractVerifier implements Verifier {
protected final Logger LOGGER = LoggerFactory.getLogger(getClass().getSimpleName());
......@@ -32,6 +36,13 @@ public abstract class AbstractVerifier implements Verifier {
return verificationType;
}
/**
* Load the configuration, which contains the necessary information for the verifier. E.g. the dmn
* model.
*
* @param configuration the configuration object
* @return the current instance of the verifier
*/
public final AbstractVerifier withConfiguration(AbstractDmnVerifierConfig configuration) {
this.verifierConfig = Validate.notNull(configuration);
this.dmnObjectContainer =
......@@ -81,6 +92,10 @@ public abstract class AbstractVerifier implements Verifier {
return resultBuilder.withExecutionTime(executionTime).build();
}
/**
* This method must be implemented by the finial verifiers and should contain the calculation of
* the verifier.
*/
protected abstract void doVerification();
@Override
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment