Package org.gvsig.scripting
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 Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidaddStderrWriter(Writer err) voidaddStdoutWriter(Writer out) voidcompile()getResource(String filename) Return a resource File that is beside this script.booleanCheck if the script execution is enabled.voidvoidremoveStderrWriter(Writer err) voidremoveStdoutWriter(Writer out) run()Executes the code of a ScriptBaseScript.Executes the code of a ScriptBaseScript.voidExecutes the code of a ScriptBaseScript in a separated threadvoidsetEnabled(boolean enabled) Enable or disable the sript execution.voidsetIsolationGroup(String group) voidsetLibrarySuffix(String librarySuffix) Methods inherited from interface org.gvsig.tools.observer.Observable
addObserver, deleteObserver, deleteObserversMethods inherited from interface org.gvsig.scripting.ScriptingUnit
addPropertyChangeListener, getCreatedBy, getDescription, getFile, getFileResource, getFiles, getIconNames, getId, getName, getParent, getProperties, getProperty, getTypeName, getUserPath, getVersion, isASystemUnit, isSaved, move, reload, remove, rename, setCreatedBy, setDescription, setName, setProperty, setSaved, setVersion
-
Field Details
-
ISOLATION_LOW
static final int ISOLATION_LOW- See Also:
-
ISOLATION_HIGH
static final int ISOLATION_HIGH- See Also:
-
-
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
Executes the code of a ScriptBaseScript.- Parameters:
args- Contains the input parameters to run the ScriptBaseScript.- Returns:
-
runAsTask
Executes the code of a ScriptBaseScript in a separated thread- Parameters:
args- Contains the input parameters to run the ScriptBaseScript.
-
compile
- Throws:
ScriptingRunningException
-
put
-
getResource
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
-
addStdoutWriter
-
addStderrWriter
-
removeStdoutWriter
-
removeStderrWriter
-
setIsolationGroup
-
getIsolationGroup
String getIsolationGroup()
-