Package com.ezylang.evalex.data
Class MapBasedDataAccessor
- java.lang.Object
-
- com.ezylang.evalex.data.MapBasedDataAccessor
-
- All Implemented Interfaces:
DataAccessorIfc
public class MapBasedDataAccessor extends java.lang.Object implements DataAccessorIfc
A default case-insensitive implementation of the data accessor that uses a localMap.Entry<String, EvaluationValue>for storage.
-
-
Constructor Summary
Constructors Constructor Description MapBasedDataAccessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EvaluationValuegetData(java.lang.String variable)Retrieves a data value.voidsetData(java.lang.String variable, EvaluationValue value)Sets a data value.
-
-
-
Method Detail
-
getData
public EvaluationValue getData(java.lang.String variable)
Description copied from interface:DataAccessorIfcRetrieves a data value.- Specified by:
getDatain interfaceDataAccessorIfc- Parameters:
variable- The variable name, e.g. a variable or constant name.- Returns:
- The data value, or
nullif not found.
-
setData
public void setData(java.lang.String variable, EvaluationValue value)Description copied from interface:DataAccessorIfcSets a data value.- Specified by:
setDatain interfaceDataAccessorIfc- Parameters:
variable- The variable name, e.g. a variable or constant name.value- The value to set.
-
-