Class TierImpl<T>
java.lang.Object
ca.phon.session.impl.TierImpl<T>
- Type Parameters:
T
- tier data type
- All Implemented Interfaces:
TierDescriptionSPI
,TierSPI<T>
Default implementation of a tier.
-
Method Summary
Modifier and TypeMethodDescriptiongetBlindTranscription
(String transcriberId) Get blind transcription for given transcriberGet declared type of the tierReturn formatter used by parse and toString for converting between objects and textgetName()
Get the name of the tier.Return list of blind transcribers for this tiergetValue()
Get tier valueboolean
isBlind()
boolean
Validate text and return object of type Tvoid
setBlind
(boolean blind) void
setBlindTranscription
(String transcriberId, T value) Set blind transcriptionvoid
setFormatter
(Formatter<T> formatter) Set formatter used by parse and toString for converting between objects and textvoid
Set tier value
-
Method Details
-
getName
Description copied from interface:TierDescriptionSPI
Get the name of the tier.- Specified by:
getName
in interfaceTierDescriptionSPI
- Returns:
- name of the tier
-
getDeclaredType
Description copied from interface:TierDescriptionSPI
Get declared type of the tier- Specified by:
getDeclaredType
in interfaceTierDescriptionSPI
-
getTierParameters
- Specified by:
getTierParameters
in interfaceTierDescriptionSPI
-
isExcludeFromAlignment
public boolean isExcludeFromAlignment()- Specified by:
isExcludeFromAlignment
in interfaceTierDescriptionSPI
-
isBlind
public boolean isBlind()- Specified by:
isBlind
in interfaceTierDescriptionSPI
-
setBlind
public void setBlind(boolean blind) - Specified by:
setBlind
in interfaceTierDescriptionSPI
-
getSubtypeDelim
- Specified by:
getSubtypeDelim
in interfaceTierDescriptionSPI
-
getSubtypeExpr
- Specified by:
getSubtypeExpr
in interfaceTierDescriptionSPI
-
setBlindTranscription
-
getBlindTranscription
Description copied from interface:TierSPI
Get blind transcription for given transcriber- Specified by:
getBlindTranscription
in interfaceTierSPI<T>
- Parameters:
transcriberId
-- Returns:
- blind transcription for transcriber or null if none or isBlind() is false
-
getTranscribers
-
getFormatter
Description copied from interface:TierSPI
Return formatter used by parse and toString for converting between objects and text- Specified by:
getFormatter
in interfaceTierSPI<T>
- Returns:
- formatter, if no formatter is manually set will use the result of FormatterFactory.createFormatter, null if no formatter is set or found
-
setFormatter
-
parse
Description copied from interface:TierSPI
Validate text and return object of type T- Specified by:
parse
in interfaceTierSPI<T>
- Parameters:
text
-- Throws:
ParseException
-
getValue
-
setValue
-