Interface FileNameConstraint
-
- All Known Implementing Classes:
BeginEndPathConstraint,NonEmptyFileNameConstraint,PathLengthConstraint,RegexPathConstraint
public interface FileNameConstraintValidates that a filename meets a defined constraint
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidapply(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
-
-