Package org.jbehave.core.steps
Class ParameterConverters.StringConverter
- java.lang.Object
-
- org.jbehave.core.steps.ParameterConverters.AbstractParameterConverter<String,T>
-
- org.jbehave.core.steps.ParameterConverters.FromStringParameterConverter<String>
-
- org.jbehave.core.steps.ParameterConverters.StringConverter
-
- All Implemented Interfaces:
ParameterConverters.ParameterConverter<String,String>
- Enclosing class:
- ParameterConverters
public static class ParameterConverters.StringConverter extends ParameterConverters.FromStringParameterConverter<String>
-
-
Constructor Summary
Constructors Constructor Description StringConverter()
-
Method Summary
Modifier and Type Method Description String
convertValue(String value, Type type)
Convert the value from one type to another, for example from aboolean
to aString
.-
Methods inherited from class org.jbehave.core.steps.ParameterConverters.AbstractParameterConverter
canConvertFrom, canConvertTo, getSourceType, getTargetType
-
-
-
-
Method Detail
-
convertValue
public String convertValue(String value, Type type)
Description copied from interface:ParameterConverters.ParameterConverter
Convert the value from one type to another, for example from aboolean
to aString
.- Parameters:
value
- the value to be convertedtype
- the type descriptor that supplies extra information about the requested result type- Returns:
- the converted value
-
-