JsonSubTypes.Type (Jackson-annotations 2.0.0 API)
Date: 2012-03-26

Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT

## com.fasterxml.jackson.annotation
Annotation Type JsonSubTypes.Type

    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.

Required Element Summary
`Class<?>` | `value` Class of the subtype

Optional Element Summary
`String` | `name` Logical type name used as the type identifier for the class

Element Detail

### value

    public abstract Class<?> value

  Class of the subtype

### name

    public abstract String name

  Logical type name used as the type identifier for the class

  Default:
    ""

Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT

Copyright © 2012 fasterxml.com. All Rights Reserved.