Class Formatter
- java.lang.Object
-
- org.apache.flink.configuration.description.Formatter
-
- Direct Known Subclasses:
HtmlFormatter
@PublicEvolving public abstract class Formatter extends Object
Allows providing multiple formatters for the description. E.g. Html formatter, Markdown formatter etc.
-
-
Constructor Summary
Constructors Constructor Description Formatter()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Stringformat(Description description)Formats the description into a String using format specific tags.voidformat(LineBreakElement element)voidformat(LinkElement element)voidformat(ListElement element)voidformat(TextElement element)protected abstract voidformatLineBreak(StringBuilder state)protected abstract voidformatLink(StringBuilder state, String link, String description)protected abstract voidformatList(StringBuilder state, String[] entries)protected abstract voidformatText(StringBuilder state, String format, String[] elements, EnumSet<TextElement.TextStyle> styles)protected abstract FormatternewInstance()
-
-
-
Method Detail
-
format
public String format(Description description)
Formats the description into a String using format specific tags.- Parameters:
description- description to be formatted- Returns:
- string representation of the description
-
format
public void format(LinkElement element)
-
format
public void format(TextElement element)
-
format
public void format(LineBreakElement element)
-
format
public void format(ListElement element)
-
formatLink
protected abstract void formatLink(StringBuilder state, String link, String description)
-
formatLineBreak
protected abstract void formatLineBreak(StringBuilder state)
-
formatText
protected abstract void formatText(StringBuilder state, String format, String[] elements, EnumSet<TextElement.TextStyle> styles)
-
formatList
protected abstract void formatList(StringBuilder state, String[] entries)
-
newInstance
protected abstract Formatter newInstance()
-
-