public class PythonScriptRegistry extends ScriptRegistry implements IPythonScriptRegistry
IPythonScriptRegistry
simply using maps to perform 1:1 mapping.Constructor and Description |
---|
PythonScriptRegistry() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getReference(Script script)
Return the reference
String for this Script . |
Script |
getScript(java.lang.String reference)
Return the
Script identified by this reference String . |
void |
put(Script script)
Add a new
Script to the registry and store its mapping. |
getResource, getScript
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getResource, getScript
public void put(Script script)
IScriptRegistry
Script
to the registry and store its mapping.put
in interface IScriptRegistry
put
in class ScriptRegistry
script
- Script to be stored in registry.public Script getScript(java.lang.String reference)
IPythonScriptRegistry
Script
identified by this reference String
.getScript
in interface IPythonScriptRegistry
reference
- Reference String
to get Script
for.Script
identified by reference String
or null
if no mapping found.public java.lang.String getReference(Script script)
IPythonScriptRegistry
String
for this Script
.getReference
in interface IPythonScriptRegistry
script
- Script
to get reference String
for.String
for Script
or null
if no mapping found.