public interface Script
Modifier and Type | Method and Description |
---|---|
Object |
evaluate(String script,
Iterable<PropertyValue> variables)
Evaluates the given script with the given variables.
|
String |
getId()
Returns the script id.
|
String |
getVariableName(PropertyEntityDefinition entityDefinition)
Returns the string representation of the given entity definition this
script is using.
|
String |
validate(String script,
Iterable<PropertyValue> variables)
Validates the given script against the given variables
|
Object evaluate(String script, Iterable<PropertyValue> variables) throws ScriptException
script
- the script to usevariables
- the variables to useScriptException
- if the evaluation failsString validate(String script, Iterable<PropertyValue> variables)
script
- the script to validatevariables
- the variables to usenull
if the script validates, an error message
otherwiseString getVariableName(PropertyEntityDefinition entityDefinition)
entityDefinition
- the entity definitionString getId()
Build 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a