public static @interface JsonSubTypes.Type
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.Modifier and Type | Required Element and Description |
---|---|
Class<?> |
value
Class of the subtype
|
Modifier and Type | Optional Element and Description |
---|---|
String |
name
Logical type name used as the type identifier for the class, if defined; empty
String means "not defined".
|
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.
|
Copyright © 2008–2022 FasterXML. All rights reserved.