Interface FileNameConstraint

    • Method Detail

      • 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