public abstract class AbstractModelConverter extends Object implements ModelConverter
Modifier and Type | Field and Description |
---|---|
protected com.fasterxml.jackson.databind.AnnotationIntrospector |
_intr |
protected com.fasterxml.jackson.databind.ObjectMapper |
_mapper |
protected Map<com.fasterxml.jackson.databind.JavaType,String> |
_resolvedTypeNames
Minor optimization: no need to keep on resolving same types over and over
again.
|
protected TypeNameResolver |
_typeNameResolver |
Modifier | Constructor and Description |
---|---|
protected |
AbstractModelConverter(com.fasterxml.jackson.databind.ObjectMapper mapper) |
protected |
AbstractModelConverter(com.fasterxml.jackson.databind.ObjectMapper mapper,
TypeNameResolver typeNameResolver) |
Modifier and Type | Method and Description |
---|---|
protected String |
_findTypeName(com.fasterxml.jackson.databind.JavaType type,
com.fasterxml.jackson.databind.BeanDescription beanDesc) |
protected boolean |
_isSetType(Class<?> cls) |
protected String |
_subTypeName(com.fasterxml.jackson.databind.jsontype.NamedType type) |
protected String |
_typeName(com.fasterxml.jackson.databind.JavaType type) |
protected String |
_typeName(com.fasterxml.jackson.databind.JavaType type,
com.fasterxml.jackson.databind.BeanDescription beanDesc) |
protected String |
_typeQName(com.fasterxml.jackson.databind.JavaType type) |
io.swagger.v3.oas.models.media.Schema |
resolve(AnnotatedType type,
ModelConverterContext context,
Iterator<ModelConverter> chain) |
protected final com.fasterxml.jackson.databind.ObjectMapper _mapper
protected final com.fasterxml.jackson.databind.AnnotationIntrospector _intr
protected final TypeNameResolver _typeNameResolver
protected AbstractModelConverter(com.fasterxml.jackson.databind.ObjectMapper mapper)
protected AbstractModelConverter(com.fasterxml.jackson.databind.ObjectMapper mapper, TypeNameResolver typeNameResolver)
public io.swagger.v3.oas.models.media.Schema resolve(AnnotatedType type, ModelConverterContext context, Iterator<ModelConverter> chain)
resolve
in interface ModelConverter
chain
- the chain of model converters to try if this implementation cannot processprotected String _typeName(com.fasterxml.jackson.databind.JavaType type)
protected String _typeName(com.fasterxml.jackson.databind.JavaType type, com.fasterxml.jackson.databind.BeanDescription beanDesc)
protected String _findTypeName(com.fasterxml.jackson.databind.JavaType type, com.fasterxml.jackson.databind.BeanDescription beanDesc)
protected String _typeQName(com.fasterxml.jackson.databind.JavaType type)
protected String _subTypeName(com.fasterxml.jackson.databind.jsontype.NamedType type)
protected boolean _isSetType(Class<?> cls)
Copyright © 2019. All rights reserved.