Package ca.phon.session.spi
Interface RecordSPI
- All Known Implementing Classes:
LazyRecord
,LazyRecord
,RecordImpl
public interface RecordSPI
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addComment
(Comment comment) Add commentgetComment
(int idx) get comment at given indexReturn a list of user-defined tiers that are present in this record.Get the IPA Actual tierGet the IPA Target tiergetNotes()
Get the value of the notes tierint
number of commentsGet the orthography tier.Get the phone alignment between IPA Target and IPA ActualGet media segmentThe participant (speaker).Tier<?>
Get the given tier with unspecified typing.<T> Tier<T>
Get the given tier with the expected type.getTiersOfType
(Class<T> type) Return a list of all present tiers which have the given type.Class<?>
getTierType
(String name) Get the register type of the given tier.getUuid()
Record idboolean
boolean
Should we exclude this record from searches?void
Add/set the given tier to the list of user defined tiers.void
removeComment
(int idx) void
removeComment
(Comment comment) Remove commentvoid
removeTier
(String name) Remove the dependent tier with the given name.void
setExcludeFromSearches
(boolean excluded) Set exclusion from searches.void
setIPAActual
(Tier<IPATranscript> ipa) Set the IPA Actual tiervoid
setIPATarget
(Tier<IPATranscript> ipa) Set the value of the IPA Actual tiervoid
setNotes
(Tier<TierString> notes) Set the value of the notes tiervoid
setOrthography
(Tier<Orthography> ortho) Set the value of the orthography tier.void
setPhoneAlignment
(Tier<PhoneMap> phoneAlignment) Set the phone alignmentvoid
setSegment
(Tier<MediaSegment> media) Set media segmentvoid
setSpeaker
(Participant participant) Set the participantvoid
Set id for the record
-
Method Details
-
getUuid
UUID getUuid()Record id- Parameters:
unique
- id for this record
-
setUuid
Set id for the record -
getSpeaker
Participant getSpeaker()The participant (speaker). As of Phon 2.2, this method will returnParticipant.UNKNOWN
instead ofnull
- Returns:
- IParticipant
-
setSpeaker
Set the participant -
getSegment
Tier<MediaSegment> getSegment()Get media segment- Returns:
- IMedia
-
setSegment
Set media segment- Parameters:
media
-
-
isExcludeFromSearches
boolean isExcludeFromSearches()Should we exclude this record from searches? -
setExcludeFromSearches
void setExcludeFromSearches(boolean excluded) Set exclusion from searches.- Parameters:
excluded
-
-
getOrthography
Tier<Orthography> getOrthography()Get the orthography tier.- Returns:
- orthography tier
-
setOrthography
Set the value of the orthography tier.- Parameters:
orthography
-
-
getIPATarget
Tier<IPATranscript> getIPATarget()Get the IPA Target tier- Returns:
- the ipa target tier
-
setIPATarget
Set the value of the IPA Actual tier- Parameters:
ipa
-
-
getIPAActual
Tier<IPATranscript> getIPAActual()Get the IPA Actual tier- Returns:
- the ipa actual tier
-
setIPAActual
Set the IPA Actual tier- Parameters:
ipa
-
-
getPhoneAlignment
Get the phone alignment between IPA Target and IPA Actual- Returns:
- phone alignment
-
setPhoneAlignment
Set the phone alignment- Parameters:
phoneAlignment
-
-
getNotes
Tier<TierString> getNotes()Get the value of the notes tier- Returns:
- the notes tier
-
setNotes
Set the value of the notes tier- Parameters:
notes
-
-
getTierType
Get the register type of the given tier.- Parameters:
tier
- name- Returns:
- the tier type
-
getTier
Get the given tier with the expected type.- Parameters:
name
-type
-- Returns:
- the specified tier or
null
if a tier with the given name and type are not found.
-
getTier
Get the given tier with unspecified typing.- Returns:
- name
-
getExtraTierNames
Return a list of user-defined tiers that are present in this record.- Returns:
- the list of tier user-defined tier names present in this record
-
getTiersOfType
Return a list of all present tiers which have the given type.- Parameters:
type
-- Returns:
- list of tiers
-
hasTier
- Parameters:
tier
- name- Returns:
true
if this record contains the specified tier
-
putTier
Add/set the given tier to the list of user defined tiers.- Parameters:
tier
-
-
removeTier
Remove the dependent tier with the given name.- Parameters:
name
-
-
getNumberOfComments
int getNumberOfComments()number of comments- Returns:
- number of comments
-
getComment
get comment at given index- Parameters:
idx
-- Returns:
- comment
- Throws:
ArrayIndexOutOfBoundsException
-
addComment
Add comment- Parameters:
comment
-
-
removeComment
Remove comment- Parameters:
comment
-
-
removeComment
void removeComment(int idx)
-