public class BeanShellValidationStrategy extends java.lang.Object implements DynamicValidationStrategy
Bean shell validation mechanism evals provided expression and checks if the result might somehow interpreted as
boolean value. Creates instance of Interpreter per validation call.
At this moment in beanshell context current validated object is accessible as current e.g ProductModel.CODE
will be available as getCode(). There is also available explicit JaloSession object as "jaloSession". (It
might somehow inefficient to create BSH interpreter for every validation.)
| Constructor and Description |
|---|
BeanShellValidationStrategy() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
validate(java.lang.String expression,
java.lang.Object argument)
TODO: apidoc
|
public boolean validate(java.lang.String expression,
java.lang.Object argument)
DynamicValidationStrategyvalidate in interface DynamicValidationStrategyCopyright © 2018 SAP SE. All Rights Reserved.