public class HtmlDataModelRenderer extends java.lang.Object implements DataModelRenderer
Constructor and Description |
---|
HtmlDataModelRenderer() |
Modifier and Type | Method and Description |
---|---|
int |
getMaxDepth() |
java.lang.String |
getOutputFolder() |
void |
render(DataModel dataModel,
java.util.List<java.lang.String> restrictionFiles)
Generates a human readable HTML-representation of the data-model.
|
void |
setMaxDepth(int maxDepth) |
void |
setOutputFolder(java.lang.String outputFolder) |
static java.lang.String |
toFileName(Table table)
Gets name of the file containing the HTML render of a given table.
|
static void |
writeFile(java.io.File file,
java.lang.String content)
Writes content into a file.
|
public java.lang.String getOutputFolder()
public void setOutputFolder(java.lang.String outputFolder)
outputFolder
- the outputDir to setpublic int getMaxDepth()
public void setMaxDepth(int maxDepth)
maxDepth
- the maxDepth to setpublic void render(DataModel dataModel, java.util.List<java.lang.String> restrictionFiles)
render
in interface DataModelRenderer
dataModel
- the data-modelpublic static java.lang.String toFileName(Table table)
table
- the tablepublic static void writeFile(java.io.File file, java.lang.String content) throws java.io.IOException
content
- the contentfile
- the filejava.io.IOException