Class StdSubtypeResolver
- java.lang.Object
-
- org.codehaus.jackson.map.jsontype.SubtypeResolver
-
- org.codehaus.jackson.map.jsontype.impl.StdSubtypeResolver
-
public class StdSubtypeResolver extends SubtypeResolver
- Since:
- 1.5
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.LinkedHashSet<NamedType>
_registeredSubtypes
-
Constructor Summary
Constructors Constructor Description StdSubtypeResolver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
_collectAndResolve(AnnotatedClass annotatedType, NamedType namedType, MapperConfig<?> config, AnnotationIntrospector ai, java.util.HashMap<NamedType,NamedType> collectedSubtypes)
Method called to find subtypes for a specific type (class)java.util.Collection<NamedType>
collectAndResolveSubtypes(AnnotatedClass type, MapperConfig<?> config, AnnotationIntrospector ai)
Method for finding out all reachable subtypes for given type.java.util.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)void
registerSubtypes(java.lang.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).
-
-
-
Field Detail
-
_registeredSubtypes
protected java.util.LinkedHashSet<NamedType> _registeredSubtypes
-
-
Method Detail
-
registerSubtypes
public void registerSubtypes(NamedType... types)
Description copied from class:SubtypeResolver
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).- Specified by:
registerSubtypes
in classSubtypeResolver
-
registerSubtypes
public void registerSubtypes(java.lang.Class<?>... classes)
- Specified by:
registerSubtypes
in classSubtypeResolver
-
collectAndResolveSubtypes
public java.util.Collection<NamedType> collectAndResolveSubtypes(AnnotatedMember property, MapperConfig<?> config, AnnotationIntrospector ai)
Description copied from class:SubtypeResolver
Method for finding out all reachable subtypes for a property specified by given element (method or field)- Specified by:
collectAndResolveSubtypes
in classSubtypeResolver
- Parameters:
property
- Base member to use for type resolution: either annotated type (class), or property (field, getter/setter)
-
collectAndResolveSubtypes
public java.util.Collection<NamedType> collectAndResolveSubtypes(AnnotatedClass type, MapperConfig<?> config, AnnotationIntrospector ai)
Description copied from class:SubtypeResolver
Method for finding out all reachable subtypes for given type.- Specified by:
collectAndResolveSubtypes
in classSubtypeResolver
-
_collectAndResolve
protected void _collectAndResolve(AnnotatedClass annotatedType, NamedType namedType, MapperConfig<?> config, AnnotationIntrospector ai, java.util.HashMap<NamedType,NamedType> collectedSubtypes)
Method called to find subtypes for a specific type (class)
-
-