Package io.ocfl.core.path.constraint
Interface FileNameConstraint
-
- All Known Implementing Classes:
BeginEndPathConstraint
,NonEmptyFileNameConstraint
,PathLengthConstraint
,RegexPathConstraint
public interface FileNameConstraint
Validates that a filename meets a defined constraint
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
apply(String fileName, String path)
Validates that a filename meets a defined constraint
-
-
-
Method Detail
-
apply
void apply(String fileName, String path)
Validates that a filename meets a defined constraint- Parameters:
fileName
- the filename to validatepath
- the path the filename is part of. This is supplied for context and is not validated- Throws:
PathConstraintException
- when the constraint is not met
-
-