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 String
format(Description description)
Formats the description into a String using format specific tags.void
format(LineBreakElement element)
void
format(LinkElement element)
void
format(ListElement element)
void
format(TextElement element)
protected abstract void
formatLineBreak(StringBuilder state)
protected abstract void
formatLink(StringBuilder state, String link, String description)
protected abstract void
formatList(StringBuilder state, String[] entries)
protected abstract void
formatText(StringBuilder state, String format, String[] elements, EnumSet<TextElement.TextStyle> styles)
protected abstract Formatter
newInstance()
-
-
-
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()
-
-