Class MapParameterContext
java.lang.Object
net.simplace.core.jexl.FWParameterContext
net.simplace.core.jexl.MapParameterContext
- All Implemented Interfaces:
org.apache.commons.jexl3.JexlContext
Parameter context of a parameter map (GUI, pipelines, data readers) for
FWParameterResolver: tokens are replaced by
the map values (dates as date and time, an existing empty value by an empty text), expressions get the values
themselves (texts that are numbers as numbers).- Author:
- Andreas Enders
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.commons.jexl3.JexlContext
org.apache.commons.jexl3.JexlContext.AnnotationProcessor, org.apache.commons.jexl3.JexlContext.CancellationHandle, org.apache.commons.jexl3.JexlContext.ClassNameResolver, org.apache.commons.jexl3.JexlContext.ModuleProcessor, org.apache.commons.jexl3.JexlContext.NamespaceFunctor, org.apache.commons.jexl3.JexlContext.NamespaceResolver, org.apache.commons.jexl3.JexlContext.OptionsHandle, org.apache.commons.jexl3.JexlContext.PragmaProcessor, org.apache.commons.jexl3.JexlContext.ThreadLocal -
Field Summary
Fields inherited from class FWParameterContext
TEMPDIR -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class FWParameterContext
get, getLogSource, getProjectLines, getSpecialText, has, isSpecialName, resolveText, set, toParameterName
-
Constructor Details
-
MapParameterContext
-
-
Method Details
-
getText
- Specified by:
getTextin classFWParameterContext- Parameters:
aName- parameter name- Returns:
- the value as text for token replacement (empty for an existing parameter without value), or
nullif the parameter does not exist
-
getObject
- Specified by:
getObjectin classFWParameterContext- Parameters:
aName- parameter name- Returns:
- the value; a text that is a number (e.g. the value of a text field) is returned as number
(
LongorDouble), so that${count} + 1calculates instead of concatenating
-
contains
- Specified by:
containsin classFWParameterContext- Parameters:
aName- parameter name- Returns:
trueif the source has the parameter
-
store
Description copied from class:FWParameterContextStores the temporary directory created by_TEMPDIR_in the source.- Specified by:
storein classFWParameterContext- Parameters:
aName- parameter nameaValue- the value
-