Package io.swagger.v3.core.jackson
Class AbstractModelConverter
- java.lang.Object
-
- io.swagger.v3.core.jackson.AbstractModelConverter
-
- All Implemented Interfaces:
ModelConverter
- Direct Known Subclasses:
ModelResolver
public abstract class AbstractModelConverter extends Object implements ModelConverter
-
-
Field Summary
Fields Modifier and Type Field Description protected com.fasterxml.jackson.databind.AnnotationIntrospector_intrprotected com.fasterxml.jackson.databind.ObjectMapper_mapperprotected Map<com.fasterxml.jackson.databind.JavaType,String>_resolvedTypeNamesMinor optimization: no need to keep on resolving same types over and over again.protected TypeNameResolver_typeNameResolver
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractModelConverter(com.fasterxml.jackson.databind.ObjectMapper mapper)protectedAbstractModelConverter(com.fasterxml.jackson.databind.ObjectMapper mapper, TypeNameResolver typeNameResolver)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)Schemaresolve(AnnotatedType type, ModelConverterContext context, Iterator<ModelConverter> chain)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.swagger.v3.core.converter.ModelConverter
isOpenapi31
-
-
-
-
Field Detail
-
_mapper
protected final com.fasterxml.jackson.databind.ObjectMapper _mapper
-
_intr
protected final com.fasterxml.jackson.databind.AnnotationIntrospector _intr
-
_typeNameResolver
protected final TypeNameResolver _typeNameResolver
-
-
Constructor Detail
-
AbstractModelConverter
protected AbstractModelConverter(com.fasterxml.jackson.databind.ObjectMapper mapper)
-
AbstractModelConverter
protected AbstractModelConverter(com.fasterxml.jackson.databind.ObjectMapper mapper, TypeNameResolver typeNameResolver)
-
-
Method Detail
-
resolve
public Schema resolve(AnnotatedType type, ModelConverterContext context, Iterator<ModelConverter> chain)
- Specified by:
resolvein interfaceModelConverterchain- the chain of model converters to try if this implementation cannot process- Returns:
- null if this ModelConverter cannot convert the given Type
-
_typeName
protected String _typeName(com.fasterxml.jackson.databind.JavaType type)
-
_typeName
protected String _typeName(com.fasterxml.jackson.databind.JavaType type, com.fasterxml.jackson.databind.BeanDescription beanDesc)
-
_findTypeName
protected String _findTypeName(com.fasterxml.jackson.databind.JavaType type, com.fasterxml.jackson.databind.BeanDescription beanDesc)
-
_typeQName
protected String _typeQName(com.fasterxml.jackson.databind.JavaType type)
-
_subTypeName
protected String _subTypeName(com.fasterxml.jackson.databind.jsontype.NamedType type)
-
_isSetType
protected boolean _isSetType(Class<?> cls)
-
-