public abstract class AbstractMarkupDocBuilder extends java.lang.Object implements MarkupDocBuilder
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.StringBuilder |
documentBuilder |
protected org.slf4j.Logger |
logger |
protected java.lang.String |
newLine |
| Constructor and Description |
|---|
AbstractMarkupDocBuilder() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
boldTextLine(Markup markup,
java.lang.String text) |
protected void |
delimitedTextLine(Markup markup,
java.lang.String text) |
protected void |
delimitedTextLineWithoutLineBreaks(Markup markup,
java.lang.String text) |
protected void |
documentTitle(Markup markup,
java.lang.String title) |
protected void |
documentTitleWithAttributes(Markup markup,
java.lang.String title) |
protected void |
italicTextLine(Markup markup,
java.lang.String text) |
protected void |
listing(Markup markup,
java.lang.String text) |
MarkupDocBuilder |
newLine() |
protected void |
paragraph(Markup markup,
java.lang.String text) |
protected void |
preserveLineBreaks(Markup markup) |
protected void |
sectionTitleLevel1(Markup markup,
java.lang.String title) |
protected void |
sectionTitleLevel2(Markup markup,
java.lang.String title) |
protected void |
sectionTitleLevel3(Markup markup,
java.lang.String title) |
protected void |
sectionTitleLevel4(Markup markup,
java.lang.String title) |
MarkupDocBuilder |
textLine(java.lang.String text) |
java.lang.String |
toString()
Returns a string representation of the document.
|
protected void |
unorderedList(Markup markup,
java.util.List<java.lang.String> list) |
void |
writeToFile(java.lang.String directory,
java.lang.String fileNameWithExtension,
java.nio.charset.Charset charset)
Writes the content of the builder to a file and clears the builder.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitboldTextLine, crossReference, documentTitle, documentTitleWithAttributes, italicTextLine, listing, paragraph, sectionTitleLevel1, sectionTitleLevel2, sectionTitleLevel3, sectionTitleLevel4, source, tableWithHeaderRow, unorderedListprotected java.lang.StringBuilder documentBuilder
protected java.lang.String newLine
protected org.slf4j.Logger logger
protected void documentTitle(Markup markup, java.lang.String title)
protected void documentTitleWithAttributes(Markup markup, java.lang.String title)
protected void sectionTitleLevel1(Markup markup, java.lang.String title)
protected void sectionTitleLevel2(Markup markup, java.lang.String title)
protected void sectionTitleLevel3(Markup markup, java.lang.String title)
protected void sectionTitleLevel4(Markup markup, java.lang.String title)
public MarkupDocBuilder textLine(java.lang.String text)
textLine in interface MarkupDocBuilderprotected void paragraph(Markup markup, java.lang.String text)
protected void listing(Markup markup, java.lang.String text)
protected void delimitedTextLine(Markup markup, java.lang.String text)
protected void delimitedTextLineWithoutLineBreaks(Markup markup, java.lang.String text)
protected void preserveLineBreaks(Markup markup)
protected void boldTextLine(Markup markup, java.lang.String text)
protected void italicTextLine(Markup markup, java.lang.String text)
protected void unorderedList(Markup markup, java.util.List<java.lang.String> list)
public MarkupDocBuilder newLine()
newLine in interface MarkupDocBuilderpublic java.lang.String toString()
MarkupDocBuildertoString in interface MarkupDocBuildertoString in class java.lang.Objectpublic void writeToFile(java.lang.String directory,
java.lang.String fileNameWithExtension,
java.nio.charset.Charset charset)
throws java.io.IOException
MarkupDocBuilderwriteToFile in interface MarkupDocBuilderdirectory - the directory where the generated file should be storedfileNameWithExtension - the name of the filecharset - the the charset to use for encodingjava.io.IOException - if the file cannot be written