public class ModelConverterContextImpl extends java.lang.Object implements ModelConverterContext
Constructor and Description |
---|
ModelConverterContextImpl(java.util.List<ModelConverter> converters) |
ModelConverterContextImpl(ModelConverter converter) |
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() |
java.util.Map<java.lang.String,Model> |
getDefinedModels() |
Model |
resolve(java.lang.reflect.Type type) |
Property |
resolveProperty(java.lang.reflect.Type type,
java.lang.annotation.Annotation[] annotations) |
public ModelConverterContextImpl(java.util.List<ModelConverter> converters)
public ModelConverterContextImpl(ModelConverter converter)
public java.util.Iterator<ModelConverter> getConverters()
getConverters
in interface ModelConverterContext
public void defineModel(java.lang.String name, Model model)
ModelConverterContext
defineModel
in interface ModelConverterContext
name
- the name of the modelmodel
- the Modelpublic void defineModel(java.lang.String name, Model model, java.lang.reflect.Type type, java.lang.String prevName)
ModelConverterContext
defineModel
in interface ModelConverterContext
name
- the name of the modelmodel
- the Modeltype
- the TypeprevName
- the (optional) previous namepublic java.util.Map<java.lang.String,Model> getDefinedModels()
public Property resolveProperty(java.lang.reflect.Type type, java.lang.annotation.Annotation[] annotations)
resolveProperty
in interface ModelConverterContext
type
- the property Classpublic Model resolve(java.lang.reflect.Type type)
resolve
in interface ModelConverterContext
type
- The Model ClassCopyright © 2018. All Rights Reserved.