java.lang.Object
io.inverno.mod.base.converter.CompositeConverter<String>
io.inverno.mod.base.converter.StringCompositeConverter
io.inverno.mod.boot.converter.ParameterConverter
- All Implemented Interfaces:
Converter<String,
,Object> Decoder<String,
,Object> Encoder<Object,
,String> JoinableEncoder<Object,
,String> JoinablePrimitiveEncoder<String>
,ObjectConverter<String>
,PrimitiveDecoder<String>
,PrimitiveEncoder<String>
,SplittableDecoder<String,
,Object> SplittablePrimitiveDecoder<String>
String to object converter used basically to convert string parameter values into primitive and common types.
This converter implements the CompositeConverter
interface and as such it is possible to extend its capabilities by injecting specific CompoundDecoder
and CompoundEncoder
instances.
- Since:
- 1.0
- Author:
- Jeremy Kuhn
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
The compound decoders socket.static interface
The compound encoders socket. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
setDecoders
(List<CompoundDecoder<String, ?>> decoders) Sets the compound decoders used to decode objects.void
setEncoders
(List<CompoundEncoder<?, String>> encoders) Sets the compound encoders used to encode objects.Methods inherited from class io.inverno.mod.base.converter.StringCompositeConverter
decodeBigDecimal, decodeBigInteger, decodeBoolean, decodeByte, decodeCharacter, decodeClass, decodeCurrency, decodeDouble, decodeFile, decodeFloat, decodeInetAddress, decodeInetSocketAddress, decodeInteger, decodeLocalDate, decodeLocalDateTime, decodeLocale, decodeLong, decodePath, decodePattern, decodeShort, decodeString, decodeToArray, decodeToArray, decodeToList, decodeToList, decodeToSet, decodeToSet, decodeURI, decodeURL, decodeZonedDateTime, encode, encode, encode, encode, encode, encode, encode, encode, encode, encode, encode, encode, encode, encode, encode, encode, encode, encode, encode, encode, encode, encode, encode, encode, encodeArray, encodeArray, encodeArray, encodeList, encodeList, encodeList, encodeSet, encodeSet, encodeSet, getArrayListSeparator, setArrayListSeparator
Methods inherited from class io.inverno.mod.base.converter.CompositeConverter
decode, decode, encode, encode, encode, setDefaultDecoder, setDefaultEncoder
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.inverno.mod.base.converter.JoinableEncoder
encodeArray, encodeArray, encodeArray, encodeList, encodeList, encodeList, encodeSet, encodeSet, encodeSet
Methods inherited from interface io.inverno.mod.base.converter.PrimitiveDecoder
decodeBigDecimal, decodeBigInteger, decodeBoolean, decodeByte, decodeCharacter, decodeClass, decodeCurrency, decodeDouble, decodeFile, decodeFloat, decodeInetAddress, decodeInetSocketAddress, decodeInteger, decodeLocalDate, decodeLocalDateTime, decodeLocale, decodeLong, decodePath, decodePattern, decodeShort, decodeString, decodeURI, decodeURL, decodeZonedDateTime
Methods inherited from interface io.inverno.mod.base.converter.PrimitiveEncoder
encode, encode, encode, encode, encode, encode, encode, encode, encode, encode, encode, encode, encode, encode, encode, encode, encode, encode, encode, encode, encode, encode, encode, encode
Methods inherited from interface io.inverno.mod.base.converter.SplittableDecoder
decodeToArray, decodeToArray, decodeToList, decodeToList, decodeToSet, decodeToSet
-
Constructor Details
-
ParameterConverter
public ParameterConverter()
-
-
Method Details
-
setDecoders
Description copied from class:CompositeConverter
Sets the compound decoders used to decode objects.
- Overrides:
setDecoders
in classStringCompositeConverter
- Parameters:
decoders
- a list of compound decoders
-
setEncoders
Description copied from class:CompositeConverter
Sets the compound encoders used to encode objects.
- Overrides:
setEncoders
in classStringCompositeConverter
- Parameters:
encoders
- a list of compound encoders
-