Annotation Type JacksonSubType
-
@Target(TYPE) @Retention(RUNTIME) public @interface JacksonSubTypeDefinition of a subtype, along with optional name(s). If no name is defined (empty Strings are ignored), class of the type will be checked forJsonTypeNameannotation; 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.It's the same as
JsonSubTypes.Type.- Since:
- 2.21 / 3.1
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description java.lang.String[]names(optional) Logical type names used as the type identifier for the class: used if more than one type name should be associated with the same type.java.lang.StringvalueLogical type name used as the type identifier for the class, if defined; empty String means "not defined".
-
-
-
Element Detail
-
value
java.lang.String value
Logical type name used as the type identifier for the class, if defined; empty String means "not defined". Used unlessnames()is defined as non-empty.- Returns:
- subtype name
- Default:
- ""
-
-