Annotation Interface JsonLdAttributeOrder


@Target(TYPE) @Retention(RUNTIME) public @interface JsonLdAttributeOrder
Annotation that can be used to define ordering (possibly partial) to use when serializing object attributes.

Attributes included in annotation declaration will be serialized first (in defined order), followed by any attributes not included in the definition.

Note that this annotation expects the values to be names of the Java attributes, NOT their JSON-LD counterparts (IRIs).

  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Order in which properties of annotated object are to be handled.
  • Element Details

    • value

      String[] value
      Order in which properties of annotated object are to be handled.
      Returns:
      Array of Java attribute names in order in which they should be processed
      Default:
      {}