Class MultiValuesConverterFactory.ObjectToMultiValuesConverter
- java.lang.Object
-
- io.micronaut.core.convert.converters.MultiValuesConverterFactory.AbstractConverterToMultiValues<java.lang.Object>
-
- io.micronaut.core.convert.converters.MultiValuesConverterFactory.ObjectToMultiValuesConverter
-
- All Implemented Interfaces:
FormattingTypeConverter<java.lang.Object,ConvertibleMultiValues,Format>,TypeConverter<java.lang.Object,ConvertibleMultiValues>
- Enclosing class:
- MultiValuesConverterFactory
public static class MultiValuesConverterFactory.ObjectToMultiValuesConverter extends MultiValuesConverterFactory.AbstractConverterToMultiValues<java.lang.Object>
A converter from genericObjecttoConvertibleMultiValues.
-
-
Field Summary
-
Fields inherited from class io.micronaut.core.convert.converters.MultiValuesConverterFactory.AbstractConverterToMultiValues
conversionService
-
-
Constructor Summary
Constructors Constructor Description ObjectToMultiValuesConverter(ConversionService<?> conversionService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddDeepObjectValues(ArgumentConversionContext<java.lang.Object> context, java.lang.String name, java.lang.Object object, MutableConvertibleMultiValuesMap<java.lang.String> parameters)Method that adds given value to the parameters in A DEEP_OBJECT format.protected voidaddMutliValues(ArgumentConversionContext<java.lang.Object> context, java.lang.String name, java.lang.Object object, MutableConvertibleMultiValuesMap<java.lang.String> parameters)Method that adds given value to the parameters in a MULTI format.protected voidaddSeparatedValues(ArgumentConversionContext<java.lang.Object> context, java.lang.String name, java.lang.Object object, MutableConvertibleMultiValuesMap<java.lang.String> parameters, java.lang.Character delimiter)Method that adds given value to the parameters in a format separated by a delimiter.-
Methods inherited from class io.micronaut.core.convert.converters.MultiValuesConverterFactory.AbstractConverterToMultiValues
annotationType, convert
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.micronaut.core.convert.TypeConverter
convert
-
-
-
-
Constructor Detail
-
ObjectToMultiValuesConverter
public ObjectToMultiValuesConverter(ConversionService<?> conversionService)
-
-
Method Detail
-
addSeparatedValues
protected void addSeparatedValues(ArgumentConversionContext<java.lang.Object> context, java.lang.String name, java.lang.Object object, MutableConvertibleMultiValuesMap<java.lang.String> parameters, java.lang.Character delimiter)
Description copied from class:MultiValuesConverterFactory.AbstractConverterToMultiValuesMethod that adds given value to the parameters in a format separated by a delimiter.- Specified by:
addSeparatedValuesin classMultiValuesConverterFactory.AbstractConverterToMultiValues<java.lang.Object>- Parameters:
context- - the context of conversion which has the source type and any present annotationsname- - the name of the parameterobject- - the object that we are converting fromparameters- - the parameters to the value of additional parameter will be addeddelimiter- - the required delimiter of the values in the parameter String
-
addMutliValues
protected void addMutliValues(ArgumentConversionContext<java.lang.Object> context, java.lang.String name, java.lang.Object object, MutableConvertibleMultiValuesMap<java.lang.String> parameters)
Description copied from class:MultiValuesConverterFactory.AbstractConverterToMultiValuesMethod that adds given value to the parameters in a MULTI format.- Specified by:
addMutliValuesin classMultiValuesConverterFactory.AbstractConverterToMultiValues<java.lang.Object>- Parameters:
context- - the context of conversion which has the source type and any present annotationsname- - the name of the parameterobject- - the object that we are converting fromparameters- - the parameters to the value of additional parameter will be added
-
addDeepObjectValues
protected void addDeepObjectValues(ArgumentConversionContext<java.lang.Object> context, java.lang.String name, java.lang.Object object, MutableConvertibleMultiValuesMap<java.lang.String> parameters)
Description copied from class:MultiValuesConverterFactory.AbstractConverterToMultiValuesMethod that adds given value to the parameters in A DEEP_OBJECT format.- Specified by:
addDeepObjectValuesin classMultiValuesConverterFactory.AbstractConverterToMultiValues<java.lang.Object>- Parameters:
context- - the context of conversion which has the source type and any present annotationsname- - the name of the parameterobject- - the object that we are converting fromparameters- - the parameters to the value of additional parameter will be added
-
-