Package gov.nasa.pds.tools.validate.rule
Interface ValidationRule
-
- All Superinterfaces:
org.apache.commons.chain.Command
- All Known Implementing Classes:
AbstractFindTargets,AbstractValidationChain,AbstractValidationRule,BundleContentsNamingRule,BundleReferentialIntegrityRule,BundleValidationRule,CollectionInBundleRule,CollectionReferentialIntegrityRule,CollectionValidationRule,ContextProductReferenceValidationRule,DataDefinitionAndContentValidationRule,DirectoryValidationRule,DummyValidationChain,FileAndDirectoryNamingChecker,FileAndDirectoryNamingRule,FileReferenceValidationRule,FindUnreferencedFiles,FindUnreferencedIdentifiers,LabelInFolderRule,LabelValidationChain,LabelValidationRule,LocalIdentifierReferencesRule,MarkSubdirectoriesReferenced,RecordValidationResults,RegisterLabelIdentifiers,RegisterTargetReferences,RegisterTargets,SetReportHeader,StandardValidationChain,SubdirectoryNamingRule,SubDirectoryRule,UTF8ByteStreamRule,VolumeValidationRule
public interface ValidationRule extends org.apache.commons.chain.CommandDefines an interface that validation rule classes must implement.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetCaption()Gets a caption describing the rule.booleanisApplicable(String location)Tests whether a rule is applicable to a target location.
-
-
-
Method Detail
-
isApplicable
boolean isApplicable(String location)
Tests whether a rule is applicable to a target location.- Parameters:
location- the target location to validate- Returns:
- true, if the rule is applicable to the target, false otherwise
-
getCaption
String getCaption()
Gets a caption describing the rule.- Returns:
- a string caption
-
-