Interface TierSPI<T>

All Superinterfaces:
TierDescriptionSPI
All Known Implementing Classes:
TierImpl

public interface TierSPI<T> extends TierDescriptionSPI
  • Method Details

    • getFormatter

      Formatter<T> getFormatter()
      Return formatter used by parse and toString for converting between objects and text
      Returns:
      formatter, if no formatter is manually set will use the result of FormatterFactory.createFormatter, null if no formatter is set or found
    • setFormatter

      void setFormatter(Formatter<T> formatter)
      Set formatter used by parse and toString for converting between objects and text
      Parameters:
      formatter - , use null to use default (if any)
    • parse

      T parse(String text) throws ParseException
      Validate text and return object of type T
      Parameters:
      text -
      Throws:
      ParseException
    • getValue

      T getValue()
      Get tier value
    • setValue

      void setValue(T value)
      Set tier value
      Parameters:
      value -
    • setBlindTranscription

      void setBlindTranscription(String transcriberId, T value)
      Set blind transcription
      Parameters:
      transcriberId -
      value -
    • getBlindTranscription

      T getBlindTranscription(String transcriberId)
      Get blind transcription for given transcriber
      Parameters:
      transcriberId -
      Returns:
      blind transcription for transcriber or null if none or isBlind() is false
    • getTranscribers

      List<String> getTranscribers()
      Return list of blind transcribers for this tier
      Parameters:
      list - of transcriberIds