Class FileChange

java.lang.Object
io.ocfl.api.model.FileChange

public class FileChange extends Object
Details about a change to a file.
  • Constructor Details

    • FileChange

      public FileChange()
  • Method Details

    • 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 on FileChangeType.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 on FileChangeType.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)
    • toString

      public String toString()
      Overrides:
      toString in class Object