public interface ModelConverterContext
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() |
com.fasterxml.jackson.annotation.JsonView |
getJsonView() |
Model |
resolve(Type type) |
Property |
resolveProperty(Type type,
Annotation[] annotations) |
void |
setJsonView(com.fasterxml.jackson.annotation.JsonView view) |
void defineModel(String name, Model model)
name
- the name of the modelmodel
- the Modelvoid defineModel(String name, Model model, Type type, String prevName)
name
- the name of the modelmodel
- the Modeltype
- the TypeprevName
- the (optional) previous nameProperty resolveProperty(Type type, Annotation[] annotations)
type
- the property ClassModel resolve(Type type)
type
- The Model ClassIterator<ModelConverter> getConverters()
com.fasterxml.jackson.annotation.JsonView getJsonView()
void setJsonView(com.fasterxml.jackson.annotation.JsonView view)
view
- A nullable JsonView annotation, which is normally added to the annotated method
to filter the response.Copyright © 2019. All Rights Reserved.