Class Formatter
java.lang.Object
ai.dat.core.configuration.description.Formatter
- Direct Known Subclasses:
HtmlFormatter
Allows providing multiple formatters for the description.
E.g. Html formatter, Markdown formatter etc.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionformat(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 Formatter
-
Constructor Details
-
Formatter
public Formatter()
-
-
Method Details
-
format
Formats the description into a String using format specific tags.- Parameters:
description- description to be formatted- Returns:
- string representation of the description
-
format
-
format
-
format
-
format
-
formatLink
-
formatLineBreak
-
formatText
protected abstract void formatText(StringBuilder state, String format, String[] elements, EnumSet<TextElement.TextStyle> styles) -
formatList
-
newInstance
-