Annotation Type JsonPolymorphicTypeMap.TypeDef

Enclosing class:
JsonPolymorphicTypeMap

@Target(FIELD) @Retention(RUNTIME) public static @interface JsonPolymorphicTypeMap.TypeDef
Declares a mapping between a key value and a referenced class.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    The string value to represent a specific type.
    The Class that is referenced by this key value.
  • Element Details

    • key

      String key
      The string value to represent a specific type.
    • ref

      Class<?> ref
      The Class that is referenced by this key value.