Package io.ocfl.core.path.mapper
Class DirectLogicalPathMapper
- java.lang.Object
-
- io.ocfl.core.path.mapper.DirectLogicalPathMapper
-
- All Implemented Interfaces:
LogicalPathMapper
public class DirectLogicalPathMapper extends Object implements LogicalPathMapper
Directly maps logical paths to content paths without making any changes.
-
-
Constructor Summary
Constructors Constructor Description DirectLogicalPathMapper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
toContentPathPart(String logicalPath)
Maps a logical path to a content path.
-
-
-
Method Detail
-
toContentPathPart
public String toContentPathPart(String logicalPath)
Maps a logical path to a content path. This content path MUST be relative a version's content directory; not the object root.- Specified by:
toContentPathPart
in interfaceLogicalPathMapper
- Parameters:
logicalPath
- path to map- Returns:
- content path relative version content directory
-
-