public interface ScriptingBaseScript extends ScriptingUnit, WeakReferencingObservable
Interface that represents Scripting elements.
ScriptingUnit
,
ScriptingScript
,
ScriptingDialog
,
ScriptingProject
Modifier and Type | Field and Description |
---|---|
static int |
ISOLATION_HIGH |
static int |
ISOLATION_LOW |
Modifier and Type | Method and Description |
---|---|
void |
addStderrWriter(java.io.Writer err) |
void |
addStdoutWriter(java.io.Writer out) |
void |
compile() |
java.lang.String |
getIsolationGroup() |
java.lang.String |
getLibrarySuffix() |
java.io.File |
getResource(java.lang.String filename)
Return a resource File that is beside this script.
|
java.io.File |
getScriptFile() |
boolean |
isEnabled()
Check if the script execution is enabled.
|
void |
put(java.lang.String name,
java.lang.Object value) |
void |
removeStderrWriter(java.io.Writer err) |
void |
removeStdoutWriter(java.io.Writer out) |
java.lang.Object |
run()
Executes the code of a ScriptBaseScript.
|
java.lang.Object |
run(java.lang.Object[] args)
Executes the code of a ScriptBaseScript.
|
void |
runAsTask(java.lang.Object[] args)
Executes the code of a ScriptBaseScript in a separated thread
|
void |
setEnabled(boolean enabled)
Enable or disable the sript execution.
|
void |
setIsolationGroup(java.lang.String group) |
void |
setLibrarySuffix(java.lang.String librarySuffix) |
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
addObserver, deleteObserver, deleteObservers
static final int ISOLATION_LOW
static final int ISOLATION_HIGH
boolean isEnabled()
void setEnabled(boolean enabled)
enabled
- java.lang.Object run()
java.lang.Object run(java.lang.Object[] args)
args
- Contains the input parameters to run the ScriptBaseScript.void runAsTask(java.lang.Object[] args)
args
- Contains the input parameters to run the ScriptBaseScript.void compile() throws ScriptingRunningException
ScriptingRunningException
void put(java.lang.String name, java.lang.Object value)
java.io.File getResource(java.lang.String filename)
filename
- java.io.File getScriptFile()
java.lang.String getLibrarySuffix()
void setLibrarySuffix(java.lang.String librarySuffix)
void addStdoutWriter(java.io.Writer out)
void addStderrWriter(java.io.Writer err)
void removeStdoutWriter(java.io.Writer out)
void removeStderrWriter(java.io.Writer err)
void setIsolationGroup(java.lang.String group)
java.lang.String getIsolationGroup()