Package org.hippoecm.hst.core.component
Interface HstParameterValueConverter
-
public interface HstParameterValueConverter
Implementations of this interface are a utility class for converting String values to some object of typeClass<?>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Object
convert(String parameterValue, Class<?> returnType)
default Object
convert(String parameterName, String parameterValue, ParameterConfiguration parameterConfiguration, Class<?> returnType)
-
-
-
Method Detail
-
convert
Object convert(String parameterValue, Class<?> returnType) throws HstParameterValueConversionException
- Parameters:
parameterValue
-returnType
-- Returns:
- the
String
parameterValue
converted to thereturnType
class - Throws:
HstParameterValueConversionException
- when the conversion failed
-
convert
default Object convert(String parameterName, String parameterValue, ParameterConfiguration parameterConfiguration, Class<?> returnType)
-
-