|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.fasterxml.jackson.databind.jsontype.SubtypeResolver
com.fasterxml.jackson.databind.jsontype.impl.StdSubtypeResolver
public class StdSubtypeResolver
Standard SubtypeResolver implementation.
| Field Summary | |
|---|---|
protected LinkedHashSet<NamedType> |
_registeredSubtypes
|
| Constructor Summary | |
|---|---|
StdSubtypeResolver()
|
|
| Method Summary | |
|---|---|
protected void |
_collectAndResolve(AnnotatedClass annotatedType,
NamedType namedType,
MapperConfig<?> config,
AnnotationIntrospector ai,
HashMap<NamedType,NamedType> collectedSubtypes)
Method called to find subtypes for a specific type (class) |
Collection<NamedType> |
collectAndResolveSubtypes(AnnotatedClass type,
MapperConfig<?> config,
AnnotationIntrospector ai)
Method for finding out all reachable subtypes for given type. |
Collection<NamedType> |
collectAndResolveSubtypes(AnnotatedMember property,
MapperConfig<?> config,
AnnotationIntrospector ai)
Deprecated. Since 2.1 |
Collection<NamedType> |
collectAndResolveSubtypes(AnnotatedMember property,
MapperConfig<?> config,
AnnotationIntrospector ai,
JavaType baseType)
Method for finding out all reachable subtypes for a property specified by given element (method or field) |
void |
registerSubtypes(Class<?>... classes)
|
void |
registerSubtypes(NamedType... types)
Method for registering specified subtypes (possibly including type names); for type entries without name, non-qualified class name as used as name (unless overridden by annotation). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected LinkedHashSet<NamedType> _registeredSubtypes
| Constructor Detail |
|---|
public StdSubtypeResolver()
| Method Detail |
|---|
public void registerSubtypes(NamedType... types)
SubtypeResolver
registerSubtypes in class SubtypeResolverpublic void registerSubtypes(Class<?>... classes)
registerSubtypes in class SubtypeResolver
@Deprecated
public Collection<NamedType> collectAndResolveSubtypes(AnnotatedMember property,
MapperConfig<?> config,
AnnotationIntrospector ai)
collectAndResolveSubtypes in class SubtypeResolver
public Collection<NamedType> collectAndResolveSubtypes(AnnotatedMember property,
MapperConfig<?> config,
AnnotationIntrospector ai,
JavaType baseType)
SubtypeResolver
collectAndResolveSubtypes in class SubtypeResolverproperty - Base member to use for type resolution: either annotated type (class),
or property (field, getter/setter)baseType - Effective property base type to use; may differ from
actual type of property; for structured types it is content (value) type and NOT
structured type.
public Collection<NamedType> collectAndResolveSubtypes(AnnotatedClass type,
MapperConfig<?> config,
AnnotationIntrospector ai)
SubtypeResolver
collectAndResolveSubtypes in class SubtypeResolver
protected void _collectAndResolve(AnnotatedClass annotatedType,
NamedType namedType,
MapperConfig<?> config,
AnnotationIntrospector ai,
HashMap<NamedType,NamedType> collectedSubtypes)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||