Package io.ocfl.core.path.constraint
Class NonEmptyFileNameConstraint
java.lang.Object
io.ocfl.core.path.constraint.NonEmptyFileNameConstraint
- All Implemented Interfaces:
FileNameConstraint
Validates that there are no empty filenames
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
NonEmptyFileNameConstraint
public NonEmptyFileNameConstraint()
-
-
Method Details
-
apply
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
-