Interface DatastreamVersion

    • Method Detail

      • getMimeType

        String getMimeType()
        Gets the mime type for this version.
        Returns:
        mime-type
      • getLabel

        String getLabel()
        Gets the label for this version.
        Returns:
        label
      • getCreated

        String getCreated()
        Gets the date when this version was created.
        Returns:
        creation date
      • getAltIds

        String getAltIds()
        Gets the altIDs value for this version.
        Returns:
        alternate IDs
      • getFormatUri

        String getFormatUri()
        Gets the format URI for this version.
        Returns:
        format URI
      • getSize

        long getSize()
        Gets the size (in bytes) for the content of this datastream version.
        Returns:
        size
      • getExternalOrRedirectURL

        String getExternalOrRedirectURL()
        Returns the URL to which an External (X) or Redirect (R) datastream points. Throws IllegalStateException if this isn't an external or redirect datastream.
        Returns:
        URL of datastream
      • isFirstVersionIn

        boolean isFirstVersionIn​(ObjectReference obj)
        Determines if this is the first version of a datastream.
        Parameters:
        obj - to be tested whether is first version
        Returns:
        True if this is the first version, false otherwise.
      • isLastVersionIn

        boolean isLastVersionIn​(ObjectReference obj)
        Determines if this is the last version of a datastream.
        Parameters:
        obj - to be tested whether is last version
        Returns:
        True if this is the last version, false otherwise.