void callBeginAction(List<Action> applicableActionList, String tagName, Attributes atts) { if (applicableActionList == null) { return; } Iterator<Action> i = applicableActionList.iterator(); while (i.hasNext()) { Action action = (Action) i.next(); // now let us invoke the action. We catch and report any eventual // exceptions try { action.begin(interpretationContext, tagName, atts); } catch (ActionException e) { skip = elementPath.duplicate(); cai.addError("ActionException in Action for tag [" + tagName + "]", e); } catch (RuntimeException e) { skip = elementPath.duplicate(); cai.addError("RuntimeException in Action for tag [" + tagName + "]", e); } } }
private void callBodyAction(List<Action> applicableActionList, String body) { if (applicableActionList == null) { return; } Iterator<Action> i = applicableActionList.iterator(); while (i.hasNext()) { Action action = i.next(); try { action.body(interpretationContext, body); } catch (ActionException ae) { cai .addError("Exception in end() methd for action [" + action + "]", ae); } } }
private void callEndAction(List<Action> applicableActionList, String tagName) { if (applicableActionList == null) { return; } // logger.debug("About to call end actions on node: [" + localName + "]"); Iterator<Action> i = applicableActionList.iterator(); while (i.hasNext()) { Action action = i.next(); // now let us invoke the end method of the action. We catch and report // any eventual exceptions try { action.end(interpretationContext, tagName); } catch (ActionException ae) { // at this point endAction, there is no point in skipping children as // they have been already processed cai.addError("ActionException in Action for tag [" + tagName + "]", ae); } catch (RuntimeException e) { // no point in setting skip cai.addError("RuntimeException in Action for tag [" + tagName + "]", e); } } }
protected String getLineColStr(InterpretationContext ic) { return "line: " + getLineNumber(ic) + ", column: " + getColumnNumber(ic); } }
/** * 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. */ 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); }
protected String getLineColStr(InterpretationContext ic) { return "line: " + getLineNumber(ic) + ", column: " + getColumnNumber(ic); } }
/** * 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. */ 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); }
protected String getLineColStr(InterpretationContext ic) { return "line: " + getLineNumber(ic) + ", column: " + getColumnNumber(ic); } }
/** * 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. */ public void addRule(Pattern pattern, Action action) { action.setContext(context); List<Action> a4p = rules.get(pattern); if (a4p == null) { a4p = new ArrayList<Action>(); rules.put(pattern, a4p); } a4p.add(action); }
private void callBodyAction(List<Action> applicableActionList, String body) { if (applicableActionList == null) { return; } Iterator<Action> i = applicableActionList.iterator(); while (i.hasNext()) { Action action = i.next(); try { action.body(interpretationContext, body); } catch (ActionException ae) { cai.addError("Exception in end() methd for action [" + action + "]", ae); } } }
private void callEndAction(List<Action> applicableActionList, String tagName) { if (applicableActionList == null) { return; } // logger.debug("About to call end actions on node: [" + localName + "]"); Iterator<Action> i = applicableActionList.iterator(); while (i.hasNext()) { Action action = i.next(); // now let us invoke the end method of the action. We catch and report // any eventual exceptions try { action.end(interpretationContext, tagName); } catch (ActionException ae) { // at this point endAction, there is no point in skipping children as // they have been already processed cai.addError("ActionException in Action for tag [" + tagName + "]", ae); } catch (RuntimeException e) { // no point in setting skip cai.addError("RuntimeException in Action for tag [" + tagName + "]", e); } } }
void callBeginAction(List<Action> applicableActionList, String tagName, Attributes atts) { if (applicableActionList == null) { return; } Iterator<Action> i = applicableActionList.iterator(); while (i.hasNext()) { Action action = (Action) i.next(); // now let us invoke the action. We catch and report any eventual // exceptions try { action.begin(interpretationContext, tagName, atts); } catch (ActionException e) { skip = elementPath.duplicate(); cai.addError("ActionException in Action for tag [" + tagName + "]", e); } catch (RuntimeException e) { skip = elementPath.duplicate(); cai.addError("RuntimeException in Action for tag [" + tagName + "]", e); } } }
protected String getLineColStr(InterpretationContext ic) { return "line: " + getLineNumber(ic) + ", column: " + getColumnNumber(ic); } }
/** * 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. */ public void addRule(Pattern pattern, Action action) { action.setContext(context); List<Action> a4p = rules.get(pattern); if (a4p == null) { a4p = new ArrayList<Action>(); rules.put(pattern, a4p); } a4p.add(action); }
private void callBodyAction(List<Action> applicableActionList, String body) { if (applicableActionList == null) { return; } Iterator<Action> i = applicableActionList.iterator(); while (i.hasNext()) { Action action = i.next(); try { action.body(interpretationContext, body); } catch (ActionException ae) { cai.addError("Exception in end() methd for action [" + action + "]", ae); } } }
private void callEndAction(List applicableActionList, String tagName) { if (applicableActionList == null) { return; } // logger.debug("About to call end actions on node: [" + localName + "]"); Iterator i = applicableActionList.iterator(); while (i.hasNext()) { Action action = (Action) i.next(); // now let us invoke the end method of the action. We catch and report // any eventual exceptions try { action.end(interpretationContext, tagName); } catch (ActionException ae) { // at this point endAction, there is no point in skipping children as // they have been already processed cai.addError("ActionException in Action for tag [" + tagName + "]", ae); } catch (RuntimeException e) { // no point in setting skip cai.addError("RuntimeException in Action for tag [" + tagName + "]", e); } } }
void callBeginAction(List<Action> applicableActionList, String tagName, Attributes atts) { if (applicableActionList == null) { return; } Iterator<Action> i = applicableActionList.iterator(); while (i.hasNext()) { Action action = (Action) i.next(); // now let us invoke the action. We catch and report any eventual // exceptions try { action.begin(interpretationContext, tagName, atts); } catch (ActionException e) { skip = elementPath.duplicate(); cai.addError("ActionException in Action for tag [" + tagName + "]", e); } catch (RuntimeException e) { skip = elementPath.duplicate(); cai.addError("RuntimeException in Action for tag [" + tagName + "]", e); } } }
protected String getLineColStr(InterpretationContext ec) { String line = "line: " + getLineNumber(ec) + ", column: " + getColumnNumber(ec); return line; } }
/** * 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. */ public void addRule(Pattern pattern, Action action) { action.setContext(context); List<Action> a4p = rules.get(pattern); if (a4p == null) { a4p = new ArrayList<Action>(); rules.put(pattern, a4p); } a4p.add(action); }
private void callBodyAction(List<Action> applicableActionList, String body) { if (applicableActionList == null) { return; } Iterator<Action> i = applicableActionList.iterator(); while (i.hasNext()) { Action action = i.next(); try { action.body(interpretationContext, body); } catch (ActionException ae) { cai.addError("Exception in end() methd for action [" + action + "]", ae); } } }