public abstract class AbstractModelConverter extends java.lang.Object implements ModelConverter
Modifier and Type | Field and Description |
---|---|
protected com.fasterxml.jackson.databind.AnnotationIntrospector |
_intr |
protected com.fasterxml.jackson.databind.ObjectMapper |
_mapper |
protected java.util.Map<com.fasterxml.jackson.databind.JavaType,java.lang.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) |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
_description(com.fasterxml.jackson.databind.introspect.Annotated ann) |
protected java.lang.String |
_findDefaultValue(com.fasterxml.jackson.databind.introspect.Annotated a) |
protected java.lang.String |
_findExampleValue(com.fasterxml.jackson.databind.introspect.Annotated a) |
protected java.lang.Boolean |
_findReadOnly(com.fasterxml.jackson.databind.introspect.Annotated a) |
protected java.lang.String |
_findTypeName(com.fasterxml.jackson.databind.JavaType type,
com.fasterxml.jackson.databind.BeanDescription beanDesc) |
protected boolean |
_isSetType(java.lang.Class<?> cls) |
protected java.lang.String |
_subTypeName(com.fasterxml.jackson.databind.jsontype.NamedType type) |
protected java.lang.String |
_typeName(com.fasterxml.jackson.databind.JavaType type) |
protected java.lang.String |
_typeName(com.fasterxml.jackson.databind.JavaType type,
com.fasterxml.jackson.databind.BeanDescription beanDesc) |
protected java.lang.String |
_typeQName(com.fasterxml.jackson.databind.JavaType type) |
protected static java.util.Comparator<Property> |
getPropertyComparator() |
Model |
resolve(java.lang.reflect.Type type,
ModelConverterContext context,
java.util.Iterator<ModelConverter> chain) |
Property |
resolveProperty(java.lang.reflect.Type type,
ModelConverterContext context,
java.lang.annotation.Annotation[] annotations,
java.util.Iterator<ModelConverter> chain) |
protected final com.fasterxml.jackson.databind.ObjectMapper _mapper
protected final com.fasterxml.jackson.databind.AnnotationIntrospector _intr
protected final TypeNameResolver _typeNameResolver
protected java.util.Map<com.fasterxml.jackson.databind.JavaType,java.lang.String> _resolvedTypeNames
protected AbstractModelConverter(com.fasterxml.jackson.databind.ObjectMapper mapper)
protected static java.util.Comparator<Property> getPropertyComparator()
public Property resolveProperty(java.lang.reflect.Type type, ModelConverterContext context, java.lang.annotation.Annotation[] annotations, java.util.Iterator<ModelConverter> chain)
resolveProperty
in interface ModelConverter
annotations
- to consider when resolving the propertychain
- the chain of model converters to try if this implementation cannot processprotected java.lang.String _description(com.fasterxml.jackson.databind.introspect.Annotated ann)
protected java.lang.String _typeName(com.fasterxml.jackson.databind.JavaType type)
protected java.lang.String _typeName(com.fasterxml.jackson.databind.JavaType type, com.fasterxml.jackson.databind.BeanDescription beanDesc)
protected java.lang.String _findTypeName(com.fasterxml.jackson.databind.JavaType type, com.fasterxml.jackson.databind.BeanDescription beanDesc)
protected java.lang.String _typeQName(com.fasterxml.jackson.databind.JavaType type)
protected java.lang.String _subTypeName(com.fasterxml.jackson.databind.jsontype.NamedType type)
protected java.lang.String _findDefaultValue(com.fasterxml.jackson.databind.introspect.Annotated a)
protected java.lang.String _findExampleValue(com.fasterxml.jackson.databind.introspect.Annotated a)
protected java.lang.Boolean _findReadOnly(com.fasterxml.jackson.databind.introspect.Annotated a)
protected boolean _isSetType(java.lang.Class<?> cls)
public Model resolve(java.lang.reflect.Type type, ModelConverterContext context, java.util.Iterator<ModelConverter> chain)
resolve
in interface ModelConverter
chain
- the chain of model converters to try if this implementation cannot processCopyright © 2018. All Rights Reserved.