Package org.codehaus.jackson.annotate
Annotation Interface JsonSubTypes
Annotation used with
JsonTypeInfo
to indicate sub types of serializable
polymorphic types, and to associate logical names used within JSON content
(which is more portable than using physical Java class names).- Since:
- 1.5 (but available to fields, methods and constructor params only since 1.8)
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic @interface
Definition of a subtype, along with optional name. -
Required Element Summary
Required ElementsModifier and TypeRequired ElementDescriptionSubtypes of the annotated type (annotated class, or property value type associated with the annotated method).
-
Element Details
-
value
JsonSubTypes.Type[] valueSubtypes of the annotated type (annotated class, or property value type associated with the annotated method). These will be checked recursively so that types can be defined by only including direct subtypes.
-