Class DefaultRuleContext

    • Constructor Detail

      • DefaultRuleContext

        public DefaultRuleContext()
    • Method Detail

      • putData

        public void putData​(String name,
                            Object value)
        Description copied from interface: RuleContext
        Puts a data within the context.
        Specified by:
        putData in interface RuleContext<Object>
        Parameters:
        name - rule key
        value - rule value
      • getData

        public Object getData​(String name)
        Description copied from interface: RuleContext
        Retrieves a registered object.
        Specified by:
        getData in interface RuleContext<Object>
        Parameters:
        name - rule key
        Returns:
        a registered object, null if not found.
      • removeData

        public void removeData​(String name)
        Description copied from interface: RuleContext
        Removes a data from the context.
        Specified by:
        removeData in interface RuleContext<Object>
        Parameters:
        name - remove entry with this name