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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanConvertFrom(Type type) Returntrueif the converter can convert from the desired target type.booleancanConvertTo(Type type) Returntrueif 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, waitMethods inherited from interface org.jbehave.core.steps.ParameterConverters.ParameterConverter
convertValue
-
Constructor Details
-
AbstractParameterConverter
public AbstractParameterConverter() -
AbstractParameterConverter
-
-
Method Details
-
canConvertTo
Description copied from interface:ParameterConverters.ParameterConverterReturntrueif the converter can convert to the desired target type.- Specified by:
canConvertToin interfaceParameterConverters.ParameterConverter<S,T> - Parameters:
type- the type descriptor that describes the requested result type- Returns:
trueif that conversion can be performed
-
canConvertFrom
Description copied from interface:ParameterConverters.ParameterConverterReturntrueif the converter can convert from the desired target type.- Specified by:
canConvertFromin interfaceParameterConverters.ParameterConverter<S,T> - Parameters:
type- the type descriptor that describes the source type- Returns:
trueif that conversion can be performed
-
getSourceType
- Specified by:
getSourceTypein interfaceParameterConverters.ParameterConverter<S,T>
-
getTargetType
- Specified by:
getTargetTypein interfaceParameterConverters.ParameterConverter<S,T>
-