Class FlatDtdWriter.ContentModel

java.lang.Object
org.dbunit.dataset.xml.FlatDtdWriter.ContentModel
Direct Known Subclasses:
FlatDtdWriter.ChoiceModel, FlatDtdWriter.SequenceModel
Enclosing class:
FlatDtdWriter

public abstract static class FlatDtdWriter.ContentModel extends Object
Abstract strategy for rendering a DTD element's content model (the part between the parentheses in an <!ELEMENT> declaration).
Since:
Jun 13, 2003
Version:
$Revision$ $Date$
Author:
Manuel Laflamme, Last changed by: $Author$
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • write

      public abstract void write(PrintWriter writer, String tableName, int tableIndex, int tableCount)
      Writes the given table's content-model declaration.
      Parameters:
      writer - the writer to write to.
      tableName - the table name.
      tableIndex - the index of the table among tableCount, used to decide separators.
      tableCount - the total number of tables being written.