Package io.ocfl.core
Class ObjectPaths
java.lang.Object
io.ocfl.core.ObjectPaths
Centralizes common OCFL path locations
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Provides methods for navigating a version's content directorystatic interface
static class
Provides methods for navigating an OCFL object rootstatic class
Provides methods for navigating an OCFL object version directory -
Method Summary
Modifier and TypeMethodDescriptionstatic String
extensionsPath
(String objectRoot) Path to the extensions directory within an objectstatic Path
extensionsPath
(Path objectRoot) Path to the extensions directory within an objectstatic Path
findInventorySidecarPath
(Path directory) Path to an inventory sidecar file within the given directorystatic Path
findMutableHeadRootInventorySidecarPath
(Path directory) Path to the saved sidecar file within the mutable head extensionstatic String
inventoryPath
(String directory) Path to an inventory file within the given directorystatic Path
inventoryPath
(Path directory) Path to an inventory file within the given directorystatic String
inventorySidecarPath
(String directory, Inventory inventory) Path to an inventory sidecar file within the given directorystatic Path
inventorySidecarPath
(Path directory, Inventory inventory) Path to an inventory sidecar file within the given directorystatic String
Path to the logs directory within an objectstatic Path
Path to the logs directory within an objectstatic String
mutableHeadExtensionRoot
(String objectRootPath) Path to the mutable HEAD extension root directorystatic Path
mutableHeadExtensionRoot
(Path objectRootPath) Path to the mutable HEAD extension root directorystatic String
mutableHeadInventoryPath
(String objectRootPath) Path to an inventory file within the mutable HEADstatic Path
mutableHeadInventoryPath
(Path objectRootPath) Path to an inventory file within the mutable HEADstatic String
mutableHeadInventorySidecarPath
(String objectRootPath, Inventory inventory) Path to an inventory sidecar file within the given directorystatic String
mutableHeadRevisionsPath
(String objectRootPath) Path the revisions directory under the mutable HEAD extension directorystatic Path
mutableHeadRevisionsPath
(Path objectRootPath) Path the revisions directory under the mutable HEAD extension directorystatic String
mutableHeadVersionPath
(String objectRootPath) Path to the mutable HEAD extension version directorystatic Path
mutableHeadVersionPath
(Path objectRootPath) Path to the mutable HEAD extension version directorystatic ObjectPaths.ObjectRoot
objectRoot
(Inventory inventory) Creates a new ObjectRoot object
-
Method Details
-
inventoryPath
Path to an inventory file within the given directory- Parameters:
directory
- parent directory of an inventory file- Returns:
- path to inventory file
-
inventoryPath
Path to an inventory file within the given directory- Parameters:
directory
- parent directory of an inventory file- Returns:
- path to inventory file
-
inventorySidecarPath
Path to an inventory sidecar file within the given directory- Parameters:
directory
- parent directory of an inventory fileinventory
- deserialized inventory- Returns:
- path to inventory sidecar
-
inventorySidecarPath
Path to an inventory sidecar file within the given directory- Parameters:
directory
- parent directory of an inventory fileinventory
- deserialized inventory- Returns:
- path to inventory sidecar
-
findInventorySidecarPath
Path to an inventory sidecar file within the given directory- Parameters:
directory
- parent directory of an inventory file- Returns:
- path to inventory sidecar
-
findMutableHeadRootInventorySidecarPath
Path to the saved sidecar file within the mutable head extension- Parameters:
directory
- parent directory of an inventory file- Returns:
- path to the saved root inventory sidecar
-
logsPath
Path to the logs directory within an object- Parameters:
objectRoot
- object root directory- Returns:
- path to logs
-
logsPath
Path to the logs directory within an object- Parameters:
objectRoot
- object root directory- Returns:
- path to logs
-
extensionsPath
Path to the extensions directory within an object- Parameters:
objectRoot
- object root directory- Returns:
- path to extensions
-
extensionsPath
Path to the extensions directory within an object- Parameters:
objectRoot
- object root directory- Returns:
- path to extensions
-
mutableHeadInventoryPath
Path to an inventory file within the mutable HEAD- Parameters:
objectRootPath
- path to the root of an ocfl object- Returns:
- path to the mutable HEAD inventory file
-
mutableHeadInventoryPath
Path to an inventory file within the mutable HEAD- Parameters:
objectRootPath
- path to the root of an ocfl object- Returns:
- path to the mutable HEAD inventory file
-
mutableHeadInventorySidecarPath
Path to an inventory sidecar file within the given directory- Parameters:
objectRootPath
- path to the root of an ocfl objectinventory
- deserialized inventory- Returns:
- path to inventory sidecar
-
mutableHeadVersionPath
Path to the mutable HEAD extension version directory- Parameters:
objectRootPath
- path to the root of an ocfl object- Returns:
- path to the mutable HEAD extension version directory
-
mutableHeadVersionPath
Path to the mutable HEAD extension version directory- Parameters:
objectRootPath
- path to the root of an ocfl object- Returns:
- path to the mutable HEAD extension version directory
-
mutableHeadExtensionRoot
Path to the mutable HEAD extension root directory- Parameters:
objectRootPath
- path to the root of an ocfl object- Returns:
- path to the mutable HEAD extension root directory
-
mutableHeadExtensionRoot
Path to the mutable HEAD extension root directory- Parameters:
objectRootPath
- path to the root of an ocfl object- Returns:
- path to the mutable HEAD extension root directory
-
mutableHeadRevisionsPath
Path the revisions directory under the mutable HEAD extension directory- Parameters:
objectRootPath
- path to the root of an ocfl object- Returns:
- Path the revisions directory under the mutable HEAD extension directory
-
mutableHeadRevisionsPath
Path the revisions directory under the mutable HEAD extension directory- Parameters:
objectRootPath
- path to the root of an ocfl object- Returns:
- Path the revisions directory under the mutable HEAD extension directory
-
objectRoot
Creates a new ObjectRoot object- Parameters:
inventory
- deserialized inventory- Returns:
- ObjectRoot
-