Class VersionDetails


  • public class VersionDetails
    extends Object
    Details about a specific version of an object
    • Constructor Detail

      • VersionDetails

        public VersionDetails()
    • Method Detail

      • getObjectVersionId

        public ObjectVersionId getObjectVersionId()
        The ObjectVersionId of the version
        Returns:
        the ObjectVersionId of the version
      • getObjectId

        public String getObjectId()
        The object's id
        Returns:
        the object's id
      • getVersionNum

        public VersionNum getVersionNum()
        The version number of this version
        Returns:
        the version number
      • getCreated

        public OffsetDateTime getCreated()
        The timestamp of when the version was created
        Returns:
        created timestamp
      • getVersionInfo

        public VersionInfo getVersionInfo()
        Description of the version
        Returns:
        VersionInfo
      • isMutable

        public boolean isMutable()
        Returns true only if the version is a mutable HEAD version that is used to stage changes.
        Returns:
        true if mutable HEAD
      • getObjectOcflVersion

        public OcflVersion getObjectOcflVersion()
        Returns:
        the OCFL version the object adheres to
      • getFiles

        public Collection<FileDetails> getFiles()
        Collection of all of the files in this version of the object
        Returns:
        all of the files in the version
      • containsFile

        public boolean containsFile​(String path)
        Returns true if the version contains a file at the specified path
        Parameters:
        path - logical path to an object file
        Returns:
        true if the version contains the file
      • getFile

        public FileDetails getFile​(String path)
        Returns the FileDetails for the file at the given path or null if it does not exist
        Parameters:
        path - logical path to the file
        Returns:
        FileDetails or null
      • getFileMap

        public Map<String,​FileDetails> getFileMap()
        Returns a map of logical paths to file details that represents the state of the object at this version.
        Returns:
        file state map
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object