Package ca.phon.session.spi
Interface SessionSPI
- All Known Implementing Classes:
SessionImpl
public interface SessionSPI
service provider interface for sessions
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addParticipant
(int idx, Participant participant) Add participant at given indexvoid
addParticipant
(Participant participant) Add a new participantvoid
Add a new record to the list in the given position.void
Add a new record to the sessionvoid
Add a new transcribervoid
addUserTier
(int idx, TierDescription tierDescription) void
addUserTier
(TierDescription tierDescription) Add a user tierGet the corpusgetDate()
Get the transcript dateGet the languageGet/Set the media file locationGet the metadatagetName()
Get the transcript namegetParticipant
(int idx) Get the participant at the given indexint
Get the number of participantsint
getParticipantIndex
(Participant participant) Get the index of the given participantgetRecord
(int pos) Return the record at the given index.int
Return the number of records.int
getRecordPosition
(Record record) Get the position of the given record.Get/Set the tier viewgetTranscriber
(int i) Get thei
th transcriber.getTranscriber
(String username) Get transcriber for the specified usernameint
Get the number of transcribersgetUserTier
(int idx) Get user tier for the specified index.int
Number of user-defined tiers for this sessionvoid
removeParticipant
(int idx) Remove a participantvoid
removeParticipant
(Participant participant) Remove a participant.void
removeRecord
(int pos) Remove a record from the sessionvoid
removeRecord
(Record record) Remove a record from the session.void
removeTranscriber
(int i) Remove thei
th transcribervoid
Remove a transcribervoid
removeTranscriber
(String username) removeUserTier
(int idx) Remove user tierremoveUserTier
(TierDescription tierDescription) void
Set the corpusvoid
Get the transcript datevoid
setLanguage
(String language) Set the languagevoid
setMediaLocation
(String mediaLocation) Media locationvoid
Set the transcript namevoid
setRecordPosition
(Record record, int position) Set the position of the given recordvoid
setTierView
(List<TierViewItem> view) Tier view
-
Method Details
-
getCorpus
String getCorpus()Get the corpus -
getName
String getName()Get the transcript name -
getDate
LocalDate getDate()Get the transcript date -
getLanguage
String getLanguage()Get the language -
getMediaLocation
String getMediaLocation()Get/Set the media file location -
getTierView
List<TierViewItem> getTierView()Get/Set the tier view -
getUserTierCount
int getUserTierCount()Number of user-defined tiers for this session -
getUserTier
Get user tier for the specified index.- Parameters:
idx
-- Returns:
- tier description
-
removeUserTier
Remove user tier- Parameters:
idx
-
-
removeUserTier
-
addUserTier
Add a user tier -
addUserTier
-
getTranscriberCount
int getTranscriberCount()Get the number of transcribers -
getTranscriber
Get transcriber for the specified username- Parameters:
username
-- Returns:
-
getTranscriber
Get thei
th transcriber.- Parameters:
i
-- Returns:
-
removeTranscriber
void removeTranscriber(int i) Remove thei
th transcriber- Parameters:
i
-
-
getMetadata
SessionMetadata getMetadata()Get the metadata- Returns:
- Metadata
-
getRecord
Return the record at the given index.- Parameters:
pos
-- Returns:
- the specified record
-
getRecordCount
int getRecordCount()Return the number of records.- Returns:
- the number of records
-
getRecordPosition
Get the position of the given record.- Parameters:
record
-
-
setRecordPosition
Set the position of the given record- Parameters:
record
-position
-
-
getParticipantCount
int getParticipantCount()Get the number of participants- Returns:
- the number of participants
-
addParticipant
Add a new participant- Parameters:
participant
-
-
addParticipant
Add participant at given index- Parameters:
idx
-participant
-
-
getParticipant
Get the participant at the given index- Parameters:
idx
-- Returns:
- the specified participant
-
getParticipantIndex
Get the index of the given participant- Returns:
- index of participant or -1 if not found
-
setCorpus
Set the corpus -
setName
Set the transcript name -
setDate
Get the transcript date -
setLanguage
Set the language -
setMediaLocation
Media location -
setTierView
Tier view -
addTranscriber
Add a new transcriber -
removeTranscriber
Remove a transcriber -
removeTranscriber
-
addRecord
Add a new record to the session- Parameters:
record
-
-
addRecord
Add a new record to the list in the given position.- Parameters:
pos
-record
-
-
removeRecord
Remove a record from the session.- Parameters:
record
-
-
removeRecord
void removeRecord(int pos) Remove a record from the session- Parameters:
pos
-
-
removeParticipant
Remove a participant.- Parameters:
participant
-
-
removeParticipant
void removeParticipant(int idx) Remove a participant- Parameters:
idx
-
-