Class Upload

java.lang.Object
nzilbb.labbcat.model.Upload

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

    Constructors
    Constructor
    Description
    Default constructor.
    Upload(javax.json.JsonObject json)
    Constructor from JSON.
  • Method Summary

    Modifier and Type
    Method
    Description
    Getter for id: Unique upload identifier.
    nzilbb.configure.ParameterSet
    Getter for parameters: Parameters that are required to complete the upload.
    Getter for transcripts: A map of transcript IDs to thread IDs, if any transcripts are already being processed.
    setId(String newId)
    Setter for id: Unique upload identifier.
    setParameters(nzilbb.configure.ParameterSet newParameters)
    Setter for parameters: Parameters that are required to complete the upload.
    setTranscripts(Map<String,String> newTranscripts)
    Setter for transcripts: A map of transcript IDs to thread IDs, if any transcripts are already being processed.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • 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 Details

    • 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.