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 Details

    • DirectLogicalPathMapper

      public DirectLogicalPathMapper()
  • Method Details

    • 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 interface LogicalPathMapper
      Parameters:
      logicalPath - path to map
      Returns:
      content path relative version content directory