Package io.ocfl.api.model
Class FileDetails
java.lang.Object
io.ocfl.api.model.FileDetails
Encapsulates a filePath with all of its fixity information.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddDigest
(DigestAlgorithm algorithm, String value) boolean
Map of digest algorithm to digest value.getPath()
The file's logical path within the objectThe file's path relative to the storage rootint
hashCode()
setFixity
(Map<DigestAlgorithm, String> fixity) setStorageRelativePath
(String storageRelativePath) toString()
-
Constructor Details
-
FileDetails
public FileDetails()
-
-
Method Details
-
getPath
The file's logical path within the object- Returns:
- logical path
-
setPath
-
getStorageRelativePath
The file's path relative to the storage root- Returns:
- storage relative path
-
setStorageRelativePath
-
getFixity
Map of digest algorithm to digest value.- Returns:
- digest map
-
setFixity
-
addDigest
-
toString
-
equals
-
hashCode
public int hashCode()
-