Package ca.phon.session.impl
Class RecordImpl
java.lang.Object
ca.phon.session.impl.RecordImpl
- All Implemented Interfaces:
RecordSPI
Basic record implementation
-
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
Description copied from interface:RecordSPI
Record id -
setUuid
Description copied from interface:RecordSPI
Set id for the record -
getSpeaker
Description copied from interface:RecordSPI
The participant (speaker). As of Phon 2.2, this method will returnParticipant.UNKNOWN
instead ofnull
- Specified by:
getSpeaker
in interfaceRecordSPI
- Returns:
- IParticipant
-
setSpeaker
Description copied from interface:RecordSPI
Set the participant- Specified by:
setSpeaker
in interfaceRecordSPI
-
getSegment
Description copied from interface:RecordSPI
Get media segment- Specified by:
getSegment
in interfaceRecordSPI
- Returns:
- IMedia
-
setSegment
Description copied from interface:RecordSPI
Set media segment- Specified by:
setSegment
in interfaceRecordSPI
-
isExcludeFromSearches
public boolean isExcludeFromSearches()Description copied from interface:RecordSPI
Should we exclude this record from searches?- Specified by:
isExcludeFromSearches
in interfaceRecordSPI
-
setExcludeFromSearches
public void setExcludeFromSearches(boolean excluded) Description copied from interface:RecordSPI
Set exclusion from searches.- Specified by:
setExcludeFromSearches
in interfaceRecordSPI
-
getOrthography
Description copied from interface:RecordSPI
Get the orthography tier.- Specified by:
getOrthography
in interfaceRecordSPI
- Returns:
- orthography tier
-
setOrthography
Description copied from interface:RecordSPI
Set the value of the orthography tier.- Specified by:
setOrthography
in interfaceRecordSPI
-
getIPATarget
Description copied from interface:RecordSPI
Get the IPA Target tier- Specified by:
getIPATarget
in interfaceRecordSPI
- Returns:
- the ipa target tier
-
setIPATarget
Description copied from interface:RecordSPI
Set the value of the IPA Actual tier- Specified by:
setIPATarget
in interfaceRecordSPI
-
getIPAActual
Description copied from interface:RecordSPI
Get the IPA Actual tier- Specified by:
getIPAActual
in interfaceRecordSPI
- Returns:
- the ipa actual tier
-
setIPAActual
Description copied from interface:RecordSPI
Set the IPA Actual tier- Specified by:
setIPAActual
in interfaceRecordSPI
-
getPhoneAlignment
Description copied from interface:RecordSPI
Get the phone alignment between IPA Target and IPA Actual- Specified by:
getPhoneAlignment
in interfaceRecordSPI
- Returns:
- phone alignment
-
setPhoneAlignment
Description copied from interface:RecordSPI
Set the phone alignment- Specified by:
setPhoneAlignment
in interfaceRecordSPI
-
getNotes
Description copied from interface:RecordSPI
Get the value of the notes tier -
setNotes
Description copied from interface:RecordSPI
Set the value of the notes tier -
getTierType
Description copied from interface:RecordSPI
Get the register type of the given tier.- Specified by:
getTierType
in interfaceRecordSPI
- Returns:
- the tier type
-
hasTier
-
getTier
Description copied from interface:RecordSPI
Get the given tier with the expected type. -
getTier
Description copied from interface:RecordSPI
Get the given tier with unspecified typing. -
getExtraTierNames
Description copied from interface:RecordSPI
Return a list of user-defined tiers that are present in this record.- Specified by:
getExtraTierNames
in interfaceRecordSPI
- Returns:
- the list of tier user-defined tier names present in this record
-
removeTier
Description copied from interface:RecordSPI
Remove the dependent tier with the given name.- Specified by:
removeTier
in interfaceRecordSPI
-
getNumberOfComments
public int getNumberOfComments()Description copied from interface:RecordSPI
number of comments- Specified by:
getNumberOfComments
in interfaceRecordSPI
- Returns:
- number of comments
-
getComment
Description copied from interface:RecordSPI
get comment at given index- Specified by:
getComment
in interfaceRecordSPI
- Returns:
- comment
-
addComment
Description copied from interface:RecordSPI
Add comment- Specified by:
addComment
in interfaceRecordSPI
-
removeComment
Description copied from interface:RecordSPI
Remove comment- Specified by:
removeComment
in interfaceRecordSPI
-
removeComment
public void removeComment(int idx) - Specified by:
removeComment
in interfaceRecordSPI
-
putTier
Description copied from interface:RecordSPI
Add/set the given tier to the list of user defined tiers. -
getTiersOfType
Description copied from interface:RecordSPI
Return a list of all present tiers which have the given type.- Specified by:
getTiersOfType
in interfaceRecordSPI
- Returns:
- list of tiers
-