Interface FileNameConstraint

All Known Implementing Classes:
BeginEndPathConstraint, NonEmptyFileNameConstraint, PathLengthConstraint, RegexPathConstraint

public interface FileNameConstraint
Validates that a filename meets a defined constraint
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    apply(String fileName, String path)
    Validates that a filename meets a defined constraint
  • Method Details

    • apply

      void apply(String fileName, String path)
      Validates that a filename meets a defined constraint
      Parameters:
      fileName - the filename to validate
      path - the path the filename is part of. This is supplied for context and is not validated
      Throws:
      PathConstraintException - when the constraint is not met