Package org.jbehave.core.steps
Class ParameterConverters.ExamplesTableParametersConverter
java.lang.Object
org.jbehave.core.steps.ParameterConverters.AbstractParameterConverter<String,T>
org.jbehave.core.steps.ParameterConverters.FromStringParameterConverter<Object>
org.jbehave.core.steps.ParameterConverters.ExamplesTableParametersConverter
- All Implemented Interfaces:
ParameterConverters.ParameterConverter<String,
Object>
- Enclosing class:
- ParameterConverters
public static class ParameterConverters.ExamplesTableParametersConverter
extends ParameterConverters.FromStringParameterConverter<Object>
Converts ExamplesTable to list of parameters, mapped to annotated custom
types.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canConvertTo
(Type type) Returntrue
if the converter can convert to the desired target type.convertValue
(String value, Type type) Convert the value from one type to another, for example from aboolean
to aString
.static boolean
Methods inherited from class org.jbehave.core.steps.ParameterConverters.AbstractParameterConverter
canConvertFrom, getSourceType, getTargetType
-
Constructor Details
-
ExamplesTableParametersConverter
-
-
Method Details
-
canConvertTo
Description copied from interface:ParameterConverters.ParameterConverter
Returntrue
if the converter can convert to the desired target type.- Specified by:
canConvertTo
in interfaceParameterConverters.ParameterConverter<String,
Object> - Overrides:
canConvertTo
in classParameterConverters.AbstractParameterConverter<String,
Object> - Parameters:
type
- the type descriptor that describes the requested result type- Returns:
true
if that conversion can be performed
-
convertValue
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
-
isExamplesTableParameters
-