public final class ScriptObject extends Object
| Constructor and Description |
|---|
ScriptObject(String name,
String script,
ScriptingLanguage language)
Constructs a script object with the given name, script body and language.
|
ScriptObject(String name,
String script,
ScriptingLanguage language,
Bindings bindings)
Constructs a script object with the given name, script body, language and variable bindings.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
Bindings |
getBindings()
Variable bindings that should be set when executing this script.
|
ScriptingLanguage |
getLanguage()
The language that the script is written in.
|
String |
getName()
The name of the script.
|
String |
getScript()
The contents of the script in the given scripting language.
|
int |
hashCode() |
String |
toString() |
List<ScriptError> |
validate()
Validate this script for the particular language rules and produces a list of
ScriptError instances if any validation errors occurred. |
public ScriptObject(String name, String script, ScriptingLanguage language, Bindings bindings)
name - the name of the script.script - the script itself.language - the language that the script is written in.bindings - the bindings used for the script.public ScriptObject(String name, String script, ScriptingLanguage language)
name - the name of the script.script - the script itself.language - the language that the script is written in.public String getName()
public String getScript()
public ScriptingLanguage getLanguage()
public Bindings getBindings()
public List<ScriptError> validate()
ScriptError instances if any validation errors occurred.NullPointerException - if script is empty.Copyright © 2010–2024 Open Identity Platform Community. All rights reserved.