Class PathConstraintProcessor.Builder
- java.lang.Object
-
- edu.wisc.library.ocfl.core.path.constraint.PathConstraintProcessor.Builder
-
- Enclosing class:
- PathConstraintProcessor
public static class PathConstraintProcessor.Builder extends Object
Use this to construct a new PathConstraintProcessor
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PathConstraintProcessorbuild()PathConstraintProcessor.BuildercharConstraint(PathCharConstraint charConstraint)Adds a new character constraintPathConstraintProcessor.BuildercharConstraints(List<PathCharConstraint> charConstraints)Replaces the list of character constraintsPathConstraintProcessor.BuilderfileNameConstraint(FileNameConstraint fileNameConstraint)Adds a new filename constraintPathConstraintProcessor.BuilderfileNameConstraints(List<FileNameConstraint> fileNameConstraints)Replaces the list of filename constraintsPathConstraintProcessor.BuilderpathConstraint(PathConstraint pathConstraint)Adds a new path constraintPathConstraintProcessor.BuilderpathConstraints(List<PathConstraint> pathConstraints)Replaces the list of path constraints
-
-
-
Method Detail
-
pathConstraint
public PathConstraintProcessor.Builder pathConstraint(PathConstraint pathConstraint)
Adds a new path constraint- Parameters:
pathConstraint- constraint to add- Returns:
- builder
-
pathConstraints
public PathConstraintProcessor.Builder pathConstraints(List<PathConstraint> pathConstraints)
Replaces the list of path constraints- Parameters:
pathConstraints- list of path constraints to use- Returns:
- builder
-
fileNameConstraint
public PathConstraintProcessor.Builder fileNameConstraint(FileNameConstraint fileNameConstraint)
Adds a new filename constraint- Parameters:
fileNameConstraint- constraint to add- Returns:
- builder
-
fileNameConstraints
public PathConstraintProcessor.Builder fileNameConstraints(List<FileNameConstraint> fileNameConstraints)
Replaces the list of filename constraints- Parameters:
fileNameConstraints- list of filename constraints to use- Returns:
- builder
-
charConstraint
public PathConstraintProcessor.Builder charConstraint(PathCharConstraint charConstraint)
Adds a new character constraint- Parameters:
charConstraint- constraint to add- Returns:
- builder
-
charConstraints
public PathConstraintProcessor.Builder charConstraints(List<PathCharConstraint> charConstraints)
Replaces the list of character constraints- Parameters:
charConstraints- list of character constraints to use- Returns:
- builder
-
build
public PathConstraintProcessor build()
- Returns:
- new PathConstraintProcessor
-
-