Class SubdirectoryNamingRule

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

public class SubdirectoryNamingRule
extends AbstractValidationRule
Implements a rule that checks for children of a directory using illegal names. These are directories that can only occur in the root directory of a bundle.
  • Constructor Details

    • SubdirectoryNamingRule

      public SubdirectoryNamingRule()
  • Method Details

    • 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
    • checkIllegalDirectoryNames

      @ValidationTest public void checkIllegalDirectoryNames()
      Checks for illegal subdirectory names.