Package io.ocfl.core.path.constraint
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 Summary
Constructors Constructor Description NonEmptyFileNameConstraint()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
apply(String fileName, String path)
Validates that a filename meets a defined constraint
-
-
-
Method Detail
-
apply
public void apply(String fileName, String path)
Validates that a filename meets a defined constraint- Specified by:
apply
in interfaceFileNameConstraint
- Parameters:
fileName
- the filename to validatepath
- the path the filename is part of. This is supplied for context and is not validated
-
-