Class FileReferenceValidationRule
- java.lang.Object
-
- gov.nasa.pds.tools.validate.rule.AbstractValidationRule
-
- gov.nasa.pds.tools.validate.rule.pds4.FileReferenceValidationRule
-
- All Implemented Interfaces:
ValidationRule,org.apache.commons.chain.Command
public class FileReferenceValidationRule extends AbstractValidationRule
Implements a rule to validate file references found in a label.- Author:
- mcayanan
-
-
Constructor Summary
Constructors Constructor Description FileReferenceValidationRule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisApplicable(String location)Tests whether a rule is applicable to a target location.voidvalidateFileReferences()-
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:AbstractValidationRuleTests whether a rule is applicable to a target location.- Specified by:
isApplicablein interfaceValidationRule- Specified by:
isApplicablein classAbstractValidationRule- Parameters:
location- the target location- Returns:
- true, if the rule is applicable to the target, false otherwise
-
validateFileReferences
@ValidationTest public void validateFileReferences()
-
-