@API(status=EXPERIMENTAL, since="1.3.1") public interface SampleReportingFormat extends java.lang.Comparable<SampleReportingFormat>
Modifier and Type | Interface and Description |
---|---|
static class |
SampleReportingFormat.SampleReportingFormatFacade |
Modifier and Type | Method and Description |
---|---|
boolean |
appliesTo(java.lang.Object value) |
default int |
compareTo(SampleReportingFormat other) |
default java.util.Optional<java.lang.String> |
label(java.lang.Object value) |
static java.lang.Object |
plainLabel(java.lang.String plain)
Use in report(Object)
if you just want to report a plain label and not a String in quotes.
|
default int |
priority() |
java.lang.Object |
report(java.lang.Object value)
Transform the value into one that will be handled by default mechanism,
e.g. a Collection, a String, a Map.
|
static java.lang.Object |
reportJavaBean(java.lang.Object bean)
Use in report(Object)
if you just want to report all of an object's bean properties as
attributes.
|
@API(status=EXPERIMENTAL, since="1.3.5") static java.lang.Object reportJavaBean(java.lang.Object bean)
bean
- Java object with its properties following the bean conventionstatic java.lang.Object plainLabel(java.lang.String plain)
plain
- String to reportboolean appliesTo(java.lang.Object value)
value
- the value to formatjava.lang.Object report(java.lang.Object value)
value
- the value to formatdefault java.util.Optional<java.lang.String> label(java.lang.Object value)
value
- the value to formatdefault int priority()
@API(status=INTERNAL) default int compareTo(SampleReportingFormat other)
compareTo
in interface java.lang.Comparable<SampleReportingFormat>