Package io.ocfl.api.model
Class FileChange
- java.lang.Object
-
- io.ocfl.api.model.FileChange
-
public class FileChange extends Object
Details about a change to a file.
-
-
Constructor Summary
Constructors Constructor Description FileChange()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FileChangeTypegetChangeType()The type of change that occurred, UPDATE/REMOVE.Map<DigestAlgorithm,String>getFixity()Map of digest algorithm to digest value.ObjectVersionIdgetObjectVersionId()The ObjectVersionId for the version the changed occurred inStringgetPath()The file's logical pathStringgetStorageRelativePath()The file's path relative to the storage root.OffsetDateTimegetTimestamp()The timestamp when the file changedVersionInfogetVersionInfo()Description of the versionVersionNumgetVersionNum()The object's version number for the version the changed occurred inFileChangesetChangeType(FileChangeType changeType)FileChangesetFixity(Map<DigestAlgorithm,String> fixity)FileChangesetObjectVersionId(ObjectVersionId objectVersionId)FileChangesetPath(String path)FileChangesetStorageRelativePath(String storageRelativePath)FileChangesetTimestamp(OffsetDateTime timestamp)FileChangesetVersionInfo(VersionInfo versionInfo)StringtoString()
-
-
-
Method Detail
-
getChangeType
public FileChangeType getChangeType()
The type of change that occurred, UPDATE/REMOVE.- Returns:
- type of change
-
setChangeType
public FileChange setChangeType(FileChangeType changeType)
-
getObjectVersionId
public ObjectVersionId getObjectVersionId()
The ObjectVersionId for the version the changed occurred in- Returns:
- ObjectVersionId
-
setObjectVersionId
public FileChange setObjectVersionId(ObjectVersionId objectVersionId)
-
getVersionNum
public VersionNum getVersionNum()
The object's version number for the version the changed occurred in- Returns:
- version number
-
getPath
public String getPath()
The file's logical path- Returns:
- logical path
-
setPath
public FileChange setPath(String path)
-
getStorageRelativePath
public String getStorageRelativePath()
The file's path relative to the storage root. Null onFileChangeType.REMOVE.- Returns:
- storage relative path or null
-
setStorageRelativePath
public FileChange setStorageRelativePath(String storageRelativePath)
-
getFixity
public Map<DigestAlgorithm,String> getFixity()
Map of digest algorithm to digest value. Empty onFileChangeType.REMOVE.- Returns:
- digest map
-
setFixity
public FileChange setFixity(Map<DigestAlgorithm,String> fixity)
-
getTimestamp
public OffsetDateTime getTimestamp()
The timestamp when the file changed- Returns:
- timestamp
-
setTimestamp
public FileChange setTimestamp(OffsetDateTime timestamp)
-
getVersionInfo
public VersionInfo getVersionInfo()
Description of the version- Returns:
- VersionInfo
-
setVersionInfo
public FileChange setVersionInfo(VersionInfo versionInfo)
-
-