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:SessionFactorySPI
Create a new empty session. Tier view- Specified by:
createSession
in interfaceSessionFactorySPI
- Returns:
- a new session impl
-
createRecord
Description copied from interface:SessionFactorySPI
Create a new record.- Specified by:
createRecord
in interfaceSessionFactorySPI
- Returns:
- a new empty record
-
createRecord
public RecordSPI createRecord(List<SystemTierType> blindTiers, Map<SystemTierType, Map<String, String>> systemTierParamMap) Description copied from interface:SessionFactorySPI
Create a new record with given tiers as blind- Specified by:
createRecord
in interfaceSessionFactorySPI
- Parameters:
blindTiers
-systemTierParamMap
-- Returns:
- a new record with blind tiers
-
createParticipant
Description copied from interface:SessionFactorySPI
Create a new participant object.- Specified by:
createParticipant
in interfaceSessionFactorySPI
- Returns:
- new participant object
-
createMediaSegment
Description copied from interface:SessionFactorySPI
Create a new media segment- Specified by:
createMediaSegment
in 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:SessionFactorySPI
Create a new tier object with the specified type.- Specified by:
createTier
in 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:SessionFactorySPI
Create tier description.- Specified by:
createTierDescription
in 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:SessionFactorySPI
Create a new transcriber object.- Specified by:
createTranscriber
in interfaceSessionFactorySPI
- Returns:
- new transcriber
-
createTierViewItem
public TierViewItemSPI createTierViewItem(String name, boolean visible, String font, boolean locked) Description copied from interface:SessionFactorySPI
Create a tier display and ordering object- Specified by:
createTierViewItem
in interfaceSessionFactorySPI
- Parameters:
name
-visible
-font
-locked
-- Returns:
-
createGem
Description copied from interface:SessionFactorySPI
Create gem- Specified by:
createGem
in interfaceSessionFactorySPI
- Parameters:
gemType
-label
-- Returns:
- new gem impl
-
createComment
Description copied from interface:SessionFactorySPI
Create comment- Specified by:
createComment
in interfaceSessionFactorySPI
- Parameters:
commentType
-value
-- Returns:
- new comment impl
-
createTranscript
- Specified by:
createTranscript
in interfaceSessionFactorySPI
-
createTimeline
Description copied from interface:SessionFactorySPI
Create a new IntervalTiersSPI object.- Specified by:
createTimeline
in interfaceSessionFactorySPI
- Returns:
- new IntervalTiersSPI object
-
createTimelineTier
Description copied from interface:SessionFactorySPI
Create a new IntervalTierSPI object.- Specified by:
createTimelineTier
in interfaceSessionFactorySPI
- Parameters:
name
-- Returns:
- new IntervalTierSPI object
-
getExtensionType
Description copied from interface:IPluginExtensionPoint
Get type of extension- Specified by:
getExtensionType
in interfaceIPluginExtensionPoint<SessionFactorySPI>
-
getFactory
Description copied from interface:IPluginExtensionPoint
Get factory for extension point objects- Specified by:
getFactory
in interfaceIPluginExtensionPoint<SessionFactorySPI>
-