Package gda.jython

Interface IJythonContext

All Known Implementing Classes:
JythonServerFacade

public interface IJythonContext
A description of the context in which the Jython server is running. The client can use this to discover information about, for example, where the scripts and execution history can be found.
  • Method Details

    • getDefaultScriptProjectFolder

      String getDefaultScriptProjectFolder()
      The first folder in which the Jython server looks for scripts.
      Returns:
      A path to the default location for Jython scripts.
    • getProjectNameForPath

      String getProjectNameForPath(String path)
      Given the path to a Jython project, return its name.
      Parameters:
      path - The path to a Jython script project.
      Returns:
      The name of the specified Jython project. If the path is not a known project, then null is returned.
    • getAllScriptProjectFolders

      List<String> getAllScriptProjectFolders()
      All of the folders in which the Jython server looks for scripts.
      Returns:
      A list of paths to the Jython script project folders.
    • projectIsUserType

      boolean projectIsUserType(String path)
      Whether a project specified by path is a user project.
      Parameters:
      path - The project folder path.
      Returns:
      true if the project exists and is a user project.
    • projectIsConfigType

      boolean projectIsConfigType(String path)
      Whether a project specified by path is a configuration project.
      Parameters:
      path - The project folder path.
      Returns:
      true if the project exists and is a config project.
    • projectIsCoreType

      boolean projectIsCoreType(String path)
      Whether a project specified by path is a core project.
      Parameters:
      path - The project folder path.
      Returns:
      true if the project exists and is a core project.