liquibase.dbdoc
Class HTMLWriter

java.lang.Object
  extended by liquibase.dbdoc.HTMLWriter
Direct Known Subclasses:
AuthorWriter, ColumnWriter, PendingChangesWriter, PendingSQLWriter, RecentChangesWriter, TableWriter

public abstract class HTMLWriter
extends Object


Field Summary
protected  Database database
           
protected  File outputDir
           
 
Constructor Summary
HTMLWriter(File outputDir, Database database)
           
 
Method Summary
protected abstract  String createTitle(Object object)
           
protected  void writeBody(Writer fileWriter, Object object, List<Change> ranChanges, List<Change> changesToRun)
           
protected  void writeChanges(String title, Writer fileWriter, List<Change> changes)
           
protected abstract  void writeCustomHTML(Writer fileWriter, Object object, List<Change> changes, Database database)
           
 void writeHTML(Object object, List<Change> ranChanges, List<Change> changesToRun, String changeLog)
           
protected  void writeTable(String title, List<List<String>> cells, Writer fileWriter)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

outputDir

protected File outputDir

database

protected Database database
Constructor Detail

HTMLWriter

public HTMLWriter(File outputDir,
                  Database database)
Method Detail

writeCustomHTML

protected abstract void writeCustomHTML(Writer fileWriter,
                                        Object object,
                                        List<Change> changes,
                                        Database database)
                                 throws IOException
Throws:
IOException

writeHTML

public void writeHTML(Object object,
                      List<Change> ranChanges,
                      List<Change> changesToRun,
                      String changeLog)
               throws IOException,
                      DatabaseHistoryException,
                      DatabaseException
Throws:
IOException
DatabaseHistoryException
DatabaseException

writeBody

protected void writeBody(Writer fileWriter,
                         Object object,
                         List<Change> ranChanges,
                         List<Change> changesToRun)
                  throws IOException,
                         DatabaseHistoryException,
                         DatabaseException
Throws:
IOException
DatabaseHistoryException
DatabaseException

writeTable

protected void writeTable(String title,
                          List<List<String>> cells,
                          Writer fileWriter)
                   throws IOException
Throws:
IOException

createTitle

protected abstract String createTitle(Object object)

writeChanges

protected void writeChanges(String title,
                            Writer fileWriter,
                            List<Change> changes)
                     throws IOException,
                            DatabaseHistoryException,
                            DatabaseException
Throws:
IOException
DatabaseHistoryException
DatabaseException


Copyright © 2016 Liquibase.org. All rights reserved.