Package org.jbehave.core.steps
Interface Parameters
- All Superinterfaces:
Row
- All Known Implementing Classes:
ConvertedParameters
Provides parameter values as given types
-
Method Summary
Modifier and TypeMethodDescription<T> T
Maps parameters to the specified type<T> T
Maps parameters to the specified type<T> T
Returns the value of a named parameter as a given type<T> T
Returns the value of a named parameter as a given type while providing a default value if the name is not found
-
Method Details
-
valueAs
Returns the value of a named parameter as a given type- Parameters:
type
- the Type or Class of type <T> to convert toname
- the name of the parameter- Returns:
- The value of type <T>
-
valueAs
Returns the value of a named parameter as a given type while providing a default value if the name is not found- Parameters:
type
- Type or Class of type <T> to convert toname
- the name of the parameterdefaultValue
- the default value if the name is not found- Returns:
- The value of type <T>
-
mapTo
Maps parameters to the specified type- Parameters:
type
- The target type- Returns:
- The object of type <T>
-
mapTo
Maps parameters to the specified type- Parameters:
type
- The target typefieldNameMapping
- The field mapping between parameters and target type fields- Returns:
- The object of type <T>
-