Class BackslashPathSeparatorConstraint
- java.lang.Object
-
- edu.wisc.library.ocfl.core.path.constraint.BackslashPathSeparatorConstraint
-
- All Implemented Interfaces:
PathCharConstraint
public class BackslashPathSeparatorConstraint extends Object implements PathCharConstraint
Windows only: Rejects filenames that contain backslashes
-
-
Constructor Summary
Constructors Constructor Description BackslashPathSeparatorConstraint()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapply(char c, String path)Validates that the characters in a filename meet a defined constraint
-
-
-
Method Detail
-
apply
public void apply(char c, String path)Validates that the characters in a filename meet a defined constraint- Specified by:
applyin interfacePathCharConstraint- Parameters:
c- the character to validatepath- the path the character is part of. This is supplied for context and is not validated
-
-