Constructor and Description |
---|
MathScript() |
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
|
public Object evaluate(String script, Iterable<PropertyValue> variables) throws ScriptException
Script
evaluate
in interface Script
script
- the script to usevariables
- the variables to useScriptException
- if the evaluation failsScript.evaluate(java.lang.String,
java.lang.Iterable)
public String getVariableName(PropertyEntityDefinition entityDefinition)
Script
getVariableName
in interface Script
entityDefinition
- the entity definitionScript.getVariableName(eu.esdihumboldt.hale.common.align.model.impl.PropertyEntityDefinition)
public String validate(String script, Iterable<PropertyValue> variables)
Script
validate
in interface Script
script
- the script to validatevariables
- the variables to usenull
if the script validates, an error message
otherwiseScript.validate(java.lang.String,
java.lang.Iterable)
public String getId()
Script
getId
in interface Script
Script.getId()
Build 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a