@Override public void handleCloseElement(final ICloseElementTag closeElementTag) { this.events.add(CloseElementTag.asEngineCloseElementTag(closeElementTag)); // The engine event we might have created is not forwarded - this makes cache creating transparent to the handler chain super.handleCloseElement(closeElementTag); }
@Override public void handleOpenElement(final IOpenElementTag openElementTag) { this.events.add(OpenElementTag.asEngineOpenElementTag(openElementTag)); // The engine event we might have created is not forwarded - this makes cache creating transparent to the handler chain super.handleOpenElement(openElementTag); }
@Override public void handleText(final IText text) { this.events.add(Text.asEngineText(text)); // The engine event we might have created is not forwarded - this makes cache creating transparent to the handler chain super.handleText(text); }
@Override public void handleProcessingInstruction(final IProcessingInstruction processingInstruction) { this.events.add(ProcessingInstruction.asEngineProcessingInstruction(processingInstruction)); // The engine event we might have created is not forwarded - this makes cache creating transparent to the handler chain super.handleProcessingInstruction(processingInstruction); }
@Override public void handleCDATASection(final ICDATASection cdataSection) { this.events.add(CDATASection.asEngineCDATASection(cdataSection)); // The engine event we might have created is not forwarded - this makes cache creating transparent to the handler chain super.handleCDATASection(cdataSection); }
@Override public void handleStandaloneElement(final IStandaloneElementTag standaloneElementTag) { this.events.add(StandaloneElementTag.asEngineStandaloneElementTag(standaloneElementTag)); // The engine event we might have created is not forwarded - this makes cache creating transparent to the handler chain super.handleStandaloneElement(standaloneElementTag); }
@Override public void handleDocType(final IDocType docType) { this.events.add(DocType.asEngineDocType(docType)); // The engine event we might have created is not forwarded - this makes cache creating transparent to the handler chain super.handleDocType(docType); }
@Override public void handleComment(final IComment comment) { this.events.add(Comment.asEngineComment(comment)); // The engine event we might have created is not forwarded - this makes cache creating transparent to the handler chain super.handleComment(comment); }
@Override public void handleTemplateEnd(final ITemplateEnd templateEnd) { this.events.add(TemplateEnd.asEngineTemplateEnd(templateEnd)); // The engine event we might have created is not forwarded - this makes cache creating transparent to the handler chain super.handleTemplateEnd(templateEnd); }
@Override public void handleTemplateStart(final ITemplateStart templateStart) { this.events.add(TemplateStart.asEngineTemplateStart(templateStart)); // The engine event we might have created is not forwarded - this makes cache creating transparent to the handler chain super.handleTemplateStart(templateStart); }
@Override public void handleProcessingInstruction(final IProcessingInstruction processingInstruction) { try { processingInstruction.write(this.writer); } catch (final Exception e) { throw new TemplateOutputException( "An error happened during template rendering", processingInstruction.getTemplateName(), processingInstruction.getLine(), processingInstruction.getCol(), e); } // Just in case someone set us a 'next' super.handleProcessingInstruction(processingInstruction); }
@Override public void handleCDATASection(final ICDATASection cdataSection) { try { cdataSection.write(this.writer); } catch (final Exception e) { throw new TemplateOutputException( "An error happened during template rendering", cdataSection.getTemplateName(), cdataSection.getLine(), cdataSection.getCol(), e); } // Just in case someone set us a 'next' super.handleCDATASection(cdataSection); }
@Override public void handleStandaloneElement(final IStandaloneElementTag standaloneElementTag) { try { standaloneElementTag.write(this.writer); } catch (final Exception e) { throw new TemplateOutputException( "An error happened during template rendering", standaloneElementTag.getTemplateName(), standaloneElementTag.getLine(), standaloneElementTag.getCol(), e); } // Just in case someone set us a 'next' super.handleStandaloneElement(standaloneElementTag); }
@Override public void handleDocType(final IDocType docType) { try { docType.write(this.writer); } catch (final Exception e) { throw new TemplateOutputException( "An error happened during template rendering", docType.getTemplateName(), docType.getLine(), docType.getCol(), e); } // Just in case someone set us a 'next' super.handleDocType(docType); }
@Override public void handleComment(final IComment comment) { try { comment.write(this.writer); } catch (final Exception e) { throw new TemplateOutputException( "An error happened during template rendering", comment.getTemplateName(), comment.getLine(), comment.getCol(), e); } // Just in case someone set us a 'next' super.handleComment(comment); }
@Override public void handleOpenElement(final IOpenElementTag openElementTag) { try { openElementTag.write(this.writer); } catch (final Exception e) { throw new TemplateOutputException( "An error happened during template rendering", openElementTag.getTemplateName(), openElementTag.getLine(), openElementTag.getCol(), e); } // Just in case someone set us a 'next' super.handleOpenElement(openElementTag); }
@Override public void handleCloseElement(final ICloseElementTag closeElementTag) { try { closeElementTag.write(this.writer); } catch (final Exception e) { throw new TemplateOutputException( "An error happened during template rendering", closeElementTag.getTemplateName(), closeElementTag.getLine(), closeElementTag.getCol(), e); } // Just in case someone set us a 'next' super.handleCloseElement(closeElementTag); }
@Override public void handleText(final IText text) { try { text.write(this.writer); } catch (final Exception e) { throw new TemplateOutputException( "An error happened during template rendering", text.getTemplateName(), text.getLine(), text.getCol(), e); } // Just in case someone set us a 'next' super.handleText(text); }
@Override public void handleOpenElement(final IOpenElementTag openElementTag) { super.handleOpenElement(openElementTag); writeWhitespace = true; } }
@Override public void handleCloseElement(final ICloseElementTag tag) { super.handleCloseElement(tag); writeWhitespace = true; }