Package io.ocfl.core.path.constraint
Interface PathConstraint
-
- All Known Implementing Classes:
BeginEndPathConstraint
,PathLengthConstraint
,RegexPathConstraint
public interface PathConstraint
Validates that a path meets a defined constraint
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
apply(String path)
Validates that a path meets a defined constraint
-
-
-
Method Detail
-
apply
void apply(String path)
Validates that a path meets a defined constraint- Parameters:
path
- the path to validate- Throws:
PathConstraintException
- when the constraint is not met
-
-