Class SimpleRuleStore

    • Constructor Detail

      • SimpleRuleStore

        public SimpleRuleStore​(Context context)
    • Method Detail

      • addRule

        public void addRule​(ElementSelector elementSelector,
                            Action action)
        Add a new rule, i.e. a pattern, action pair to the rule store.

        Note that the added action's LoggerRepository will be set in the process.

        Specified by:
        addRule in interface RuleStore
      • addRule

        public void addRule​(ElementSelector elementSelector,
                            java.lang.String actionClassName)
        Description copied from interface: RuleStore
        Add a new rule, given by a pattern and a action class (String).
        Specified by:
        addRule in interface RuleStore
      • matchActions

        public java.util.List<Action> matchActions​(ElementPath elementPath)
        Description copied from interface: RuleStore
        Return a list of actions matching a pattern.
        Specified by:
        matchActions in interface RuleStore
        Parameters:
        elementPath - the path to match for
        Returns:
        list of matching actions
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object