@Documented @AnnotationFormat(value=POJOAnnotationFormatter.class) @Retention(value=RUNTIME) @Target(value={PARAMETER,ANNOTATION_TYPE}) public @interface POJOFormat
Modifier and Type | Optional Element and Description |
---|---|
POJOFormat.BracketsEnum |
brackets
Specify the opening/closing brackets pair to set POJO string representation apart of its parent (step) string representation.
|
java.lang.String[] |
excludeFields
Specifies which fields should be excluded in the report.
|
NamedFormat[] |
fieldFormats
Specify an array of
NamedFormat to use when formatting POJOs
fields. |
java.lang.Class<? extends java.lang.annotation.Annotation> |
fieldFormatsAnnotation
Specify a custom
NamedFormats annotation |
java.lang.String |
fieldSeparator
Specify a field separator
|
java.lang.String[] |
includeFields
Specifies which fields should be included in the report.
|
boolean |
includeNullColumns
Whether or not columns with only
null values are shown or not. |
boolean |
prefixWithFieldName
When set to
true , each formatted field value is prefixed by its field name |
public abstract java.lang.String[] excludeFields
If includeFields()
is set, then this attribute has no effect
public abstract java.lang.String[] includeFields
public abstract boolean includeNullColumns
null
values are shown or not.
Default is to not show them.public abstract boolean prefixWithFieldName
true
, each formatted field value is prefixed by its field namepublic abstract java.lang.String fieldSeparator
public abstract POJOFormat.BracketsEnum brackets
Default brackets pair is POJOFormat.BracketsEnum.SQUARE
.
When no brackets is needed, consider specify POJOFormat.BracketsEnum.NONE
public abstract java.lang.Class<? extends java.lang.annotation.Annotation> fieldFormatsAnnotation
NamedFormats
annotation
The NamedFormat
defined in this set will be used when formatting
POJOs fields.
public abstract NamedFormat[] fieldFormats
NamedFormat
to use when formatting POJOs
fields.
When a NamedFormat.name()
matches a field name, field value is
formatted using this NamedFormat
.
Note: when set, has precedence over fieldFormatsAnnotation()