Class Match

java.lang.Object
nzilbb.labbcat.model.Match

public class Match extends Object
Represents a single match from search results.
Author:
Robert Fromont robert@fromont.net.nz
  • Constructor Details

    • Match

      public Match()
      Default constructor.
    • Match

      public Match(javax.json.JsonObject json)
      Constructor from JSON.
      Parameters:
      json - A JSON representation of the match.
  • Method Details

    • getMatchId

      public String getMatchId()
      Getter for MatchId: The match ID, which encodes which token in which utterance by which participant of which transcript matched.
      Returns:
      The match ID, which encodes which token in which utterance by which participant of which transcript matched.
    • setMatchId

      public Match setMatchId(String newMatchId)
      Setter for MatchId: The match ID, which encodes which token in which utterance by which participant of which transcript matched.
      Parameters:
      newMatchId - The match ID, which encodes which token in which utterance by which participant of which transcript matched.
      Returns:
      A reference to this object, so that setters can be chained.
    • getTranscript

      public String getTranscript()
      Getter for Transcript: The name of the transcript document that the match is from.
      Returns:
      The name of the transcript document that the match is from.
    • setTranscript

      public Match setTranscript(String newTranscript)
      Setter for Transcript: The name of the transcript document that the match is from.
      Parameters:
      newTranscript - The name of the transcript document that the match is from.
      Returns:
      A reference to this object, so that setters can be chained.
    • getParticipant

      public String getParticipant()
      Getter for Participant: The name of the participant who uttered the match.
      Returns:
      The name of the participant who uttered the match.
    • setParticipant

      public Match setParticipant(String newParticipant)
      Setter for Participant: The name of the participant who uttered the match.
      Parameters:
      newParticipant - The name of the participant who uttered the match.
      Returns:
      A reference to this object, so that setters can be chained.
    • getCorpus

      public String getCorpus()
      Getter for Corpus: The corpus the match comes from
      Returns:
      The corpus the match comes from
    • setCorpus

      public Match setCorpus(String newCorpus)
      Setter for Corpus: The corpus the match comes from
      Parameters:
      newCorpus - The corpus the match comes from
      Returns:
      A reference to this object, so that setters can be chained.
    • getLine

      public Double getLine()
      Getter for Line: The start time of the utterance.
      Returns:
      The start time of the utterance.
    • setLine

      public Match setLine(Double newLine)
      Setter for Line: The start time of the utterance.
      Parameters:
      newLine - The start time of the utterance.
      Returns:
      A reference to this object, so that setters can be chained.
    • getLineEnd

      public Double getLineEnd()
      Getter for LineEnd: The end time of the utterance.
      Returns:
      The end time of the utterance.
    • setLineEnd

      public Match setLineEnd(Double newLineEnd)
      Setter for LineEnd: The end time of the utterance.
      Parameters:
      newLineEnd - The end time of the utterance.
      Returns:
      A reference to this object, so that setters can be chained.
    • getBeforeMatch

      public String getBeforeMatch()
      Getter for BeforeMatch: The context before the match.
      Returns:
      The context before the match.
    • setBeforeMatch

      public Match setBeforeMatch(String newBeforeMatch)
      Setter for BeforeMatch: The context before the match.
      Parameters:
      newBeforeMatch - The context before the match.
      Returns:
      A reference to this object, so that setters can be chained.
    • getText

      public String getText()
      Getter for Text: The match text.
      Returns:
      The match text.
    • setText

      public Match setText(String newText)
      Setter for Text: The match text.
      Parameters:
      newText - The match text.
      Returns:
      A reference to this object, so that setters can be chained.
    • getAfterMatch

      public String getAfterMatch()
      Getter for AfterMatch: The context after the match.
      Returns:
      The context after the match.
    • setAfterMatch

      public Match setAfterMatch(String newAfterMatch)
      Setter for AfterMatch: The context after the match.
      Parameters:
      newAfterMatch - The context after the match.
      Returns:
      A reference to this object, so that setters can be chained.
    • toString

      public String toString()
      String represtation for logging.
      Overrides:
      toString in class Object
      Returns:
      A string representation of the object.