Class SubtypeResolver
java.lang.Object
org.codehaus.jackson.map.jsontype.SubtypeResolver
- Direct Known Subclasses:
StdSubtypeResolver
Helper object used for handling registration on resolving of supertypes
to subtypes.
- Since:
- 1.5
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract Collection
<NamedType> collectAndResolveSubtypes
(AnnotatedClass basetype, MapperConfig<?> config, AnnotationIntrospector ai) Method for finding out all reachable subtypes for given type.abstract Collection
<NamedType> collectAndResolveSubtypes
(AnnotatedMember property, MapperConfig<?> config, AnnotationIntrospector ai) Method for finding out all reachable subtypes for a property specified by given element (method or field)abstract void
registerSubtypes
(Class<?>... classes) abstract 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).
-
Constructor Details
-
SubtypeResolver
public SubtypeResolver()
-
-
Method Details
-
registerSubtypes
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). -
registerSubtypes
-
collectAndResolveSubtypes
public abstract Collection<NamedType> collectAndResolveSubtypes(AnnotatedMember property, MapperConfig<?> config, AnnotationIntrospector ai) Method for finding out all reachable subtypes for a property specified by given element (method or field) -
collectAndResolveSubtypes
public abstract Collection<NamedType> collectAndResolveSubtypes(AnnotatedClass basetype, MapperConfig<?> config, AnnotationIntrospector ai) Method for finding out all reachable subtypes for given type.
-