Package gov.nasa.pds.tools.validate.rule
Class RecordValidationResults
- java.lang.Object
-
- gov.nasa.pds.tools.validate.rule.AbstractValidationRule
-
- gov.nasa.pds.tools.validate.rule.RecordValidationResults
-
- All Implemented Interfaces:
ValidationRule
,org.apache.commons.chain.Command
public class RecordValidationResults extends AbstractValidationRule
Class intended to record the validation results. This allows us to continually flush the results from cache memory. Useful especially when validating a million product bundle.- Author:
- mcayanan
-
-
Constructor Summary
Constructors Constructor Description RecordValidationResults()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isApplicable(String location)
Tests whether a rule is applicable to a target location.void
record()
-
Methods inherited from class gov.nasa.pds.tools.validate.rule.AbstractValidationRule
execute, getCaption, getChildContext, getContext, getExtraTarget, getListener, getParentTarget, getRegistrar, getTarget, isDebugLogLevel, isInfoLogLevel, reportError, reportError, setCaption, verifyLidPrefix
-
-
-
-
Method Detail
-
isApplicable
public boolean isApplicable(String location)
Description copied from class:AbstractValidationRule
Tests whether a rule is applicable to a target location.- Specified by:
isApplicable
in interfaceValidationRule
- Specified by:
isApplicable
in classAbstractValidationRule
- Parameters:
location
- the target location- Returns:
- true, if the rule is applicable to the target, false otherwise
-
record
@ValidationTest public void record()
-
-