Package io.ocfl.api.model
Class FileDetails
- java.lang.Object
-
- io.ocfl.api.model.FileDetails
-
public class FileDetails extends Object
Encapsulates a filePath with all of its fixity information.
-
-
Constructor Summary
Constructors Constructor Description FileDetails()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FileDetailsaddDigest(DigestAlgorithm algorithm, String value)booleanequals(Object o)Map<DigestAlgorithm,String>getFixity()Map of digest algorithm to digest value.StringgetPath()The file's logical path within the objectStringgetStorageRelativePath()The file's path relative to the storage rootinthashCode()FileDetailssetFixity(Map<DigestAlgorithm,String> fixity)FileDetailssetPath(String path)FileDetailssetStorageRelativePath(String storageRelativePath)StringtoString()
-
-
-
Method Detail
-
getPath
public String getPath()
The file's logical path within the object- Returns:
- logical path
-
setPath
public FileDetails setPath(String path)
-
getStorageRelativePath
public String getStorageRelativePath()
The file's path relative to the storage root- Returns:
- storage relative path
-
setStorageRelativePath
public FileDetails setStorageRelativePath(String storageRelativePath)
-
getFixity
public Map<DigestAlgorithm,String> getFixity()
Map of digest algorithm to digest value.- Returns:
- digest map
-
setFixity
public FileDetails setFixity(Map<DigestAlgorithm,String> fixity)
-
addDigest
public FileDetails addDigest(DigestAlgorithm algorithm, String value)
-
-