/** * Called by various {@link XMLElement} consumeInner*() methods after all * elements have been handed to {@link #interpretElement}. Passes the * text to be post processed to each pipe member that is instanceof * {@link PostProcessingInterpreter}. */ public String postProcess(String consumedText) throws UnableToCompleteException { for (XMLElement.Interpreter<T> i : pipe) { if (i instanceof PostProcessingInterpreter<?>) { consumedText = ((PostProcessingInterpreter<T>) i).postProcess(consumedText); } } return consumedText; } }
/** * Called by various {@link XMLElement} consumeInner*() methods after all * elements have been handed to {@link #interpretElement}. Passes the * text to be post processed to each pipe member that is instanceof * {@link PostProcessingInterpreter}. */ public String postProcess(String consumedText) throws UnableToCompleteException { for (XMLElement.Interpreter<T> i : pipe) { if (i instanceof PostProcessingInterpreter<?>) { consumedText = ((PostProcessingInterpreter<T>) i).postProcess(consumedText); } } return consumedText; } }
/** * Refines {@link #consumeInnerTextEscapedAsHtmlStringLiteral(Interpreter)} to * handle PostProcessingInterpreter. */ public String consumeInnerText(PostProcessingInterpreter<String> interpreter) throws UnableToCompleteException { String text = consumeInnerTextEscapedAsHtmlStringLiteral(interpreter); return interpreter.postProcess(text); }
/** * Refines {@link #consumeInnerHtml(Interpreter)} to handle * PostProcessingInterpreter. */ public String consumeInnerHtml(PostProcessingInterpreter<String> interpreter) throws UnableToCompleteException { String html = consumeInnerHtml((Interpreter<String>) interpreter); return interpreter.postProcess(html); }
/** * Refines {@link #consumeInnerTextEscapedAsHtmlStringLiteral(Interpreter)} to * handle PostProcessingInterpreter. */ public String consumeInnerText(PostProcessingInterpreter<String> interpreter) throws UnableToCompleteException { String text = consumeInnerTextEscapedAsHtmlStringLiteral(interpreter); return interpreter.postProcess(text); }
/** * Refines {@link #consumeInnerHtml(Interpreter)} to handle * PostProcessingInterpreter. */ public String consumeInnerHtml(PostProcessingInterpreter<String> interpreter) throws UnableToCompleteException { String html = consumeInnerHtml((Interpreter<String>) interpreter); return interpreter.postProcess(html); }
/** * Refines {@link #consumeInnerHtml(Interpreter)} to handle * PostProcessingInterpreter. */ public String consumeInnerHtml(PostProcessingInterpreter<String> interpreter) throws UnableToCompleteException { String html = consumeInnerHtml((Interpreter<String>) interpreter); return interpreter.postProcess(html); }
/** * Refines {@link #consumeInnerTextEscapedAsHtmlStringLiteral(Interpreter)} to * handle PostProcessingInterpreter. */ public String consumeInnerText(PostProcessingInterpreter<String> interpreter) throws UnableToCompleteException { String text = consumeInnerTextEscapedAsHtmlStringLiteral(interpreter); return interpreter.postProcess(text); }
/** * Refines {@link #consumeInnerHtml(Interpreter)} to handle * PostProcessingInterpreter. */ public String consumeInnerHtml(PostProcessingInterpreter<String> interpreter) throws UnableToCompleteException { String html = consumeInnerHtml((Interpreter<String>) interpreter); return interpreter.postProcess(html); }
/** * Refines {@link #consumeInnerTextEscapedAsHtmlStringLiteral(Interpreter)} to * handle PostProcessingInterpreter. */ public String consumeInnerText(PostProcessingInterpreter<String> interpreter) throws UnableToCompleteException { String text = consumeInnerTextEscapedAsHtmlStringLiteral(interpreter); return interpreter.postProcess(text); }
/** * Called by various {@link XMLElement} consumeInner*() methods after all * elements have been handed to {@link #interpretElement}. Passes the * text to be post processed to each pipe member that is instanceof * {@link PostProcessingInterpreter}. */ public String postProcess(String consumedText) throws UnableToCompleteException { for (XMLElement.Interpreter<T> i : pipe) { if (i instanceof PostProcessingInterpreter<?>) { consumedText = ((PostProcessingInterpreter<T>) i).postProcess(consumedText); } } return consumedText; } }