public void addRule(ElementSelector elementSelector, Action action) {
    action.setContext(context);

    List<Action> a4p = rules.get(elementSelector);

    if (a4p == null) {
      a4p = new ArrayList<Action>();
      rules.put(elementSelector, a4p);
    }

    a4p.add(action);
  }
public void addRule(ElementSelector elementSelector, Action action) {
    action.setContext(context);

    List<Action> a4p = rules.get(elementSelector);

    if (a4p == null) {
      a4p = new ArrayList<Action>();
      rules.put(elementSelector, a4p);
    }

    a4p.add(action);
  }
public void addRule ( ElementSelector elementSelector , Action action ) { action . setContext ( context ) ; List < Action > a4p = rules . get ( elementSelector ) ; if ( a4p == null ) { a4p = new ArrayList < Action > ( ) ; rules . put ( elementSelector , a4p ) ; } a4p . add ( action ) ; }
Add a new rule, i.e. a pattern, action pair to the rule store. <p> Note
that the added action's LoggerRepository will be set in the process.
Add a new rule i . e . a pattern action pair to the rule store . <p > Note that the added action s LoggerRepository will be set in the process .