Class StringIdentifierConverter
java.lang.Object
de.vinado.spring.identifier.convert.StringIdentifierConverter
- All Implemented Interfaces:
ConditionalConverter
,ConditionalGenericConverter
,GenericConverter
@ReadingConverter
public class StringIdentifierConverter
extends Object
implements ConditionalGenericConverter
ReadingConverter
wrapping a string value into a new instance of StringIdentifier
.- Author:
- Vincent Nadoll
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.springframework.core.convert.converter.GenericConverter
GenericConverter.ConvertiblePair
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final TypeDescriptor
protected static final TypeDescriptor
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionconvert
(Object source, TypeDescriptor sourceType, TypeDescriptor targetType) boolean
matches
(TypeDescriptor sourceType, TypeDescriptor targetType)
-
Field Details
-
STRING_TYPE
-
IDENTIFIER_TYPE
-
-
Constructor Details
-
StringIdentifierConverter
public StringIdentifierConverter()
-
-
Method Details
-
matches
- Specified by:
matches
in interfaceConditionalConverter
-
getConvertibleTypes
- Specified by:
getConvertibleTypes
in interfaceGenericConverter
-
convert
@Nullable public Object convert(@Nullable Object source, TypeDescriptor sourceType, TypeDescriptor targetType) - Specified by:
convert
in interfaceGenericConverter
-