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 Summary
Modifier and TypeMethodDescriptionAll of the folders in which the Jython server looks for scripts.The first folder in which the Jython server looks for scripts.getProjectNameForPath(String path) Given the path to a Jython project, return its name.booleanprojectIsConfigType(String path) Whether a project specified by path is a configuration project.booleanprojectIsCoreType(String path) Whether a project specified by path is a core project.booleanprojectIsUserType(String path) Whether a project specified by path is a user project.
-
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
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
All of the folders in which the Jython server looks for scripts.- Returns:
- A list of paths to the Jython script project folders.
-
projectIsUserType
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
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
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.
-