Package io.ocfl.api.model
Class FileChange
java.lang.Object
io.ocfl.api.model.FileChange
Details about a change to a file.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe type of change that occurred, UPDATE/REMOVE.Map of digest algorithm to digest value.The ObjectVersionId for the version the changed occurred ingetPath()
The file's logical pathThe file's path relative to the storage root.The timestamp when the file changedDescription of the versionThe object's version number for the version the changed occurred insetChangeType
(FileChangeType changeType) setFixity
(Map<DigestAlgorithm, String> fixity) setObjectVersionId
(ObjectVersionId objectVersionId) setStorageRelativePath
(String storageRelativePath) setTimestamp
(OffsetDateTime timestamp) setVersionInfo
(VersionInfo versionInfo) toString()
-
Constructor Details
-
FileChange
public FileChange()
-
-
Method Details
-
getChangeType
The type of change that occurred, UPDATE/REMOVE.- Returns:
- type of change
-
setChangeType
-
getObjectVersionId
The ObjectVersionId for the version the changed occurred in- Returns:
- ObjectVersionId
-
setObjectVersionId
-
getVersionNum
The object's version number for the version the changed occurred in- Returns:
- version number
-
getPath
The file's logical path- Returns:
- logical path
-
setPath
-
getStorageRelativePath
The file's path relative to the storage root. Null onFileChangeType.REMOVE
.- Returns:
- storage relative path or null
-
setStorageRelativePath
-
getFixity
Map of digest algorithm to digest value. Empty onFileChangeType.REMOVE
.- Returns:
- digest map
-
setFixity
-
getTimestamp
The timestamp when the file changed- Returns:
- timestamp
-
setTimestamp
-
getVersionInfo
Description of the version- Returns:
- VersionInfo
-
setVersionInfo
-
toString
-