Package com.im.df.api.dml.calculated
Interface DFWrappedValue
-
public interface DFWrappedValue
Provides 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.Object
getUnwrappedValue()
Evaluates value this provider represents.boolean
isValueReady()
-
-
-
Method Detail
-
getUnwrappedValue
java.lang.Object getUnwrappedValue() throws javax.script.ScriptException
Evaluates 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)?
-
-