public class HtmlDataModelRenderer extends java.lang.Object implements DataModelRenderer
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CONTENT_FOLDER_NAME |
Constructor and Description |
---|
HtmlDataModelRenderer() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
escapeHtmlEntities(java.lang.String input) |
int |
getMaxDepth() |
java.lang.String |
getOutputFolder() |
java.lang.String |
outputFolderOf(DataModel dataModel) |
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) |
void |
setOverviewHtml(java.lang.String overviewHtml) |
static java.lang.String |
toFileName(java.lang.String tableName)
Gets name of the file containing the HTML render of a given table.
|
static java.lang.String |
toFileName(Table table)
Gets name of the file containing the HTML render of a given table.
|
public static final java.lang.String CONTENT_FOLDER_NAME
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 java.lang.String outputFolderOf(DataModel dataModel)
public static java.lang.String toFileName(java.lang.String tableName)
tableName
- the tablepublic static java.lang.String toFileName(Table table)
table
- the tablepublic void setOverviewHtml(java.lang.String overviewHtml)
public static java.lang.String escapeHtmlEntities(java.lang.String input)