public interface ScriptingManager extends ScriptManager
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_ISOLATION_GROUP |
static java.lang.String |
INSTALLER_PROVIDER_DESCRIPTION |
static java.lang.String |
INSTALLER_PROVIDER_NAME |
static java.lang.String |
PYTHON_LANGUAGE_NAME |
static java.lang.String |
UNIT_DIALOG |
static java.lang.String |
UNIT_EXTERNALFILE |
static java.lang.String |
UNIT_FOLDER |
static java.lang.String |
UNIT_SCRIPT |
Modifier and Type | Method and Description |
---|---|
void |
addAlternativeUserFolder(java.io.File f,
java.lang.String name,
java.lang.String description) |
void |
addLibFolder(java.io.File lib) |
ScriptingFolder |
createLink(java.lang.String name,
java.io.File link,
java.lang.String targetPathName) |
ScriptingFolder |
createLink(java.lang.String name,
ScriptingFolder link,
java.lang.String targetPathName) |
ScriptingUnit |
createUnit(java.lang.String unitType,
ScriptingFolder folder,
java.lang.String id) |
ScriptingUnit |
createUnit(java.lang.String unitType,
ScriptingFolder folder,
java.lang.String id,
java.lang.String language) |
java.lang.Object |
get(java.lang.String key)
Retrieves a value set in the state of this ScriptingManager
|
java.util.List<ScriptingFolder> |
getAlternativeUserFolders() |
java.io.File |
getDataFolder(java.lang.String id) |
java.lang.String |
getEngineNameByLanguage(java.lang.String langName) |
java.util.Set<java.lang.String> |
getEnginesIsolationGroups() |
java.util.Map |
getExtendedProperties()
Returns a hash map with all new properties associated to this layer.
|
java.lang.String |
getExtensionOfLanguage(java.lang.String language) |
ScriptingFolder |
getFolder(java.io.File file)
Returns the
ScriptingFolder associated with the file specified |
java.io.File |
getHomeFolder() |
ProviderFactory |
getInstallerFactory() |
java.util.List<java.io.File> |
getLibFolders() |
java.util.Map<java.lang.String,java.lang.String> |
getLibFoldersVersions()
Return a map with the label and suffix of the library versions.
|
java.io.File |
getPackagesFolder()
Devuelbe la carpeta en la que se encuentran los paquetes
de la aplicacion.
|
java.lang.Object |
getProperty(java.lang.Object key)
Returns a reference to an object (property) associated to this layer.
|
java.io.File |
getRootUserFolder() |
ScriptingBaseScript |
getScript(java.io.File file)
Returns the
ScriptingBaseScript associated with the file
specified |
ScriptingBaseScript |
getScript(java.lang.String name) |
java.util.List<java.lang.String> |
getSupportedLanguages() |
ScriptingFolder |
getSystemFolder()
Returns the System's Folder
|
ScriptingUnit |
getUnit(java.lang.String pathName)
Return the
ScriptingUnit associated with the path specified. |
java.util.List<java.lang.String> |
getUnitTypes() |
ScriptingFolder |
getUserFolder()
Returns the User's Folder
|
void |
loadEngines()
Search the available engines and initialize the manager.
|
void |
put(java.lang.String key,
java.lang.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 |
registerDataFolder(ScriptingFolder folderScript,
java.lang.String id) |
void |
registerSystemFolder(java.lang.String name,
java.io.File folder)
Registers a File System with
ScriptingUnit s in the SystemFolder |
java.util.List<DataFolderFound> |
searchOldVersions(Version currentVersion,
FolderSet folder) |
void |
setHomeFolder(java.io.File home) |
void |
setPackagesFolder(java.io.File folder)
Establece la carpeta en la que se encuentran los paquetes
de la aplicacion.
|
void |
setProperty(java.lang.Object key,
java.lang.Object obj)
Inserts an object as a property to this layer.
|
boolean |
validateUnitId(ScriptingFolder folder,
java.lang.String id)
Checks if an id is unique in a determinate folder
|
createEvaluator, createScript, loadScript, loadScript, locateScript
static final java.lang.String INSTALLER_PROVIDER_NAME
static final java.lang.String INSTALLER_PROVIDER_DESCRIPTION
static final java.lang.String PYTHON_LANGUAGE_NAME
static final java.lang.String DEFAULT_ISOLATION_GROUP
static final java.lang.String UNIT_SCRIPT
static final java.lang.String UNIT_DIALOG
static final java.lang.String UNIT_FOLDER
static final java.lang.String UNIT_EXTERNALFILE
void setHomeFolder(java.io.File home)
java.io.File getHomeFolder()
java.io.File getDataFolder(java.lang.String id)
void registerDataFolder(ScriptingFolder folderScript, java.lang.String id)
java.util.List<DataFolderFound> searchOldVersions(Version currentVersion, FolderSet folder)
ScriptingFolder getSystemFolder()
ScriptingFolder
with the System's Folder.ScriptingFolder getUserFolder()
ScriptingFolder
with the User's Folder.java.util.List<ScriptingFolder> getAlternativeUserFolders()
void addAlternativeUserFolder(java.io.File f, java.lang.String name, java.lang.String description)
ScriptingUnit createUnit(java.lang.String unitType, ScriptingFolder folder, java.lang.String id)
ScriptingUnit createUnit(java.lang.String unitType, ScriptingFolder folder, java.lang.String id, java.lang.String language)
java.util.List<java.lang.String> getUnitTypes()
ScriptingBaseScript getScript(java.io.File file)
ScriptingBaseScript
associated with the file
specifiedfile
- File where is contained the ScriptingBaseScript
's
informationScriptingBaseScript
ScriptingBaseScript getScript(java.lang.String name)
ScriptingFolder getFolder(java.io.File file)
ScriptingFolder
associated with the file specifiedfile
- File where is contained the ScriptingFolder
's
informationScriptingFolder
ScriptingUnit getUnit(java.lang.String pathName)
ScriptingUnit
associated with the path specified.
the path should start with "User" or "System".pathName
- ScriptingUnit
void registerSystemFolder(java.lang.String name, java.io.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 registerjava.util.List<java.lang.String> getSupportedLanguages()
java.lang.String getExtensionOfLanguage(java.lang.String language)
java.lang.String getEngineNameByLanguage(java.lang.String langName)
java.util.Set<java.lang.String> getEnginesIsolationGroups()
boolean validateUnitId(ScriptingFolder folder, java.lang.String id)
folder
- {id
- String with the id to validateScriptingUnit
with the same
id, and false in the other casevoid put(java.lang.String key, java.lang.Object value)
key
- The name of named value to addvalue
- The value of named value to add.java.lang.Object get(java.lang.String key)
key
- The key whose value is to be returnedvoid addLibFolder(java.io.File lib)
java.io.File getRootUserFolder()
ProviderFactory getInstallerFactory()
java.io.File getPackagesFolder()
void setPackagesFolder(java.io.File folder)
folder
- void loadEngines()
java.util.List<java.io.File> getLibFolders()
java.util.Map<java.lang.String,java.lang.String> getLibFoldersVersions()
java.lang.Object getProperty(java.lang.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(java.lang.Object key, java.lang.Object obj)
key
- the key associated to the propertyobj
- the propertygetProperty(Object)
,
getExtendedProperties()
java.util.Map getExtendedProperties()
getProperty(Object)
,
setProperty(Object, Object)
ScriptingFolder createLink(java.lang.String name, java.io.File link, java.lang.String targetPathName)
ScriptingFolder createLink(java.lang.String name, ScriptingFolder link, java.lang.String targetPathName)