public static class MultiValuesConverterFactory.ObjectToMultiValuesConverter extends MultiValuesConverterFactory.AbstractConverterToMultiValues<Object>
Object
to ConvertibleMultiValues
.conversionService
Constructor and Description |
---|
ObjectToMultiValuesConverter(ConversionService<?> conversionService) |
Modifier and Type | Method and Description |
---|---|
protected void |
addDeepObjectValues(ArgumentConversionContext<Object> context,
String name,
Object object,
MutableConvertibleMultiValuesMap<String> parameters)
Method that adds given value to the parameters in A DEEP_OBJECT format.
|
protected void |
addMutliValues(ArgumentConversionContext<Object> context,
String name,
Object object,
MutableConvertibleMultiValuesMap<String> parameters)
Method that adds given value to the parameters in a MULTI format.
|
protected void |
addSeparatedValues(ArgumentConversionContext<Object> context,
String name,
Object object,
MutableConvertibleMultiValuesMap<String> parameters,
Character delimiter)
Method that adds given value to the parameters in a format separated by a delimiter.
|
annotationType, convert
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
convert, of
public ObjectToMultiValuesConverter(ConversionService<?> conversionService)
protected void addSeparatedValues(ArgumentConversionContext<Object> context, String name, Object object, MutableConvertibleMultiValuesMap<String> parameters, Character delimiter)
MultiValuesConverterFactory.AbstractConverterToMultiValues
addSeparatedValues
in class MultiValuesConverterFactory.AbstractConverterToMultiValues<Object>
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 Stringprotected void addMutliValues(ArgumentConversionContext<Object> context, String name, Object object, MutableConvertibleMultiValuesMap<String> parameters)
MultiValuesConverterFactory.AbstractConverterToMultiValues
addMutliValues
in class MultiValuesConverterFactory.AbstractConverterToMultiValues<Object>
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 addedprotected void addDeepObjectValues(ArgumentConversionContext<Object> context, String name, Object object, MutableConvertibleMultiValuesMap<String> parameters)
MultiValuesConverterFactory.AbstractConverterToMultiValues
addDeepObjectValues
in class MultiValuesConverterFactory.AbstractConverterToMultiValues<Object>
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