Package com.vladsch.flexmark.util.html
Interface HtmlAppendable
-
- All Superinterfaces:
java.lang.Appendable
,java.lang.Iterable<LineInfo>
,LineAppendable
- All Known Implementing Classes:
HtmlAppendableBase
,HtmlBuilder
,HtmlWriter
public interface HtmlAppendable extends LineAppendable
Used to help with HTML output generation and formatting of HTML
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.vladsch.flexmark.util.sequence.LineAppendable
LineAppendable.Options
-
-
Field Summary
-
Fields inherited from interface com.vladsch.flexmark.util.sequence.LineAppendable
ALLOW_LEADING_EOL, ALLOW_LEADING_WHITESPACE, COLLAPSE_WHITESPACE, CONVERT_TABS, F_COLLAPSE_WHITESPACE, F_CONVERT_TABS, F_FORMAT_ALL, F_PASS_THROUGH, F_PREFIX_PRE_FORMATTED, F_TRIM_LEADING_EOL, F_TRIM_LEADING_WHITESPACE, F_TRIM_TRAILING_WHITESPACE, F_WHITESPACE_REMOVAL, FORMAT_ALL, O_COLLAPSE_WHITESPACE, O_CONVERT_TABS, O_FORMAT_ALL, O_PASS_THROUGH, O_PREFIX_PRE_FORMATTED, O_TRIM_LEADING_EOL, O_TRIM_LEADING_WHITESPACE, O_TRIM_TRAILING_WHITESPACE, PASS_THROUGH, PREFIX_PRE_FORMATTED, TRIM_LEADING_WHITESPACE, TRIM_TRAILING_WHITESPACE
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description HtmlAppendable
attr(Attribute... attribute)
HtmlAppendable
attr(Attributes attributes)
HtmlAppendable
attr(java.lang.CharSequence attrName, java.lang.CharSequence value)
HtmlAppendable
closePre()
HtmlAppendable
closeTag(java.lang.CharSequence tagName)
Attributes
getAttributes()
java.util.Stack<java.lang.String>
getOpenTags()
java.util.List<java.lang.String>
getOpenTagsAfterLast(java.lang.CharSequence latestTag)
boolean
inPre()
HtmlAppendable
openPre()
HtmlAppendable
raw(java.lang.CharSequence s)
HtmlAppendable
raw(java.lang.CharSequence s, int count)
HtmlAppendable
rawIndentedPre(java.lang.CharSequence s)
HtmlAppendable
rawPre(java.lang.CharSequence s)
HtmlAppendable
setAttributes(Attributes attributes)
HtmlAppendable
tag(java.lang.CharSequence tagName)
HtmlAppendable
tag(java.lang.CharSequence tagName, boolean voidElement)
HtmlAppendable
tag(java.lang.CharSequence tagName, boolean withIndent, boolean withLine, java.lang.Runnable runnable)
HtmlAppendable
tag(java.lang.CharSequence tagName, java.lang.Runnable runnable)
HtmlAppendable
tagIndent(java.lang.CharSequence tagName, java.lang.Runnable runnable)
HtmlAppendable
tagLine(java.lang.CharSequence tagName)
HtmlAppendable
tagLine(java.lang.CharSequence tagName, boolean voidElement)
HtmlAppendable
tagLine(java.lang.CharSequence tagName, java.lang.Runnable runnable)
HtmlAppendable
tagLineIndent(java.lang.CharSequence tagName, java.lang.Runnable runnable)
HtmlAppendable
tagVoid(java.lang.CharSequence tagName)
HtmlAppendable
tagVoidLine(java.lang.CharSequence tagName)
HtmlAppendable
text(java.lang.CharSequence s)
HtmlAppendable
withAttr()
HtmlAppendable
withCondIndent()
HtmlAppendable
withCondLineOnChildText()
-
Methods inherited from interface com.vladsch.flexmark.util.sequence.LineAppendable
addIndentOnFirstEOL, addOptions, addPrefix, addPrefix, append, append, append, append, append, append, append, appendAll, appendTo, appendTo, appendTo, appendTo, appendTo, appendToSilently, appendToSilently, appendToSilently, appendToSilently, blankLine, blankLine, blankLineIf, changeOptions, clearLineOnFirstText, closePreFormatted, column, copyAppendable, copyAppendable, copyAppendable, copyAppendable, copyAppendable, endsWithEOL, get, getAfterEolPrefixDelta, getBeforeEolPrefix, getBuilder, getEmptyAppendable, getIndentPrefix, getLine, getLineContent, getLineCount, getLineCountWithPending, getLineInfo, getLinePrefix, getLines, getLines, getLines, getLines, getLines, getLinesInfo, getLinesInfo, getLinesInfo, getOptions, getOptionSet, getPendingEOL, getPendingSpace, getPrefix, getTrailingBlankLines, getTrailingBlankLines, indent, insertLine, isEmpty, isNotEmpty, isPendingSpace, isPreFormatted, iterator, line, lineIf, lineOnFirstText, lineWithTrailingSpaces, noPreserveSpaces, noTrimLeading, offset, offsetWithPending, openPreFormatted, popOptions, popPrefix, popPrefix, preserveSpaces, pushOptions, pushPrefix, removeExtraBlankLines, removeExtraBlankLines, removeIndentOnFirstEOL, removeLines, removeOptions, setIndentPrefix, setLine, setLineOnFirstText, setOptions, setOptions, setOptions, setPrefix, setPrefix, setPrefixLength, toSequence, toSequence, toSequence, toSequence, toSequence, toString, toString, toString, toString, toString, trimLeading, unIndent, unIndentNoEol
-
-
-
-
Method Detail
-
getAttributes
@Nullable Attributes getAttributes()
-
setAttributes
@NotNull HtmlAppendable setAttributes(@NotNull Attributes attributes)
-
inPre
boolean inPre()
-
openPre
@NotNull HtmlAppendable openPre()
-
closePre
@NotNull HtmlAppendable closePre()
-
raw
@NotNull HtmlAppendable raw(@NotNull java.lang.CharSequence s)
-
raw
@NotNull HtmlAppendable raw(@NotNull java.lang.CharSequence s, int count)
-
rawPre
@NotNull HtmlAppendable rawPre(@NotNull java.lang.CharSequence s)
-
rawIndentedPre
@NotNull HtmlAppendable rawIndentedPre(@NotNull java.lang.CharSequence s)
-
text
@NotNull HtmlAppendable text(@NotNull java.lang.CharSequence s)
-
attr
@NotNull HtmlAppendable attr(@NotNull java.lang.CharSequence attrName, @NotNull java.lang.CharSequence value)
-
attr
@NotNull HtmlAppendable attr(@NotNull Attribute... attribute)
-
attr
@NotNull HtmlAppendable attr(@NotNull Attributes attributes)
-
withAttr
@NotNull HtmlAppendable withAttr()
-
getOpenTags
@NotNull java.util.Stack<java.lang.String> getOpenTags()
-
getOpenTagsAfterLast
@NotNull java.util.List<java.lang.String> getOpenTagsAfterLast(@NotNull java.lang.CharSequence latestTag)
-
withCondLineOnChildText
@NotNull HtmlAppendable withCondLineOnChildText()
-
withCondIndent
@NotNull HtmlAppendable withCondIndent()
-
tagVoid
@NotNull HtmlAppendable tagVoid(@NotNull java.lang.CharSequence tagName)
-
tag
@NotNull HtmlAppendable tag(@NotNull java.lang.CharSequence tagName)
-
tag
@NotNull HtmlAppendable tag(@NotNull java.lang.CharSequence tagName, @NotNull java.lang.Runnable runnable)
-
tag
@NotNull HtmlAppendable tag(@NotNull java.lang.CharSequence tagName, boolean voidElement)
-
tag
@NotNull HtmlAppendable tag(@NotNull java.lang.CharSequence tagName, boolean withIndent, boolean withLine, @NotNull java.lang.Runnable runnable)
-
tagVoidLine
@NotNull HtmlAppendable tagVoidLine(@NotNull java.lang.CharSequence tagName)
-
tagLine
@NotNull HtmlAppendable tagLine(@NotNull java.lang.CharSequence tagName)
-
tagLine
@NotNull HtmlAppendable tagLine(@NotNull java.lang.CharSequence tagName, boolean voidElement)
-
tagLine
@NotNull HtmlAppendable tagLine(@NotNull java.lang.CharSequence tagName, @NotNull java.lang.Runnable runnable)
-
tagIndent
@NotNull HtmlAppendable tagIndent(@NotNull java.lang.CharSequence tagName, @NotNull java.lang.Runnable runnable)
-
tagLineIndent
@NotNull HtmlAppendable tagLineIndent(@NotNull java.lang.CharSequence tagName, @NotNull java.lang.Runnable runnable)
-
closeTag
@NotNull HtmlAppendable closeTag(@NotNull java.lang.CharSequence tagName)
-
-