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 |
---|---|
java.lang.Class<?> |
value
Class of the subtype
|
Modifier and Type | Optional Element and Description |
---|---|
java.lang.String |
name
Logical type name used as the type identifier for the class, if defined; empty
String means "not defined".
|
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.
|
public abstract java.lang.String name
names()
is defined as non-empty.Copyright © 2010 - 2023 Adobe. All Rights Reserved