Enclosing class:
JsonAppend

public static @interface JsonAppend.Attr
Definition of a single attribute-backed property. Attribute-backed properties will be appended after (or prepended before, as per JsonAppend.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
    Name of attribute of which value to serialize.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    When to include attribute-property.
    Name to use for serializing value of the attribute; if not defined, value() will be used instead.
    Optional namespace to use; only relevant for data formats that use namespaces (like XML).
    boolean
    Metadata about property, similar to JsonProperty.required().
  • Element Details

    • value

      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 propName().
    • propName

      String propName
      Name to use for serializing value of the attribute; if not defined, value() will be used instead.
      Default:
      ""
    • propNamespace

      String propNamespace
      Optional namespace to use; only relevant for data formats that use namespaces (like XML).
      Default:
      ""
    • include

      When to include attribute-property. Default value indicates that property should only be written if specified attribute has a non-null value.
      Default:
      NON_NULL
    • required

      boolean required
      Metadata about property, similar to JsonProperty.required().
      Default:
      false