Please note that the "virtual" properties added using this annotation
do not obey any specific order, including the order defined
by com..
| Modifier and Type | Class and Description |
|---|---|
| public static @interface | JsonAppend.Attr
Definition of a single attribute-backed property. |
| public static @interface | JsonAppend.Prop
Definition of a single general virtual property. |
| Modifier and Type | Method and Description |
|---|---|
| public JsonAppend. | |
| public boolean | prepend()
Indicator used to determine whether properties defined are to be appended after (false) or prepended before (true) regular properties. |
| public JsonAppend. |
| attrs | back to summary |
|---|---|
| public JsonAppend. Set of attribute-backed properties to include when serializing a POJO. | |
| prepend | back to summary |
|---|---|
| public boolean prepend() Indicator used to determine whether properties defined are to be appended after (false) or prepended before (true) regular properties. Affects all kinds of properties defined using this annotation. | |
| props | back to summary |
|---|---|
| public JsonAppend. Set of general virtual properties to include when serializing a POJO. | |
prepend) regular properties
in specified order, although their placement may be further changed
by the usual property-ordering functionality (alphabetic sorting;
explicit ordering)
| Modifier and Type | Method and Description |
|---|---|
| public JsonInclude. | |
| public String | |
| public String | propNamespace()
Optional namespace to use; only relevant for data formats that use namespaces (like XML). |
| public boolean | required()
Metadata about property, similar to
|
| public String |
| include | back to summary |
|---|---|
| public JsonInclude. When to include attribute-property. Default value indicates that property should only be written if specified attribute has a non-null value. | |
| propName | back to summary |
|---|---|
| public String propName() Name to use for serializing value of the attribute; if not defined,
| |
| propNamespace | back to summary |
|---|---|
| public String propNamespace() Optional namespace to use; only relevant for data formats that use namespaces (like XML). | |
| required | back to summary |
|---|---|
| public boolean required() Metadata about property, similar to
| |
| value | back to summary |
|---|---|
| public 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 for | |
| Modifier and Type | Method and Description |
|---|---|
| public JsonInclude. | |
| public String | name()
Name of the property to possibly use for serializing (although implementation may choose to not use this information). |
| public String | |
| public boolean | required()
Metadata about property, similar to
|
| public Class | |
| public Class | value()
Actual implementation class (a subtype of |
| include | back to summary |
|---|---|
| public JsonInclude. When to include value of the property. Default value indicates that property should only be written if specified attribute has a non-null value. As with other properties, actual property implementation may or may not choose to use this inclusion information. | |
| name | back to summary |
|---|---|
| public String name() Name of the property to possibly use for serializing (although implementation may choose to not use this information). | |
| namespace | back to summary |
|---|---|
| public String namespace() Optional namespace to use along with | |
| required | back to summary |
|---|---|
| public boolean required() Metadata about property, similar to
| |
| type | back to summary |
|---|---|
| public Class Nominal type of the property. Passed as type information for related virtual objects, and may (or may not be) used by implementation for choosing serializer to use. | |
| value | back to summary |
|---|---|
| public Class Actual implementation class (a subtype of | |