org.thymeleaf.templatewriter
Class AbstractGeneralTemplateWriter

Object
  extended by org.thymeleaf.templatewriter.AbstractGeneralTemplateWriter
All Implemented Interfaces:
ITemplateWriter
Direct Known Subclasses:
XhtmlHtml5TemplateWriter, XmlTemplateWriter

public abstract class AbstractGeneralTemplateWriter
extends Object
implements ITemplateWriter

Since:
2.0.0
Author:
Daniel Fernández

Constructor Summary
AbstractGeneralTemplateWriter()
           
 
Method Summary
protected abstract  boolean shouldWriteXmlDeclaration()
           
protected abstract  boolean useXhtmlTagMinimizationRules()
           
 void write(Arguments arguments, java.io.Writer writer, Document document)
           
protected  void writeCDATASection(Arguments arguments, java.io.Writer writer, CDATASection cdataSection)
           
protected  void writeComment(Arguments arguments, java.io.Writer writer, Comment comment)
           
protected  void writeDocType(Arguments arguments, java.io.Writer writer, DocType docType)
           
protected  void writeDocument(Arguments arguments, java.io.Writer writer, Document document)
           
protected  void writeElement(Arguments arguments, java.io.Writer writer, Element element)
           
 void writeNode(Arguments arguments, java.io.Writer writer, Node node)
           
protected  void writeText(Arguments arguments, java.io.Writer writer, Text text)
           
protected  void writeXmlDeclaration(java.io.Writer writer, Document document)
           
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractGeneralTemplateWriter

public AbstractGeneralTemplateWriter()
Method Detail

write

public void write(Arguments arguments,
                  java.io.Writer writer,
                  Document document)
           throws java.io.IOException
Specified by:
write in interface ITemplateWriter
Throws:
java.io.IOException

shouldWriteXmlDeclaration

protected abstract boolean shouldWriteXmlDeclaration()

useXhtmlTagMinimizationRules

protected abstract boolean useXhtmlTagMinimizationRules()

writeDocument

protected void writeDocument(Arguments arguments,
                             java.io.Writer writer,
                             Document document)
                      throws java.io.IOException
Throws:
java.io.IOException

writeXmlDeclaration

protected void writeXmlDeclaration(java.io.Writer writer,
                                   Document document)
                            throws java.io.IOException
Throws:
java.io.IOException

writeDocType

protected void writeDocType(Arguments arguments,
                            java.io.Writer writer,
                            DocType docType)
                     throws java.io.IOException
Throws:
java.io.IOException

writeNode

public void writeNode(Arguments arguments,
                      java.io.Writer writer,
                      Node node)
               throws java.io.IOException
Throws:
java.io.IOException

writeElement

protected void writeElement(Arguments arguments,
                            java.io.Writer writer,
                            Element element)
                     throws java.io.IOException
Throws:
java.io.IOException

writeCDATASection

protected void writeCDATASection(Arguments arguments,
                                 java.io.Writer writer,
                                 CDATASection cdataSection)
                          throws java.io.IOException
Throws:
java.io.IOException

writeComment

protected void writeComment(Arguments arguments,
                            java.io.Writer writer,
                            Comment comment)
                     throws java.io.IOException
Throws:
java.io.IOException

writeText

protected void writeText(Arguments arguments,
                         java.io.Writer writer,
                         Text text)
                  throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2012 The THYMELEAF team. All Rights Reserved.