public class ModelConverterContextImpl extends Object implements ModelConverterContext
Constructor and Description |
---|
ModelConverterContextImpl(List<ModelConverter> converters) |
ModelConverterContextImpl(ModelConverter converter) |
Modifier and Type | Method and Description |
---|---|
void |
defineModel(String name,
Model model)
needs to be called whenever a Model is defined which can be referenced from another
Model or Property
|
void |
defineModel(String name,
Model model,
Type type,
String prevName)
needs to be called whenever a Model is defined which can be referenced from another
Model or Property
|
Iterator<ModelConverter> |
getConverters() |
Map<String,Model> |
getDefinedModels() |
com.fasterxml.jackson.annotation.JsonView |
getJsonView() |
Model |
resolve(Type type) |
Property |
resolveProperty(Type type,
Annotation[] annotations) |
void |
setJsonView(com.fasterxml.jackson.annotation.JsonView jsonView) |
public ModelConverterContextImpl(List<ModelConverter> converters)
public ModelConverterContextImpl(ModelConverter converter)
public Iterator<ModelConverter> getConverters()
getConverters
in interface ModelConverterContext
public void defineModel(String name, Model model)
ModelConverterContext
defineModel
in interface ModelConverterContext
name
- the name of the modelmodel
- the Modelpublic void defineModel(String name, Model model, Type type, String prevName)
ModelConverterContext
defineModel
in interface ModelConverterContext
name
- the name of the modelmodel
- the Modeltype
- the TypeprevName
- the (optional) previous namepublic Property resolveProperty(Type type, Annotation[] annotations)
resolveProperty
in interface ModelConverterContext
type
- the property Classpublic Model resolve(Type type)
resolve
in interface ModelConverterContext
type
- The Model Classpublic com.fasterxml.jackson.annotation.JsonView getJsonView()
getJsonView
in interface ModelConverterContext
public void setJsonView(com.fasterxml.jackson.annotation.JsonView jsonView)
setJsonView
in interface ModelConverterContext
jsonView
- A nullable JsonView annotation, which is normally added to the annotated method
to filter the response.Copyright © 2019. All Rights Reserved.