Class Upload


  • public class Upload
    extends Object
    Information about a transcript upload in progress.
    Author:
    Robert Fromont robert@fromont.net.nz
    • Constructor Detail

      • Upload

        public Upload()
        Default constructor.
      • Upload

        public Upload​(javax.json.JsonObject json)
        Constructor from JSON.
        Parameters:
        json - A JSON representation of the object to construct.
    • Method Detail

      • getId

        public String getId()
        Getter for id: Unique upload identifier.
        Returns:
        Unique upload identifier.
      • setId

        public Upload setId​(String newId)
        Setter for id: Unique upload identifier.
        Parameters:
        newId - Unique upload identifier.
        Returns:
        A reference to this object, so that setters can be chained.
      • getParameters

        public nzilbb.configure.ParameterSet getParameters()
        Getter for parameters: Parameters that are required to complete the upload.
        Returns:
        Parameters that are required to complete the upload.
      • setParameters

        public Upload setParameters​(nzilbb.configure.ParameterSet newParameters)
        Setter for parameters: Parameters that are required to complete the upload.
        Parameters:
        newParameters - Parameters that are required to complete the upload.
        Returns:
        A reference to this object, so that setters can be chained.
      • getTranscripts

        public Map<String,​String> getTranscripts()
        Getter for transcripts: A map of transcript IDs to thread IDs, if any transcripts are already being processed.
        Returns:
        A map of transcript IDs to thread IDs, if any transcripts are already being processed.
      • setTranscripts

        public Upload setTranscripts​(Map<String,​String> newTranscripts)
        Setter for transcripts: A map of transcript IDs to thread IDs, if any transcripts are already being processed.
        Parameters:
        newTranscripts - A map of transcript IDs to thread IDs, if any transcripts are already being processed.
        Returns:
        A reference to this object, so that setters can be chained.