Package nzilbb.labbcat.model
Class Upload
- java.lang.Object
-
- nzilbb.labbcat.model.Upload
-
public class Upload extends Object
Information about a transcript or fragment upload in progress.- Author:
- Robert Fromont robert@fromont.net.nz
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DoublegetEnd()Getter forend: The end offset of the fragment (if the upload is for a fragment).StringgetId()Getter forid: Unique upload identifier.nzilbb.configure.ParameterSetgetParameters()Getter forparameters: Parameters that are required to complete the upload.DoublegetStart()Getter forstart: The start offset of the fragment (if the upload is for a fragment).StringgetTranscript()Getter fortranscript: The name of the full transcript (if the upload is for a fragment).Map<String,String>getTranscripts()Getter fortranscripts: A map of transcript IDs to thread IDs, if any transcripts are already being processed.StringgetUrl()Getter forurl: The URL of the fragment in the context of the whole transcript (if the upload is for a fragment).UploadsetEnd(Double newEnd)Setter forend: The end offset of the fragment (if the upload is for a fragment).UploadsetId(String newId)Setter forid: Unique upload identifier.UploadsetParameters(nzilbb.configure.ParameterSet newParameters)Setter forparameters: Parameters that are required to complete the upload.UploadsetStart(Double newStart)Setter forstart: The start offset of the fragment (if the upload is for a fragment).UploadsetTranscript(String newTranscript)Setter fortranscript: The name of the full transcript (if the upload is for a fragment).UploadsetTranscripts(Map<String,String> newTranscripts)Setter fortranscripts: A map of transcript IDs to thread IDs, if any transcripts are already being processed.UploadsetUrl(String newUrl)Setter forurl: The URL of the fragment in the context of the whole transcript (if the upload is for a fragment).
-
-
-
Method Detail
-
getId
public String getId()
Getter forid: Unique upload identifier.- Returns:
- Unique upload identifier.
-
setId
public Upload setId(String newId)
Setter forid: 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 forparameters: 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 forparameters: 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 fortranscripts: 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 fortranscripts: 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.
-
getTranscript
public String getTranscript()
Getter fortranscript: The name of the full transcript (if the upload is for a fragment).- Returns:
- The name of the full transcript (if the upload is for a fragment).
-
setTranscript
public Upload setTranscript(String newTranscript)
Setter fortranscript: The name of the full transcript (if the upload is for a fragment).- Parameters:
newTranscript- The name of the full transcript (if the upload is for a fragment).
-
getStart
public Double getStart()
Getter forstart: The start offset of the fragment (if the upload is for a fragment).- Returns:
- The start offset of the fragment (if the upload is for a fragment).
-
setStart
public Upload setStart(Double newStart)
Setter forstart: The start offset of the fragment (if the upload is for a fragment).- Parameters:
newStart- The start offset of the fragment (if the upload is for a fragment).
-
getEnd
public Double getEnd()
Getter forend: The end offset of the fragment (if the upload is for a fragment).- Returns:
- The end offset of the fragment (if the upload is for a fragment).
-
setEnd
public Upload setEnd(Double newEnd)
Setter forend: The end offset of the fragment (if the upload is for a fragment).- Parameters:
newEnd- The end offset of the fragment (if the upload is for a fragment).
-
getUrl
public String getUrl()
Getter forurl: The URL of the fragment in the context of the whole transcript (if the upload is for a fragment).- Returns:
- The URL of the fragment in the context of the whole transcript (if the upload is for a fragment).
-
-