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,
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) |
public ModelConverterContextImpl(List<ModelConverter> converters)
public ModelConverterContextImpl(ModelConverter converter)
public Iterator<ModelConverter> getConverters()
getConverters in interface ModelConverterContextpublic void defineModel(String name, Schema model)
ModelConverterContextdefineModel in interface ModelConverterContextname - the name of the modelmodel - the Modelpublic void defineModel(String name, Schema model, Type type, String prevName)
ModelConverterContextdefineModel in interface ModelConverterContextname - the name of the modelmodel - the Modeltype - the TypeprevName - the (optional) previous namepublic void defineModel(String name, Schema model, AnnotatedType type, String prevName)
ModelConverterContextdefineModel in interface ModelConverterContextname - the name of the modelmodel - the Modeltype - the AnnotatedTypeprevName - the (optional) previous namepublic Map<String,Schema> getDefinedModels()
getDefinedModels in interface ModelConverterContextpublic Schema resolve(AnnotatedType type)
resolve in interface ModelConverterContexttype - The SchemaCopyright © 2022. All rights reserved.