public interface ModelConverterContext
| Modifier and Type | Method and Description |
|---|---|
void |
defineModel(String name,
Schema model)
needs to be called whenever a Model is defined which can be referenced from another
Model or Property
|
void |
defineModel(String name,
Schema model,
AnnotatedType type,
String prevName)
needs to be called whenever a Schema is defined which can be referenced from another
Model or Property
|
void |
defineModel(String name,
Schema model,
Type type,
String prevName)
needs to be called whenever a Schema is defined which can be referenced from another
Model or Property
|
Iterator<ModelConverter> |
getConverters() |
Map<String,Schema> |
getDefinedModels() |
Schema |
resolve(AnnotatedType type) |
void defineModel(String name, Schema model)
name - the name of the modelmodel - the Modelvoid defineModel(String name, Schema model, AnnotatedType type, String prevName)
name - the name of the modelmodel - the Modeltype - the AnnotatedTypeprevName - the (optional) previous namevoid defineModel(String name, Schema model, Type type, String prevName)
name - the name of the modelmodel - the Modeltype - the TypeprevName - the (optional) previous nameSchema resolve(AnnotatedType type)
type - The SchemaIterator<ModelConverter> getConverters()
Copyright © 2022. All rights reserved.