Class SessionFactoryImpl
java.lang.Object
ca.phon.session.impl.SessionFactoryImpl
- All Implemented Interfaces:
IPluginExtensionPoint<SessionFactorySPI>,SessionFactorySPI
public class SessionFactoryImpl
extends Object
implements SessionFactorySPI, IPluginExtensionPoint<SessionFactorySPI>
Default implementation of a session factory.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateComment(CommentType commentType, TierData value) Create commentCreate gemCreate a new media segmentCreate a new participant object.Create a new record.createRecord(List<SystemTierType> blindTiers, Map<SystemTierType, Map<String, String>> systemTierParamMap) Create a new record with given tiers as blindCreate a new empty session.<T> TierSPI<T> createTier(String name, Class<T> type, Map<String, String> tierParameters, boolean excludeFromAlignment, boolean blind, List<String> subtypeDelim, String subtypeExpr) Create a new tier object with the specified type.createTierDescription(String name, Class<?> type, Map<String, String> tierParameters, boolean excludeFromAlignment, boolean blind, List<String> subtypeDelim, String subtypeExpr) Create tier description.createTierViewItem(String name, boolean visible, String font, boolean locked) Create a tier display and ordering objectCreate a new IntervalTiersSPI object.createTimelineTier(String name) Create a new IntervalTierSPI object.Create a new transcriber object.Class<?> Get type of extensionGet factory for extension point objects
-
Constructor Details
-
SessionFactoryImpl
public SessionFactoryImpl()
-
-
Method Details
-
createSession
Description copied from interface:SessionFactorySPICreate a new empty session. Tier view- Specified by:
createSessionin interfaceSessionFactorySPI- Returns:
- a new session impl
-
createRecord
Description copied from interface:SessionFactorySPICreate a new record.- Specified by:
createRecordin interfaceSessionFactorySPI- Returns:
- a new empty record
-
createRecord
public RecordSPI createRecord(List<SystemTierType> blindTiers, Map<SystemTierType, Map<String, String>> systemTierParamMap) Description copied from interface:SessionFactorySPICreate a new record with given tiers as blind- Specified by:
createRecordin interfaceSessionFactorySPI- Parameters:
blindTiers-systemTierParamMap-- Returns:
- a new record with blind tiers
-
createParticipant
Description copied from interface:SessionFactorySPICreate a new participant object.- Specified by:
createParticipantin interfaceSessionFactorySPI- Returns:
- new participant object
-
createMediaSegment
Description copied from interface:SessionFactorySPICreate a new media segment- Specified by:
createMediaSegmentin interfaceSessionFactorySPI
-
createTier
public <T> TierSPI<T> createTier(String name, Class<T> type, Map<String, String> tierParameters, boolean excludeFromAlignment, boolean blind, List<String> subtypeDelim, String subtypeExpr) Description copied from interface:SessionFactorySPICreate a new tier object with the specified type.- Specified by:
createTierin interfaceSessionFactorySPI- Parameters:
name-type-tierParameters-excludeFromAlignment-blind-subtypeDelim-subtypeExpr-- Returns:
- the new tier
-
createTierDescription
public TierDescriptionSPI createTierDescription(String name, Class<?> type, Map<String, String> tierParameters, boolean excludeFromAlignment, boolean blind, List<String> subtypeDelim, String subtypeExpr) Description copied from interface:SessionFactorySPICreate tier description.- Specified by:
createTierDescriptionin interfaceSessionFactorySPI- Parameters:
name-type-tierParameters-excludeFromAlignment- true if tier is excluded from cross tier alignmentblind-subtypeDelim-subtypeExpr-- Returns:
- new tier description
-
createTranscriber
Description copied from interface:SessionFactorySPICreate a new transcriber object.- Specified by:
createTranscriberin interfaceSessionFactorySPI- Returns:
- new transcriber
-
createTierViewItem
public TierViewItemSPI createTierViewItem(String name, boolean visible, String font, boolean locked) Description copied from interface:SessionFactorySPICreate a tier display and ordering object- Specified by:
createTierViewItemin interfaceSessionFactorySPI- Parameters:
name-visible-font-locked-- Returns:
-
createGem
Description copied from interface:SessionFactorySPICreate gem- Specified by:
createGemin interfaceSessionFactorySPI- Parameters:
gemType-label-- Returns:
- new gem impl
-
createComment
Description copied from interface:SessionFactorySPICreate comment- Specified by:
createCommentin interfaceSessionFactorySPI- Parameters:
commentType-value-- Returns:
- new comment impl
-
createTranscript
- Specified by:
createTranscriptin interfaceSessionFactorySPI
-
createTimeline
Description copied from interface:SessionFactorySPICreate a new IntervalTiersSPI object.- Specified by:
createTimelinein interfaceSessionFactorySPI- Returns:
- new IntervalTiersSPI object
-
createTimelineTier
Description copied from interface:SessionFactorySPICreate a new IntervalTierSPI object.- Specified by:
createTimelineTierin interfaceSessionFactorySPI- Parameters:
name-- Returns:
- new IntervalTierSPI object
-
getExtensionType
Description copied from interface:IPluginExtensionPointGet type of extension- Specified by:
getExtensionTypein interfaceIPluginExtensionPoint<SessionFactorySPI>
-
getFactory
Description copied from interface:IPluginExtensionPointGet factory for extension point objects- Specified by:
getFactoryin interfaceIPluginExtensionPoint<SessionFactorySPI>
-