org.thymeleaf.templatewriter
Class AbstractGeneralTemplateWriter
Object
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
Method Summary |
protected abstract boolean |
shouldWriteXmlDeclaration()
|
protected abstract boolean |
useXhtmlTagMinimizationRules()
|
void |
write(Arguments arguments,
Writer writer,
Document document)
|
protected void |
writeCDATASection(Arguments arguments,
Writer writer,
CDATASection cdataSection)
|
protected void |
writeComment(Arguments arguments,
Writer writer,
Comment comment)
|
protected void |
writeDocType(Arguments arguments,
Writer writer,
DocType docType)
|
protected void |
writeDocument(Arguments arguments,
Writer writer,
Document document)
|
protected void |
writeElement(Arguments arguments,
Writer writer,
Element element)
|
protected void |
writeGroupNode(Arguments arguments,
Writer writer,
GroupNode groupNode)
|
protected void |
writeMacro(Arguments arguments,
Writer writer,
Macro macro)
|
void |
writeNode(Arguments arguments,
Writer writer,
Node node)
|
protected void |
writeText(Arguments arguments,
Writer writer,
Text text)
|
protected void |
writeXmlDeclaration(Writer writer,
Document document)
|
Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractGeneralTemplateWriter
protected AbstractGeneralTemplateWriter()
write
public void write(Arguments arguments,
Writer writer,
Document document)
throws IOException
- Specified by:
write
in interface ITemplateWriter
- Throws:
IOException
shouldWriteXmlDeclaration
protected abstract boolean shouldWriteXmlDeclaration()
useXhtmlTagMinimizationRules
protected abstract boolean useXhtmlTagMinimizationRules()
writeDocument
protected void writeDocument(Arguments arguments,
Writer writer,
Document document)
throws IOException
- Throws:
IOException
writeXmlDeclaration
protected void writeXmlDeclaration(Writer writer,
Document document)
throws IOException
- Throws:
IOException
writeDocType
protected void writeDocType(Arguments arguments,
Writer writer,
DocType docType)
throws IOException
- Throws:
IOException
writeNode
public void writeNode(Arguments arguments,
Writer writer,
Node node)
throws IOException
- Throws:
IOException
writeGroupNode
protected void writeGroupNode(Arguments arguments,
Writer writer,
GroupNode groupNode)
throws IOException
- Throws:
IOException
writeElement
protected void writeElement(Arguments arguments,
Writer writer,
Element element)
throws IOException
- Throws:
IOException
writeCDATASection
protected void writeCDATASection(Arguments arguments,
Writer writer,
CDATASection cdataSection)
throws IOException
- Throws:
IOException
writeComment
protected void writeComment(Arguments arguments,
Writer writer,
Comment comment)
throws IOException
- Throws:
IOException
writeText
protected void writeText(Arguments arguments,
Writer writer,
Text text)
throws IOException
- Throws:
IOException
writeMacro
protected void writeMacro(Arguments arguments,
Writer writer,
Macro macro)
throws IOException
- Throws:
IOException
Copyright © 2014 The THYMELEAF team. All Rights Reserved.