Package io.ocfl.core.path.constraint
Class LogicalPathConstraints
java.lang.Object
io.ocfl.core.path.constraint.LogicalPathConstraints
Describes the constraints that are applied to logical paths.
-
Method Summary
Modifier and TypeMethodDescriptionstatic PathConstraintProcessor
Logical paths may not: Begin or end with a '/' Contain empty filenames Contain the filenames '.' or '..'static PathConstraintProcessor
Logical paths may not: Begin or end with a '/' Contain empty filenames Contain the filenames '.' or '..' Use backslashes as path separators
-
Method Details
-
constraints
Logical paths may not:- Begin or end with a '/'
- Contain empty filenames
- Contain the filenames '.' or '..'
- Returns:
- logical path constraints
-
constraintsWithBackslashCheck
Logical paths may not:- Begin or end with a '/'
- Contain empty filenames
- Contain the filenames '.' or '..'
- Use backslashes as path separators
This backslash constraint is not a spec constraint, but is in some cases necessary to enforce when running on Windows.
- Returns:
- logical path constraints
-