Class SessionPath

java.lang.Object
ca.phon.session.SessionPath
All Implemented Interfaces:
IExtendable, Comparable<SessionPath>

public class SessionPath extends Object implements IExtendable, Comparable<SessionPath>
Helper class for holding location for sessions in a project.
  • Field Details

    • PATH_SEP

      public static final String PATH_SEP
  • Constructor Details

    • SessionPath

      public SessionPath(String folder, String sessionFile)
  • Method Details

    • getFolder

      public String getFolder()
      Get corpus
    • setFolder

      public void setFolder(String folder)
      Set corpus
    • getSessionFile

      public String getSessionFile()
      Get session filename
      Returns:
      session file name with extension
    • getSessionName

      public String getSessionName()
      Get session name
      Returns:
      session name (same as filename without extension)
    • setSessionFile

      public void setSessionFile(String sessionFile)
      Set session
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getExtensions

      public Set<Class<?>> getExtensions()
      Description copied from interface: IExtendable
      Return all extension types supported
      Specified by:
      getExtensions in interface IExtendable
    • getExtension

      public <T> T getExtension(Class<T> cap)
      Description copied from interface: IExtendable
      Get the requested extension if available.
      Specified by:
      getExtension in interface IExtendable
      Returns:
      the capability object or null if the cability is not available
    • putExtension

      public <T> T putExtension(Class<T> cap, T impl)
      Description copied from interface: IExtendable
      Add a new extension.
      Specified by:
      putExtension in interface IExtendable
      Parameters:
      cap - the extension to add
      Returns:
      the added extension implementation
    • removeExtension

      public <T> T removeExtension(Class<T> cap)
      Description copied from interface: IExtendable
      Remove a capability.
      Specified by:
      removeExtension in interface IExtendable
      Parameters:
      cap - the capability to remove
    • equals

      public boolean equals(Object b)
      Overrides:
      equals in class Object
    • compareTo

      public int compareTo(SessionPath o)
      Specified by:
      compareTo in interface Comparable<SessionPath>