Package org.jbehave.core.steps
Class ParameterConverters.AbstractParameterConverter<S,T>
java.lang.Object
org.jbehave.core.steps.ParameterConverters.AbstractParameterConverter<S,T>
- All Implemented Interfaces:
ParameterConverters.ParameterConverter<S,
T>
- Direct Known Subclasses:
ParameterConverters.FromStringParameterConverter
,ParameterConverters.FunctionalParameterConverter
- Enclosing class:
- ParameterConverters
public abstract static class ParameterConverters.AbstractParameterConverter<S,T>
extends Object
implements ParameterConverters.ParameterConverter<S,T>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canConvertFrom
(Type type) Returntrue
if the converter can convert from the desired target type.boolean
canConvertTo
(Type type) Returntrue
if the converter can convert to the desired target type.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.jbehave.core.steps.ParameterConverters.ParameterConverter
convertValue
-
Constructor Details
-
AbstractParameterConverter
public AbstractParameterConverter() -
AbstractParameterConverter
-
-
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<S,
T> - Parameters:
type
- the type descriptor that describes the requested result type- Returns:
true
if that conversion can be performed
-
canConvertFrom
Description copied from interface:ParameterConverters.ParameterConverter
Returntrue
if the converter can convert from the desired target type.- Specified by:
canConvertFrom
in interfaceParameterConverters.ParameterConverter<S,
T> - Parameters:
type
- the type descriptor that describes the source type- Returns:
true
if that conversion can be performed
-
getSourceType
- Specified by:
getSourceType
in interfaceParameterConverters.ParameterConverter<S,
T>
-
getTargetType
- Specified by:
getTargetType
in interfaceParameterConverters.ParameterConverter<S,
T>
-