Class DynamicValue<T>
- java.lang.Object
-
- de.codecentric.reedelk.runtime.api.script.dynamicvalue.DynamicValue<T>
-
- All Implemented Interfaces:
ScriptBlock
- Direct Known Subclasses:
DynamicBigDecimal,DynamicBigInteger,DynamicBoolean,DynamicByteArray,DynamicDouble,DynamicFloat,DynamicInteger,DynamicLong,DynamicObject,DynamicResource,DynamicString
public abstract class DynamicValue<T> extends Object implements ScriptBlock
A dynamic value is a component property which might be a simple text or an inline script.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedDynamicValue(DynamicValue<?> original)protectedDynamicValue(Object body)Constructor for a dynamic value whose body is NOT a script.protectedDynamicValue(Object body, ModuleContext context)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Stringbody()StringfunctionName()ModuleContextgetContext()abstract Class<T>getEvaluatedType()booleanisEmpty()booleanisNotNull()booleanisScript()StringtoString()Tvalue()
-
-
-
Field Detail
-
body
protected final Object body
-
-
Constructor Detail
-
DynamicValue
protected DynamicValue(Object body)
Constructor for a dynamic value whose body is NOT a script.- Parameters:
body- the dynamic value body. Must not be a script.
-
DynamicValue
protected DynamicValue(Object body, ModuleContext context)
-
DynamicValue
protected DynamicValue(DynamicValue<?> original)
-
-
Method Detail
-
functionName
public String functionName()
- Specified by:
functionNamein interfaceScriptBlock
-
body
public String body()
- Specified by:
bodyin interfaceScriptBlock
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin interfaceScriptBlock
-
getContext
public ModuleContext getContext()
- Specified by:
getContextin interfaceScriptBlock
-
value
public T value()
-
isScript
public boolean isScript()
-
isNotNull
public boolean isNotNull()
-
-