Class CheckAlignment

java.lang.Object
ca.phon.session.check.CheckAlignment
All Implemented Interfaces:
IPluginExtensionPoint<SessionCheck>, SessionCheck

public class CheckAlignment extends Object implements SessionCheck, IPluginExtensionPoint<SessionCheck>
  • Field Details

    • RESET_ALIGNMENT

      public static final String RESET_ALIGNMENT
    • DEFAULT_RESET_ALIGNMENT

      public static final boolean DEFAULT_RESET_ALIGNMENT
      See Also:
  • Constructor Details

    • CheckAlignment

      public CheckAlignment()
  • Method Details

    • getExtensionType

      public Class<?> getExtensionType()
      Description copied from interface: IPluginExtensionPoint
      Get type of extension
      Specified by:
      getExtensionType in interface IPluginExtensionPoint<SessionCheck>
    • getFactory

      public IPluginExtensionFactory<SessionCheck> getFactory()
      Description copied from interface: IPluginExtensionPoint
      Get factory for extension point objects
      Specified by:
      getFactory in interface IPluginExtensionPoint<SessionCheck>
    • performCheckByDefault

      public boolean performCheckByDefault()
      Description copied from interface: SessionCheck
      Perform check by default in session editor and session check wizard. This setting may be overridden by user settings in the Session Check view.
      Specified by:
      performCheckByDefault in interface SessionCheck
      Returns:
      true if check should execute during record editor start-up
    • checkSession

      public boolean checkSession(SessionValidator validator, Session session, Transcriber transcriber)
      Description copied from interface: SessionCheck
      Check session and report any issues using the given validator.
      Specified by:
      checkSession in interface SessionCheck
      Parameters:
      validator - the session validator
      session - the session to check
      transcriber - check transcripts for given transcriber, or validated transcripts if validator
      Returns:
      true if session was modified, false otherwise
    • isResetAlignment

      public boolean isResetAlignment()
    • setResetAlignment

      public void setResetAlignment(boolean resetAlignment)
    • checkTranscriptElement

      public boolean checkTranscriptElement(SessionValidator validator, Session session, int elementIndex, Transcriber transcriber)
      Description copied from interface: SessionCheck
      Check specified transcript element index for issues.
      Specified by:
      checkTranscriptElement in interface SessionCheck
      Parameters:
      validator - the session validator
      session - the session to check
      elementIndex - the transcript element index to check
      transcriber - check transcripts for given transcriber, or validated transcripts if validator
      Returns:
      true if issues were found, false otherwise
    • getProperties

      public Properties getProperties()
      Specified by:
      getProperties in interface SessionCheck
    • loadProperties

      public void loadProperties(Properties props)
      Specified by:
      loadProperties in interface SessionCheck