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

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

        java.lang.String propNamespace
        Optional namespace to use; only relevant for data formats that use namespaces (like XML).
        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