- All Known Implementing Classes:
CallbackFormattingProvider
,DefaultFormattingProvider
public interface FormattingProvider
An SPI that allows for overriding certain formatting defaults.
For convenience, consider extending DefaultFormattingProvider
instead
of implementing this interface. This will prevent compilation errors in
future versions of jOOQ, when this interface might get new methods.
- Author:
- Lukas Eder
-
Method Summary
Modifier and TypeMethodDescription@NotNull ChartFormat
TheChartFormat
to use when callingFormattable.formatChart()
and related methods, defaulting toChartFormat.DEFAULT
.@NotNull CSVFormat
TheCSVFormat
to use when callingFormattable.formatCSV()
and related methods, defaulting toCSVFormat.DEFAULT
.@NotNull JSONFormat
TheJSONFormat
to use when callingFormattable.formatJSON()
and related methods on records, defaulting toJSONFormat.DEFAULT_FOR_RECORDS
.@NotNull JSONFormat
TheJSONFormat
to use when callingFormattable.formatJSON()
and related methods on results, defaulting toJSONFormat.DEFAULT_FOR_RESULTS
.static @NotNull CallbackFormattingProvider
onChartFormat
(Supplier<? extends ChartFormat> newOnChartFormat) Create anFormattingProvider
with achartFormat()
implementation.static @NotNull CallbackFormattingProvider
onCsvFormat
(Supplier<? extends CSVFormat> newOnCsvFormat) Create anFormattingProvider
with acsvFormat()
implementation.static @NotNull CallbackFormattingProvider
onJsonFormatForRecords
(Supplier<? extends JSONFormat> newOnJsonFormatForRecords) Create anFormattingProvider
with ajsonFormatForRecords()
implementation.static @NotNull CallbackFormattingProvider
onJsonFormatForResults
(Supplier<? extends JSONFormat> newOnJsonFormatForResults) Create anFormattingProvider
with ajsonFormatForResults()
implementation.static @NotNull CallbackFormattingProvider
onTxtFormat
(Supplier<? extends TXTFormat> newOnTxtFormat) Create anFormattingProvider
with atxtFormat()
implementation.static @NotNull CallbackFormattingProvider
onWidth
(ToIntFunction<? super String> newOnWidth) Create anFormattingProvider
with awidth(String)
implementation.static @NotNull CallbackFormattingProvider
onXmlFormatForRecords
(Supplier<? extends XMLFormat> newOnXmlFormatForRecords) Create anFormattingProvider
with axmlFormatForRecords()
implementation.static @NotNull CallbackFormattingProvider
onXmlFormatForResults
(Supplier<? extends XMLFormat> newOnXmlFormatForResults) Create anFormattingProvider
with axmlFormatForResults()
implementation.@NotNull TXTFormat
TheTXTFormat
to use when callingFormattable.format()
and related methods, defaulting toTXTFormat.DEFAULT
.int
The formatting display width in a monospaced font, which may diverge fromString.length()
e.g.@NotNull XMLFormat
TheXMLFormat
to use when callingFormattable.formatXML()
and related methods on records, defaulting toXMLFormat.DEFAULT_FOR_RECORDS
.@NotNull XMLFormat
TheXMLFormat
to use when callingFormattable.formatXML()
and related methods on results, defaulting toXMLFormat.DEFAULT_FOR_RESULTS
.
-
Method Details
-
txtFormat
TheTXTFormat
to use when callingFormattable.format()
and related methods, defaulting toTXTFormat.DEFAULT
. -
csvFormat
TheCSVFormat
to use when callingFormattable.formatCSV()
and related methods, defaulting toCSVFormat.DEFAULT
. -
jsonFormatForResults
TheJSONFormat
to use when callingFormattable.formatJSON()
and related methods on results, defaulting toJSONFormat.DEFAULT_FOR_RESULTS
. -
jsonFormatForRecords
TheJSONFormat
to use when callingFormattable.formatJSON()
and related methods on records, defaulting toJSONFormat.DEFAULT_FOR_RECORDS
. -
xmlFormatForResults
TheXMLFormat
to use when callingFormattable.formatXML()
and related methods on results, defaulting toXMLFormat.DEFAULT_FOR_RESULTS
. -
xmlFormatForRecords
TheXMLFormat
to use when callingFormattable.formatXML()
and related methods on records, defaulting toXMLFormat.DEFAULT_FOR_RECORDS
. -
chartFormat
TheChartFormat
to use when callingFormattable.formatChart()
and related methods, defaulting toChartFormat.DEFAULT
. -
width
The formatting display width in a monospaced font, which may diverge fromString.length()
e.g. if the string contains aCharacter.isIdeographic(int)
character. -
onTxtFormat
@NotNull static @NotNull CallbackFormattingProvider onTxtFormat(Supplier<? extends TXTFormat> newOnTxtFormat) Create anFormattingProvider
with atxtFormat()
implementation. -
onCsvFormat
@NotNull static @NotNull CallbackFormattingProvider onCsvFormat(Supplier<? extends CSVFormat> newOnCsvFormat) Create anFormattingProvider
with acsvFormat()
implementation. -
onJsonFormatForResults
@NotNull static @NotNull CallbackFormattingProvider onJsonFormatForResults(Supplier<? extends JSONFormat> newOnJsonFormatForResults) Create anFormattingProvider
with ajsonFormatForResults()
implementation. -
onJsonFormatForRecords
@NotNull static @NotNull CallbackFormattingProvider onJsonFormatForRecords(Supplier<? extends JSONFormat> newOnJsonFormatForRecords) Create anFormattingProvider
with ajsonFormatForRecords()
implementation. -
onXmlFormatForResults
@NotNull static @NotNull CallbackFormattingProvider onXmlFormatForResults(Supplier<? extends XMLFormat> newOnXmlFormatForResults) Create anFormattingProvider
with axmlFormatForResults()
implementation. -
onXmlFormatForRecords
@NotNull static @NotNull CallbackFormattingProvider onXmlFormatForRecords(Supplier<? extends XMLFormat> newOnXmlFormatForRecords) Create anFormattingProvider
with axmlFormatForRecords()
implementation. -
onChartFormat
@NotNull static @NotNull CallbackFormattingProvider onChartFormat(Supplier<? extends ChartFormat> newOnChartFormat) Create anFormattingProvider
with achartFormat()
implementation. -
onWidth
@NotNull static @NotNull CallbackFormattingProvider onWidth(ToIntFunction<? super String> newOnWidth) Create anFormattingProvider
with awidth(String)
implementation.
-