Annotation Type JsonSubTypes.Type
- Enclosing class:
JsonSubTypes
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.- Since:
- 1.5 (but available to fields, methods and constructor params only since 1.8)
-
Required Element Summary
Required Elements -
Optional Element Summary
Optional Elements
-
Element Details
-
value
Class<?> valueClass of the subtype -
name
-