Interface RuleContext<T>

  • All Known Implementing Classes:
    DefaultRuleContext

    public interface RuleContext<T>
    This context is used to pass data from a Rule to a Fix.
    Author:
    Michele Mostarda (mostarda@fbk.eu), Davide Palmisano (palmisano@fbk.eu)
    See Also:
    Rule
    • Method Detail

      • putData

        void putData​(String name,
                     T value)
        Puts a data within the context.
        Parameters:
        name - rule key
        value - rule value
      • getData

        T getData​(String name)
        Retrieves a registered object.
        Parameters:
        name - rule key
        Returns:
        a registered object, null if not found.
      • removeData

        void removeData​(String name)
        Removes a data from the context.
        Parameters:
        name - remove entry with this name