nl.flotsam.pecia.builder.html
Class HtmlDocumentBuilder

java.lang.Object
  extended by nl.flotsam.pecia.builder.base.DefaultDocumentBuilder
      extended by nl.flotsam.pecia.builder.xml.XmlDocumentBuilder
          extended by nl.flotsam.pecia.builder.html.HtmlDocumentBuilder
All Implemented Interfaces:
DocumentBuilder

public class HtmlDocumentBuilder
extends XmlDocumentBuilder


Nested Class Summary
static class HtmlDocumentBuilder.ArticleTagWriter
           
 class HtmlDocumentBuilder.HtmlColBuilder<T>
           
 class HtmlDocumentBuilder.HtmlLastColBuilder<T>
           
static class HtmlDocumentBuilder.HtmlParaBuilder<T>
           
 class HtmlDocumentBuilder.HtmlRowBuilder<T>
           
 
Nested classes/interfaces inherited from class nl.flotsam.pecia.builder.xml.XmlDocumentBuilder
XmlDocumentBuilder.AbstractSingleTagWriter, XmlDocumentBuilder.ManyToOneTagWriter, XmlDocumentBuilder.OneToOneTagWriter, XmlDocumentBuilder.TagWriter, XmlDocumentBuilder.TagWriterCatalog
 
Constructor Summary
HtmlDocumentBuilder(XmlWriter writer)
           
HtmlDocumentBuilder(XmlWriter writer, URL stylesheet)
           
 
Method Summary
static DefaultTagWriterCatalog createCatalog(URL stylesheet)
           
<T> EntryBuilder<T>
createEntry(T parent, boolean header, DocumentBuilder builder)
           
<T> FootnoteBuilder<T>
createFootnote(T parent, DocumentBuilder builder)
           
<T> LastEntryBuilder<T>
createLastEntry(T parent, boolean header, DocumentBuilder builder)
           
<T> ParaBuilder<T>
createPara(T parent, DocumentBuilder builder)
           
<T> RowBuilder<T>
createRow(T parent, boolean header, boolean first, DocumentBuilder builder)
           
 void end()
          Called when the document is ended.
 void start()
          Called when the document is started.
 
Methods inherited from class nl.flotsam.pecia.builder.xml.XmlDocumentBuilder
getWriter, writeInline, writeInline
 
Methods inherited from class nl.flotsam.pecia.builder.base.DefaultDocumentBuilder
createArticle, createItemizedList, createListItem, createOrderedList, createSection, createTable2Cols, createTable3Cols, createTable4Cols, createTable5Cols, createTable6Cols, createVerbatim, getLifecycleListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HtmlDocumentBuilder

public HtmlDocumentBuilder(XmlWriter writer)

HtmlDocumentBuilder

public HtmlDocumentBuilder(XmlWriter writer,
                           URL stylesheet)
Method Detail

createCatalog

public static DefaultTagWriterCatalog createCatalog(URL stylesheet)

createEntry

public <T> EntryBuilder<T> createEntry(T parent,
                                       boolean header,
                                       DocumentBuilder builder)
Specified by:
createEntry in interface DocumentBuilder
Overrides:
createEntry in class DefaultDocumentBuilder

createLastEntry

public <T> LastEntryBuilder<T> createLastEntry(T parent,
                                               boolean header,
                                               DocumentBuilder builder)
Specified by:
createLastEntry in interface DocumentBuilder
Overrides:
createLastEntry in class DefaultDocumentBuilder

createRow

public <T> RowBuilder<T> createRow(T parent,
                                   boolean header,
                                   boolean first,
                                   DocumentBuilder builder)
Specified by:
createRow in interface DocumentBuilder
Overrides:
createRow in class DefaultDocumentBuilder

end

public void end()
Description copied from interface: DocumentBuilder
Called when the document is ended.

Specified by:
end in interface DocumentBuilder
Overrides:
end in class DefaultDocumentBuilder

start

public void start()
Description copied from interface: DocumentBuilder
Called when the document is started.

Specified by:
start in interface DocumentBuilder
Overrides:
start in class DefaultDocumentBuilder

createPara

public <T> ParaBuilder<T> createPara(T parent,
                                     DocumentBuilder builder)
Specified by:
createPara in interface DocumentBuilder
Overrides:
createPara in class DefaultDocumentBuilder

createFootnote

public <T> FootnoteBuilder<T> createFootnote(T parent,
                                             DocumentBuilder builder)
Specified by:
createFootnote in interface DocumentBuilder
Overrides:
createFootnote in class DefaultDocumentBuilder


Copyright © 2010. All Rights Reserved.