public interface ScriptingManager extends ScriptManager
ScriptingUIManager
,
ScriptingHelpManager
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_ISOLATION_GROUP |
static String |
HELP_INSTALLER_PROVIDER_DESCRIPTION |
static String |
HELP_INSTALLER_PROVIDER_NAME |
static String |
INSTALLER_PROVIDER_DESCRIPTION |
static String |
INSTALLER_PROVIDER_NAME |
static String |
PYTHON_LANGUAGE_NAME |
static String |
SCALA_LANGUAGE_NAME |
static String |
UNIT_DIALOG |
static String |
UNIT_EXTERNALFILE |
static String |
UNIT_FOLDER |
static String |
UNIT_SCRIPT |
Modifier and Type | Method and Description |
---|---|
void |
addAlternativeUserFolder(File f,
String name,
String description) |
void |
addLibFolder(File lib) |
ScriptingUnit |
createUnit(String unitType,
ScriptingFolder folder,
String id) |
ScriptingUnit |
createUnit(String unitType,
ScriptingFolder folder,
String id,
String language) |
Object |
get(String key)
Retrieves a value set in the state of this ScriptingManager
|
List<ScriptingFolder> |
getAlternativeUserFolders() |
String |
getEngineNameByLanguage(String langName) |
Set<String> |
getEnginesIsolationGroups() |
Map |
getExtendedProperties()
Returns a hash map with all new properties associated to this layer.
|
String |
getExtensionOfLanguage(String language) |
ScriptingFolder |
getFolder(File file)
Returns the
ScriptingFolder associated with the file specified |
ProviderFactory |
getHelpInstallerFactory() |
ScriptingHelpManager |
getHelpManager()
Gets the Help manager
|
File |
getHomeFolder() |
ProviderFactory |
getInstallerFactory() |
List<File> |
getLibFolders() |
Map<String,String> |
getLibFoldersVersions()
Return a map with the label and suffix of the library versions.
|
File |
getPackagesFolder()
Devuelbe la carpeta en la que se encuentran los paquetes
de la aplicacion.
|
Object |
getProperty(Object key)
Returns a reference to an object (property) associated to this layer.
|
File |
getRootUserFolder() |
ScriptingBaseScript |
getScript(File file)
Returns the
ScriptingBaseScript associated with the file
specified |
ScriptingBaseScript |
getScript(String name) |
List<String> |
getSupportedLanguages() |
ScriptingFolder |
getSystemFolder()
Returns the System's Folder
|
List<String> |
getUnitTypes() |
ScriptingFolder |
getUserFolder()
Returns the User's Folder
|
void |
loadEngines()
Search the available engines and initialize the manager.
|
void |
put(String key,
Object value)
Sets a key/value pair in the state of the ScriptingManager that may
either create a Java Language Binding to be used in the execution of
scripts
|
void |
registerSystemFolder(String name,
File folder)
Registers a File System with
ScriptingUnit s in the SystemFolder |
void |
setHomeFolder(File home) |
void |
setPackagesFolder(File folder)
Establece la carpeta en la que se encuentran los paquetes
de la aplicacion.
|
void |
setProperty(Object key,
Object obj)
Inserts an object as a property to this layer.
|
boolean |
validateUnitId(ScriptingFolder folder,
String id)
Checks if an id is unique in a determinate folder
|
createScript, locateScript
static final String INSTALLER_PROVIDER_NAME
static final String INSTALLER_PROVIDER_DESCRIPTION
static final String HELP_INSTALLER_PROVIDER_NAME
static final String HELP_INSTALLER_PROVIDER_DESCRIPTION
static final String PYTHON_LANGUAGE_NAME
static final String SCALA_LANGUAGE_NAME
static final String DEFAULT_ISOLATION_GROUP
static final String UNIT_SCRIPT
static final String UNIT_DIALOG
static final String UNIT_FOLDER
static final String UNIT_EXTERNALFILE
void setHomeFolder(File home)
File getHomeFolder()
ScriptingFolder getSystemFolder()
ScriptingFolder
with the System's Folder.ScriptingFolder getUserFolder()
ScriptingFolder
with the User's Folder.List<ScriptingFolder> getAlternativeUserFolders()
ScriptingUnit createUnit(String unitType, ScriptingFolder folder, String id)
ScriptingUnit createUnit(String unitType, ScriptingFolder folder, String id, String language)
ScriptingBaseScript getScript(File file)
ScriptingBaseScript
associated with the file
specifiedfile
- File where is contained the ScriptingBaseScript
's
informationScriptingBaseScript
ScriptingBaseScript getScript(String name)
ScriptingFolder getFolder(File file)
ScriptingFolder
associated with the file specifiedfile
- File where is contained the ScriptingFolder
's
informationScriptingFolder
void registerSystemFolder(String name, File folder)
ScriptingUnit
s in the SystemFoldername
- String with the identificator name of the File System
registeredfolder
- File with the root of the File System to registerboolean validateUnitId(ScriptingFolder folder, String id)
folder
- {id
- String with the id to validateScriptingUnit
with the same
id, and false in the other casevoid put(String key, Object value)
key
- The name of named value to addvalue
- The value of named value to add.Object get(String key)
key
- The key whose value is to be returnedScriptingHelpManager getHelpManager()
ScriptingHelpManager
ScriptingHelpManager
void addLibFolder(File lib)
File getRootUserFolder()
ProviderFactory getInstallerFactory()
ProviderFactory getHelpInstallerFactory()
File getPackagesFolder()
void setPackagesFolder(File folder)
folder
- void loadEngines()
Map<String,String> getLibFoldersVersions()
Object getProperty(Object key)
Returns a reference to an object (property) associated to this layer.
For example, you can attach a network definition to key "network" and check if a layer has a network loaded using getAssociatedObject("network") and that it's not null.
key
- the key associated to the propertynull
if key is not foundgetExtendedProperties()
,
setProperty(Object, Object)
void setProperty(Object key, Object obj)
key
- the key associated to the propertyobj
- the propertygetProperty(Object)
,
getExtendedProperties()
Map getExtendedProperties()
getProperty(Object)
,
setProperty(Object, Object)