@PublicEvolving public abstract class Formatter extends Object
Constructor and Description |
---|
Formatter() |
Modifier and Type | Method and 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() |
public String format(Description description)
description
- description to be formattedpublic void format(LinkElement element)
public void format(TextElement element)
public void format(LineBreakElement element)
public void format(ListElement element)
protected abstract void formatLink(StringBuilder state, String link, String description)
protected abstract void formatLineBreak(StringBuilder state)
protected abstract void formatText(StringBuilder state, String format, String[] elements, EnumSet<TextElement.TextStyle> styles)
protected abstract void formatList(StringBuilder state, String[] entries)
protected abstract Formatter newInstance()
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.