org.jbehave.core.steps
Interface Parameters

All Superinterfaces:
Row
All Known Implementing Classes:
ConvertedParameters

public interface Parameters
extends Row

Provides parameter values as given types


Method Summary
<T> T
valueAs(String name, Class<T> type)
          Returns the value of a named parameter as a given type
<T> T
valueAs(String name, Class<T> type, T defaultValue)
          Returns the value of a named parameter as a given type while providing a default value if the name is not found
 
Methods inherited from interface org.jbehave.core.steps.Row
values
 

Method Detail

valueAs

<T> T valueAs(String name,
              Class<T> type)
Returns the value of a named parameter as a given type

Parameters:
type - the Class of type to convert to
name - the name of the parameter
Returns:
The value of type

valueAs

<T> T valueAs(String name,
              Class<T> type,
              T defaultValue)
Returns the value of a named parameter as a given type while providing a default value if the name is not found

Parameters:
type - Class of type to convert to
name - the name of the parameter
defaultValue - the default value if the name is not found
Returns:
The value of type


Copyright © 2003-2011. All Rights Reserved.