Class BundleContentsNamingRule

java.lang.Object
gov.nasa.pds.tools.validate.rule.AbstractValidationRule
gov.nasa.pds.tools.validate.rule.pds4.BundleContentsNamingRule
All Implemented Interfaces:
ValidationRule, org.apache.commons.chain.Command

public class BundleContentsNamingRule
extends AbstractValidationRule
Implements a validation rule ensuring that only valid files and directories appear in the root directory of a bundle.
  • Constructor Details

    • BundleContentsNamingRule

      public BundleContentsNamingRule()
  • Method Details

    • checkFileAndDirectoryNaming

      @ValidationTest public void checkFileAndDirectoryNaming()
      Checks that files and directories at the root of the bundle are valid. See section 2B.2.2.1.
    • 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 interface ValidationRule
      Specified by:
      isApplicable in class AbstractValidationRule
      Parameters:
      location - the target location
      Returns:
      true, if the rule is applicable to the target, false otherwise