Class NonEmptyFileNameConstraint
- java.lang.Object
-
- edu.wisc.library.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 voidapply(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:
applyin interfaceFileNameConstraint- Parameters:
fileName- the filename to validatepath- the path the filename is part of. This is supplied for context and is not validated
-
-