Annotation Type JsonAppend.Attr
-
public static @interface JsonAppend.Attr
Definition of a single attribute-backed property. Attribute-backed properties will be appended after (or prepended before, as perJsonAppend.prepend()
) regular properties in specified order, although their placement may be further changed by the usual property-ordering functionality (alphabetic sorting; explicit ordering)
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description java.lang.String
value
Name of attribute of which value to serialize.
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description JsonInclude.Include
include
When to include attribute-property.java.lang.String
propName
Name to use for serializing value of the attribute; if not defined,value()
will be used instead.java.lang.String
propNamespace
Optional namespace to use; only relevant for data formats that use namespaces (like XML).boolean
required
Metadata about property, similar toJsonProperty.required()
.
-
-
-
Element Detail
-
value
java.lang.String value
Name of attribute of which value to serialize. Is also used as the name of external property to write, unless overridden by assigning a value forpropName()
.
-
-
-
propName
java.lang.String propName
Name to use for serializing value of the attribute; if not defined,value()
will be used instead.- Default:
- ""
-
-
-
include
JsonInclude.Include include
When to include attribute-property. Default value indicates that property should only be written if specified attribute has a non-null value.- Default:
- com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL
-
-
-
required
boolean required
Metadata about property, similar toJsonProperty.required()
.- Default:
- false
-
-