public class HtmlDataModelRenderer extends Object implements DataModelRenderer
| Constructor and Description |
|---|
HtmlDataModelRenderer() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
excludeFromClosure(Table table) |
protected boolean |
excludeFromNeighborhood(Table table) |
int |
getMaxDepth() |
String |
getOutputFolder() |
void |
render(DataModel dataModel,
List<String> restrictionFiles)
Generates a human readable HTML-representation of the data-model.
|
String |
renderDomainModel(DomainModel domainModel)
Generates a human readable HTML-representation of the domain-model.
|
void |
setMaxDepth(int maxDepth) |
void |
setOutputFolder(String outputFolder) |
static String |
toFileName(Table table)
Gets name of the file containing the HTML render of a given table.
|
static void |
writeFile(File file,
String content)
Writes content into a file.
|
public String getOutputFolder()
public void setOutputFolder(String outputFolder)
outputFolder - the outputDir to setpublic int getMaxDepth()
public void setMaxDepth(int maxDepth)
maxDepth - the maxDepth to setpublic void render(DataModel dataModel, List<String> restrictionFiles)
render in interface DataModelRendererdataModel - the data-modelprotected boolean excludeFromClosure(Table table)
protected boolean excludeFromNeighborhood(Table table)
public String renderDomainModel(DomainModel domainModel) throws FileNotFoundException, IOException
domainModel - the domain modelFileNotFoundExceptionIOExceptionpublic static String toFileName(Table table)
table - the tablepublic static void writeFile(File file, String content) throws IOException
content - the contentfile - the fileIOException