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 FileDetails
addDigest(DigestAlgorithm algorithm, String value)
boolean
equals(Object o)
Map<DigestAlgorithm,String>
getFixity()
Map of digest algorithm to digest value.String
getPath()
The file's logical path within the objectString
getStorageRelativePath()
The file's path relative to the storage rootint
hashCode()
FileDetails
setFixity(Map<DigestAlgorithm,String> fixity)
FileDetails
setPath(String path)
FileDetails
setStorageRelativePath(String storageRelativePath)
String
toString()
-
-
-
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)
-
-