Package io.ocfl.api.model
Class ObjectDetails
java.lang.Object
io.ocfl.api.model.ObjectDetails
Details the current state of an object and all of its versions.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
The version details of the HEAD version of the objectThe version number of the HEAD version of the objectgetId()
getVersion
(VersionNum versionNum) Returns the VersionDetails for the specified version number or null if the version does not existMap of version number to version details for all of the versions of the object.int
hashCode()
setDigestAlgorithm
(DigestAlgorithm digestAlgorithm) setHeadVersionNum
(VersionNum headVersionNum) setObjectOcflVersion
(OcflVersion objectOcflVersion) setVersions
(Map<VersionNum, VersionDetails> versions) toString()
-
Constructor Details
-
ObjectDetails
public ObjectDetails()
-
-
Method Details
-
getHeadVersion
The version details of the HEAD version of the object- Returns:
- VersionDetails for the object's HEAD version
-
getId
- Returns:
- the object's id
-
setId
-
getHeadVersionNum
The version number of the HEAD version of the object- Returns:
- the version number of the object's HEAD version
-
setHeadVersionNum
-
getDigestAlgorithm
- Returns:
- the digest algorithm used to identify files within the OCFL object
-
setDigestAlgorithm
-
getObjectOcflVersion
- Returns:
- the OCFL version the object adheres to
-
setObjectOcflVersion
-
getVersionMap
Map of version number to version details for all of the versions of the object.- Returns:
- map of all of the object's versions
-
getVersion
Returns the VersionDetails for the specified version number or null if the version does not exist- Parameters:
versionNum
- the version number of the version to retrieve- Returns:
- version details or null
-
setVersions
-
toString
-
equals
-
hashCode
public int hashCode()
-