Package com.im.df.api.dml.calculated
Interface DFWrappedValue
-
public interface DFWrappedValueProvides lazily computed value. Value internally kept by an implementation could be for example Groovy script. CallinggetUnwrappedValue()performs the computation and returns the value.Note: the name of the interface is rather unfortunate.
- Author:
- pzajac
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.ObjectgetUnwrappedValue()Evaluates value this provider represents.booleanisValueReady()
-
-
-
Method Detail
-
getUnwrappedValue
java.lang.Object getUnwrappedValue() throws javax.script.ScriptExceptionEvaluates value this provider represents. E.g. triggers Groovy script evaluation. Note that this might be time-consuming operation.- Returns:
- computed value
- Throws:
javax.script.ScriptException- when evaluation fails
-
isValueReady
boolean isValueReady()
- Returns:
- is the value already evaluated (computed)?
-
-