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 ModelConverterContextpublic void defineModel(String name, Model model)
ModelConverterContextdefineModel in interface ModelConverterContextname - the name of the modelmodel - the Modelpublic void defineModel(String name, Model model, Type type, String prevName)
ModelConverterContextdefineModel in interface ModelConverterContextname - the name of the modelmodel - the Modeltype - the TypeprevName - the (optional) previous namepublic Property resolveProperty(Type type, Annotation[] annotations)
resolveProperty in interface ModelConverterContexttype - the property Classpublic Model resolve(Type type)
resolve in interface ModelConverterContexttype - The Model Classpublic com.fasterxml.jackson.annotation.JsonView getJsonView()
getJsonView in interface ModelConverterContextpublic void setJsonView(com.fasterxml.jackson.annotation.JsonView jsonView)
setJsonView in interface ModelConverterContextjsonView - A nullable JsonView annotation, which is normally added to the annotated method
to filter the response.Copyright © 2019. All Rights Reserved.