Annotation Interface ClientSerializationStrategy


@Target(TYPE) @Retention(RUNTIME) public @interface ClientSerializationStrategy
Specifies the serialization strategy for a model. In the event that a model needs to be serialized with varying strategies, this can be used to hint the underlying container how it should be serialized or deserialized. In some cases, it may be necessary to override or change the behavior of the underlying serialization. This only affects the use case when used in a client context. If unspecified, the default scheme will be used.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    The name of the serialization driver to use.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Implies serialized fields follow the Apple/iTunes Style
    static final String
    Indicates the default case which is LCAMEL.
    static final String
    Implies that serialized fields use lowerCamelCase
  • Field Details

  • Element Details

    • value

      String value
      The name of the serialization driver to use.
      Returns:
      the name of the serialization driver to use.
      Default:
      "dev.getelements.elements.sdk.model.annotation.SerializationStrategy.lcamel"