Package gov.nasa.pds.tools.validate.rule
Interface ValidationRule
- All Superinterfaces:
org.apache.commons.chain.Command
- All Known Implementing Classes:
AbstractFindTargets
,AbstractValidationChain
,AbstractValidationRule
,ArrayContentValidationRule
,BundleContentsNamingRule
,BundleReferentialIntegrityRule
,BundleValidationRule
,CollectionInBundleRule
,CollectionReferentialIntegrityRule
,CollectionValidationRule
,ContextProductReferenceValidationRule
,DirectoryValidationRule
,DummyValidationChain
,FileAndDirectoryNamingChecker
,FileAndDirectoryNamingRule
,FileReferenceValidationRule
,FindUnreferencedFiles
,FindUnreferencedIdentifiers
,LabelInFolderRule
,LabelValidationChain
,LabelValidationRule
,LocalIdentifierReferencesRule
,MarkSubdirectoriesReferenced
,RecordValidationResults
,RegisterLabelIdentifiers
,RegisterTargetReferences
,RegisterTargets
,SetReportHeader
,StandardValidationChain
,SubdirectoryNamingRule
,SubDirectoryRule
,TableDataContentValidationRule
,TableFieldDefinitionRule
,UTF8ByteStreamRule
,VolumeValidationRule
public interface ValidationRule
extends org.apache.commons.chain.Command
Defines an interface that validation rule classes must implement.
-
Field Summary
Fields inherited from interface org.apache.commons.chain.Command
CONTINUE_PROCESSING, PROCESSING_COMPLETE
-
Method Summary
Modifier and Type Method Description String
getCaption()
Gets a caption describing the rule.boolean
isApplicable(String location)
Tests whether a rule is applicable to a target location.Methods inherited from interface org.apache.commons.chain.Command
execute
-
Method Details
-
isApplicable
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
-