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
-
Method Details
-
apply
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
-