Package nzilbb.labbcat.model
Class Match
java.lang.Object
nzilbb.labbcat.model.Match
Represents a single match from search results.
- Author:
- Robert Fromont robert@fromont.net.nz
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGetter forAfterMatch
: The context after the match.Getter forBeforeMatch
: The context before the match.Getter forCorpus
: The corpus the match comes fromgetLine()
Getter forLine
: The start time of the utterance.Getter forLineEnd
: The end time of the utterance.Getter forMatchId
: The match ID, which encodes which token in which utterance by which participant of which transcript matched.Getter forParticipant
: The name of the participant who uttered the match.getText()
Getter forText
: The match text.Getter forTranscript
: The name of the transcript document that the match is from.setAfterMatch
(String newAfterMatch) Setter forAfterMatch
: The context after the match.setBeforeMatch
(String newBeforeMatch) Setter forBeforeMatch
: The context before the match.Setter forCorpus
: The corpus the match comes fromSetter forLine
: The start time of the utterance.setLineEnd
(Double newLineEnd) Setter forLineEnd
: The end time of the utterance.setMatchId
(String newMatchId) Setter forMatchId
: The match ID, which encodes which token in which utterance by which participant of which transcript matched.setParticipant
(String newParticipant) Setter forParticipant
: The name of the participant who uttered the match.Setter forText
: The match text.setTranscript
(String newTranscript) Setter forTranscript
: The name of the transcript document that the match is from.toString()
String represtation for logging.
-
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
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
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
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
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
Getter forParticipant
: The name of the participant who uttered the match.- Returns:
- The name of the participant who uttered the match.
-
setParticipant
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
Getter forCorpus
: The corpus the match comes from- Returns:
- The corpus the match comes from
-
setCorpus
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
Getter forLine
: The start time of the utterance.- Returns:
- The start time of the utterance.
-
setLine
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
Getter forLineEnd
: The end time of the utterance.- Returns:
- The end time of the utterance.
-
setLineEnd
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
Getter forBeforeMatch
: The context before the match.- Returns:
- The context before the match.
-
setBeforeMatch
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
Getter forText
: The match text.- Returns:
- The match text.
-
setText
Setter forText
: The match text.- Parameters:
newText
- The match text.- Returns:
- A reference to this object, so that setters can be chained.
-
getAfterMatch
Getter forAfterMatch
: The context after the match.- Returns:
- The context after the match.
-
setAfterMatch
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.
-
toString
String represtation for logging.
-