public interface ModelConverterContext
| Modifier and Type | Method and Description |
|---|---|
void |
defineModel(java.lang.String name,
Model model)
needs to be called whenever a Model is defined which can be referenced from another
Model or Property
|
void |
defineModel(java.lang.String name,
Model model,
java.lang.reflect.Type type,
java.lang.String prevName)
needs to be called whenever a Model is defined which can be referenced from another
Model or Property
|
java.util.Iterator<ModelConverter> |
getConverters() |
com.fasterxml.jackson.annotation.JsonView |
getJsonView() |
Model |
resolve(java.lang.reflect.Type type) |
Property |
resolveProperty(java.lang.reflect.Type type,
java.lang.annotation.Annotation[] annotations) |
void |
setJsonView(com.fasterxml.jackson.annotation.JsonView view) |
void defineModel(java.lang.String name,
Model model)
name - the name of the modelmodel - the Modelvoid defineModel(java.lang.String name,
Model model,
java.lang.reflect.Type type,
java.lang.String prevName)
name - the name of the modelmodel - the Modeltype - the TypeprevName - the (optional) previous nameProperty resolveProperty(java.lang.reflect.Type type, java.lang.annotation.Annotation[] annotations)
type - the property ClassModel resolve(java.lang.reflect.Type type)
type - The Model Classjava.util.Iterator<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 © 2021. All Rights Reserved.