JsonSubTypes.Type
Date: 2016-12-03

com.fasterxml.jackson.annotation

## Annotation Type JsonSubTypes.Type

-     public static @interface JsonSubTypes.Type

  Definition of a subtype, along with optional name. If name is missing, class of the type will be checked for `JsonTypeName` annotation; and if that is also missing or empty, a default name will be constructed by type id mechanism. Default name is usually based on class name.

- - ### Required Element Summary

    Required Elements
    Modifier and Type | Required Element and Description
    --- | ---
    `java.lang.Class<?>` | `value` Class of the subtype

  - ### Optional Element Summary

    Optional Elements
    Modifier and Type | Optional Element and Description
    --- | ---
    `java.lang.String` | `name` Logical type name used as the type identifier for the class

- - ### Element Detail

    - #### value

          public abstract java.lang.Class<?> value

      Class of the subtype

    - #### name

          public abstract java.lang.String name

      Logical type name used as the type identifier for the class
      Default:
        ""