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 type
Class<?>
-
Method Summary
-
Method Details
-
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)
-