Annotation Interface Json.Subtype

Enclosing class:
Json

@Repeatable(Subtypes.class) @Retention(CLASS) @Target(TYPE) public static @interface Json.Subtype
Polymorphic subtype information. Contains alias and specific type bound to it.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Subtype of the annotated type.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Type alias which is used instead of a class name.
  • Element Details

    • alias

      String alias
      Type alias which is used instead of a class name. When empty (default) the simple name of the class in lowercase is used.
      Returns:
      alias value
      Default:
      ""
    • value

      Class<?> value
      Subtype of the annotated type.
      Returns:
      annotated type subtype