public interface IConditionScript
ScriptableCondition
to handle the majority of the heavy lifting,
leaving this to just evaluate the script. If the clone(IModel, VariableBindings)
or bind(ScriptSupport, IModel, VariableBindings, boolean)
methods throw a
CannotMatchException
, they should use IMatchFailure
s such as
ScriptExecutionFailure
or ExceptionMatchFailure
. If the
script code itself throws a CME, it can merely be passed up.Modifier and Type | Method and Description |
---|---|
int |
bind(ScriptSupport scriptSupport,
IModel model,
VariableBindings variableBindings,
boolean isIterative)
iteratively bind this condition.
|
IConditionScript |
clone(IModel model,
VariableBindings variableBindings)
clone a copy of this condition for use in binding.
|
void |
dispose() |
IScriptableFactory |
getFactory() |
java.lang.String |
getScript() |
java.lang.String getScript()
IConditionScript clone(IModel model, VariableBindings variableBindings) throws CannotMatchException
model
- variableBindings
- CannotMatchException
int bind(ScriptSupport scriptSupport, IModel model, VariableBindings variableBindings, boolean isIterative) throws CannotMatchException
model
- variableBindings
- isIterative
- false if this is the final call. If so, any unresolved bindings
should result in a CannotMatchExceptionCannotMatchException
void dispose()
IScriptableFactory getFactory()