com.tngtech.jgiven.report.html
Class ReportModelHtmlWriter

java.lang.Object
  extended by com.tngtech.jgiven.report.model.ReportModelVisitor
      extended by com.tngtech.jgiven.report.html.ReportModelHtmlWriter

public class ReportModelHtmlWriter
extends ReportModelVisitor


Field Summary
protected  HtmlWriterUtils utils
           
protected  PrintWriter writer
           
 
Constructor Summary
ReportModelHtmlWriter(PrintWriter writer)
           
 
Method Summary
static String toString(com.google.common.base.Function<PrintWriter,Void> writeFunction)
           
static String toString(ReportModel model)
           
static String toString(ScenarioModel model)
           
 void visit(ReportModel reportModel)
           
 void visit(ScenarioModel scenarioModel)
           
 void visitEnd(ReportModel reportModel)
           
 void write(ReportModel model, HtmlTocWriter htmlTocWriter)
           
 void write(ScenarioModel model)
           
 void writeHtmlFooter()
           
 void writeHtmlHeader(String title)
           
static void writeToFile(File file, ReportModel model, HtmlTocWriter htmlTocWriter)
           
 
Methods inherited from class com.tngtech.jgiven.report.model.ReportModelVisitor
visit, visit, visitEnd, visitEnd
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

writer

protected final PrintWriter writer

utils

protected final HtmlWriterUtils utils
Constructor Detail

ReportModelHtmlWriter

public ReportModelHtmlWriter(PrintWriter writer)
Method Detail

writeHtmlHeader

public void writeHtmlHeader(String title)

writeHtmlFooter

public void writeHtmlFooter()

write

public void write(ScenarioModel model)

write

public void write(ReportModel model,
                  HtmlTocWriter htmlTocWriter)

toString

public static String toString(ScenarioModel model)

toString

public static String toString(ReportModel model)

toString

public static String toString(com.google.common.base.Function<PrintWriter,Void> writeFunction)

writeToFile

public static void writeToFile(File file,
                               ReportModel model,
                               HtmlTocWriter htmlTocWriter)
                        throws FileNotFoundException,
                               UnsupportedEncodingException
Throws:
FileNotFoundException
UnsupportedEncodingException

visit

public void visit(ReportModel reportModel)
Overrides:
visit in class ReportModelVisitor

visitEnd

public void visitEnd(ReportModel reportModel)
Overrides:
visitEnd in class ReportModelVisitor

visit

public void visit(ScenarioModel scenarioModel)
Overrides:
visit in class ReportModelVisitor


Copyright © 2014 TNG Technology Consulting. All rights reserved.