Package ca.phon.session.impl
Class SessionImpl
java.lang.Object
ca.phon.session.impl.SessionImpl
- All Implemented Interfaces:
SessionSPI
-
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
Description copied from interface:SessionSPI
Get the corpus- Specified by:
getCorpus
in interfaceSessionSPI
-
getName
Description copied from interface:SessionSPI
Get the transcript name- Specified by:
getName
in interfaceSessionSPI
-
getDate
Description copied from interface:SessionSPI
Get the transcript date- Specified by:
getDate
in interfaceSessionSPI
-
getLanguage
Description copied from interface:SessionSPI
Get the language- Specified by:
getLanguage
in interfaceSessionSPI
-
getMediaLocation
Description copied from interface:SessionSPI
Get/Set the media file location- Specified by:
getMediaLocation
in interfaceSessionSPI
-
getTierView
Description copied from interface:SessionSPI
Get/Set the tier view- Specified by:
getTierView
in interfaceSessionSPI
-
getTranscriber
Description copied from interface:SessionSPI
Get transcriber for the specified username- Specified by:
getTranscriber
in interfaceSessionSPI
- Returns:
-
getTranscriber
Description copied from interface:SessionSPI
Get thei
th transcriber.- Specified by:
getTranscriber
in interfaceSessionSPI
- Returns:
-
removeTranscriber
public void removeTranscriber(int i) Description copied from interface:SessionSPI
Remove thei
th transcriber- Specified by:
removeTranscriber
in interfaceSessionSPI
-
getMetadata
Description copied from interface:SessionSPI
Get the metadata- Specified by:
getMetadata
in interfaceSessionSPI
- Returns:
- Metadata
-
getRecord
Description copied from interface:SessionSPI
Return the record at the given index.- Specified by:
getRecord
in interfaceSessionSPI
- Returns:
- the specified record
-
getRecordCount
public int getRecordCount()Description copied from interface:SessionSPI
Return the number of records.- Specified by:
getRecordCount
in interfaceSessionSPI
- Returns:
- the number of records
-
getRecordPosition
Description copied from interface:SessionSPI
Get the position of the given record.- Specified by:
getRecordPosition
in interfaceSessionSPI
-
setRecordPosition
Description copied from interface:SessionSPI
Set the position of the given record- Specified by:
setRecordPosition
in interfaceSessionSPI
-
getParticipantCount
public int getParticipantCount()Description copied from interface:SessionSPI
Get the number of participants- Specified by:
getParticipantCount
in interfaceSessionSPI
- Returns:
- the number of participants
-
addParticipant
Description copied from interface:SessionSPI
Add a new participant- Specified by:
addParticipant
in interfaceSessionSPI
-
addParticipant
Description copied from interface:SessionSPI
Add participant at given index- Specified by:
addParticipant
in interfaceSessionSPI
-
getParticipant
Description copied from interface:SessionSPI
Get the participant at the given index- Specified by:
getParticipant
in interfaceSessionSPI
- Returns:
- the specified participant
-
getParticipantIndex
Description copied from interface:SessionSPI
Get the index of the given participant- Specified by:
getParticipantIndex
in interfaceSessionSPI
- Returns:
- index of participant or -1 if not found
-
setCorpus
Description copied from interface:SessionSPI
Set the corpus- Specified by:
setCorpus
in interfaceSessionSPI
-
setName
Description copied from interface:SessionSPI
Set the transcript name- Specified by:
setName
in interfaceSessionSPI
-
setDate
Description copied from interface:SessionSPI
Get the transcript date- Specified by:
setDate
in interfaceSessionSPI
-
setLanguage
Description copied from interface:SessionSPI
Set the language- Specified by:
setLanguage
in interfaceSessionSPI
-
setMediaLocation
Description copied from interface:SessionSPI
Media location- Specified by:
setMediaLocation
in interfaceSessionSPI
-
setTierView
Description copied from interface:SessionSPI
Tier view- Specified by:
setTierView
in interfaceSessionSPI
-
addTranscriber
Description copied from interface:SessionSPI
Add a new transcriber- Specified by:
addTranscriber
in interfaceSessionSPI
-
removeTranscriber
Description copied from interface:SessionSPI
Remove a transcriber- Specified by:
removeTranscriber
in interfaceSessionSPI
-
removeTranscriber
- Specified by:
removeTranscriber
in interfaceSessionSPI
-
addRecord
Description copied from interface:SessionSPI
Add a new record to the session- Specified by:
addRecord
in interfaceSessionSPI
-
addRecord
Description copied from interface:SessionSPI
Add a new record to the list in the given position.- Specified by:
addRecord
in interfaceSessionSPI
-
removeRecord
Description copied from interface:SessionSPI
Remove a record from the session.- Specified by:
removeRecord
in interfaceSessionSPI
-
removeRecord
public void removeRecord(int pos) Description copied from interface:SessionSPI
Remove a record from the session- Specified by:
removeRecord
in interfaceSessionSPI
-
removeParticipant
Description copied from interface:SessionSPI
Remove a participant.- Specified by:
removeParticipant
in interfaceSessionSPI
-
removeParticipant
public void removeParticipant(int idx) Description copied from interface:SessionSPI
Remove a participant- Specified by:
removeParticipant
in interfaceSessionSPI
-
getUserTierCount
public int getUserTierCount()Description copied from interface:SessionSPI
Number of user-defined tiers for this session- Specified by:
getUserTierCount
in interfaceSessionSPI
-
getUserTier
Description copied from interface:SessionSPI
Get user tier for the specified index.- Specified by:
getUserTier
in interfaceSessionSPI
- Returns:
- tier description
-
removeUserTier
Description copied from interface:SessionSPI
Remove user tier- Specified by:
removeUserTier
in interfaceSessionSPI
-
removeUserTier
- Specified by:
removeUserTier
in interfaceSessionSPI
-
addUserTier
Description copied from interface:SessionSPI
Add a user tier- Specified by:
addUserTier
in interfaceSessionSPI
-
addUserTier
- Specified by:
addUserTier
in interfaceSessionSPI
-
getTranscriberCount
public int getTranscriberCount()Description copied from interface:SessionSPI
Get the number of transcribers- Specified by:
getTranscriberCount
in interfaceSessionSPI
-