Package net.jqwik.api
Class JavaBeanReportingFormat
- java.lang.Object
-
- net.jqwik.api.JavaBeanReportingFormat
-
- All Implemented Interfaces:
java.lang.Comparable<SampleReportingFormat>
,SampleReportingFormat
@API(status=EXPERIMENTAL, since="1.3.10") public abstract class JavaBeanReportingFormat extends java.lang.Object implements SampleReportingFormat
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
JavaBeanReportingFormat.JavaBeanReportingFormatFacade
-
Constructor Summary
Constructors Constructor Description JavaBeanReportingFormat()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description boolean
appliesTo(java.lang.Object value)
protected abstract java.util.Collection<java.lang.Class<?>>
beanTypes()
protected java.util.Collection<java.lang.String>
excludeProperties()
java.util.Optional<java.lang.String>
label(java.lang.Object value)
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.protected boolean
reportNulls()
protected java.util.List<java.lang.String>
sortProperties(java.util.List<java.lang.String> properties)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.jqwik.api.SampleReportingFormat
compareTo, priority
-
-
-
-
Method Detail
-
beanTypes
protected abstract java.util.Collection<java.lang.Class<?>> beanTypes()
-
excludeProperties
protected java.util.Collection<java.lang.String> excludeProperties()
-
sortProperties
protected java.util.List<java.lang.String> sortProperties(java.util.List<java.lang.String> properties)
-
reportNulls
protected boolean reportNulls()
-
label
public java.util.Optional<java.lang.String> label(java.lang.Object value)
- Specified by:
label
in interfaceSampleReportingFormat
- Parameters:
value
- the value to format- Returns:
- an optional label prepended to a value's report
-
appliesTo
public boolean appliesTo(java.lang.Object value)
- Specified by:
appliesTo
in interfaceSampleReportingFormat
- Parameters:
value
- the value to format- Returns:
- true if this format applies
-
report
public final java.lang.Object report(java.lang.Object value)
Description copied from interface:SampleReportingFormat
Transform the value into one that will be handled by default mechanism, e.g. a Collection, a String, a Map.- Specified by:
report
in interfaceSampleReportingFormat
- Parameters:
value
- the value to format- Returns:
- the transformed value
-
-