Interface ScriptingBaseScript

All Superinterfaces:
org.gvsig.tools.observer.Observable, ScriptingUnit, org.gvsig.tools.observer.WeakReferencingObservable
All Known Subinterfaces:
ScriptingDialog, ScriptingScript

public interface ScriptingBaseScript extends ScriptingUnit, org.gvsig.tools.observer.WeakReferencingObservable

Interface that represents Scripting elements.

See Also:
  • Field Details

  • Method Details

    • isEnabled

      boolean isEnabled()
      Check if the script execution is enabled.
      Returns:
      if the script is enabled.
    • setEnabled

      void setEnabled(boolean enabled)
      Enable or disable the sript execution.
      Parameters:
      enabled -
    • run

      Object run()
      Executes the code of a ScriptBaseScript.
      Returns:
    • run

      Object run(Object[] args)
      Executes the code of a ScriptBaseScript.
      Parameters:
      args - Contains the input parameters to run the ScriptBaseScript.
      Returns:
    • runAsTask

      void runAsTask(Object[] args)
      Executes the code of a ScriptBaseScript in a separated thread
      Parameters:
      args - Contains the input parameters to run the ScriptBaseScript.
    • compile

      void compile() throws ScriptingRunningException
      Throws:
      ScriptingRunningException
    • put

      void put(String name, Object value)
    • getResource

      File getResource(String filename)
      Return a resource File that is beside this script.
      Parameters:
      filename -
      Returns:
      the file which is beside this script
    • getScriptFile

      File getScriptFile()
    • getLibrarySuffix

      String getLibrarySuffix()
    • setLibrarySuffix

      void setLibrarySuffix(String librarySuffix)
    • addStdoutWriter

      void addStdoutWriter(Writer out)
    • addStderrWriter

      void addStderrWriter(Writer err)
    • removeStdoutWriter

      void removeStdoutWriter(Writer out)
    • removeStderrWriter

      void removeStderrWriter(Writer err)
    • setIsolationGroup

      void setIsolationGroup(String group)
    • getIsolationGroup

      String getIsolationGroup()