Class NonEmptyFileNameConstraint

java.lang.Object
io.ocfl.core.path.constraint.NonEmptyFileNameConstraint
All Implemented Interfaces:
FileNameConstraint

public class NonEmptyFileNameConstraint extends Object implements FileNameConstraint
Validates that there are no empty filenames
  • Constructor Details

    • NonEmptyFileNameConstraint

      public NonEmptyFileNameConstraint()
  • Method Details

    • apply

      public void apply(String fileName, String path)
      Validates that a filename meets a defined constraint
      Specified by:
      apply in interface FileNameConstraint
      Parameters:
      fileName - the filename to validate
      path - the path the filename is part of. This is supplied for context and is not validated