Class 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 local Map.Entry<String, EvaluationValue> for storage.
    • Constructor Detail

      • MapBasedDataAccessor

        public MapBasedDataAccessor()
    • Method Detail

      • getData

        public EvaluationValue getData​(java.lang.String variable)
        Description copied from interface: DataAccessorIfc
        Retrieves a data value.
        Specified by:
        getData in interface DataAccessorIfc
        Parameters:
        variable - The variable name, e.g. a variable or constant name.
        Returns:
        The data value, or null if not found.
      • setData

        public void setData​(java.lang.String variable,
                            EvaluationValue value)
        Description copied from interface: DataAccessorIfc
        Sets a data value.
        Specified by:
        setData in interface DataAccessorIfc
        Parameters:
        variable - The variable name, e.g. a variable or constant name.
        value - The value to set.