Package nzilbb.labbcat.model
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
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAfterMatch()Getter forAfterMatch: The context after the match.StringgetBeforeMatch()Getter forBeforeMatch: The context before the match.StringgetCorpus()Getter forCorpus: The corpus the match comes fromDoublegetLine()Getter forLine: The start time of the utterance.DoublegetLineEnd()Getter forLineEnd: The end time of the utterance.StringgetMatchId()Getter forMatchId: The match ID, which encodes which token in which utterance by which participant of which transcript matched.StringgetParticipant()Getter forParticipant: The name of the participant who uttered the match.StringgetText()Getter forText: The match text.StringgetTranscript()Getter forTranscript: The name of the transcript document that the match is from.MatchsetAfterMatch(String newAfterMatch)Setter forAfterMatch: The context after the match.MatchsetBeforeMatch(String newBeforeMatch)Setter forBeforeMatch: The context before the match.MatchsetCorpus(String newCorpus)Setter forCorpus: The corpus the match comes fromMatchsetLine(Double newLine)Setter forLine: The start time of the utterance.MatchsetLineEnd(Double newLineEnd)Setter forLineEnd: The end time of the utterance.MatchsetMatchId(String newMatchId)Setter forMatchId: The match ID, which encodes which token in which utterance by which participant of which transcript matched.MatchsetParticipant(String newParticipant)Setter forParticipant: The name of the participant who uttered the match.MatchsetText(String newText)Setter forText: The match text.MatchsetTranscript(String newTranscript)Setter forTranscript: The name of the transcript document that the match is from.StringtoString()String represtation for logging.
-
-
-
Method Detail
-
getMatchId
public String getMatchId()
Getter forMatchId: 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 forMatchId: 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 forTranscript: 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 forTranscript: 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 forParticipant: 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 forParticipant: 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 forCorpus: The corpus the match comes from- Returns:
- The corpus the match comes from
-
setCorpus
public Match setCorpus(String newCorpus)
Setter forCorpus: 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 forLine: The start time of the utterance.- Returns:
- The start time of the utterance.
-
setLine
public Match setLine(Double newLine)
Setter forLine: 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 forLineEnd: The end time of the utterance.- Returns:
- The end time of the utterance.
-
setLineEnd
public Match setLineEnd(Double newLineEnd)
Setter forLineEnd: 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 forBeforeMatch: The context before the match.- Returns:
- The context before the match.
-
setBeforeMatch
public Match setBeforeMatch(String newBeforeMatch)
Setter forBeforeMatch: 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 forText: The match text.- Returns:
- The match text.
-
setText
public Match setText(String newText)
Setter forText: 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 forAfterMatch: The context after the match.- Returns:
- The context after the match.
-
setAfterMatch
public Match setAfterMatch(String newAfterMatch)
Setter forAfterMatch: The context after the match.- Parameters:
newAfterMatch- The context after the match.- Returns:
- A reference to this object, so that setters can be chained.
-
-