Class CustomParameterParser<T>
- java.lang.Object
-
- com.thoughtworks.gauge.execution.parameters.parsers.base.CustomParameterParser<T>
-
- All Implemented Interfaces:
ParameterParser
public abstract class CustomParameterParser<T> extends Object implements ParameterParser
Extension hook for custom parameter parser implementations. An example: Given the following custom model classpublic class Person { private String name; public Person(String name) { this.name = name; } }
One can create a CustomParameterParser likepublic class PersonGaugeParser extends CustomParameterParser
{
-
-
Constructor Summary
Constructors Constructor Description CustomParameterParser()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract T
customParse(Class<?> parameterType, Spec.Parameter parameter)
T
parse(Class<?> parameterType, Spec.Parameter parameter)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.thoughtworks.gauge.execution.parameters.parsers.base.ParameterParser
canParse
-
-
-
-
Method Detail
-
parse
public final T parse(Class<?> parameterType, Spec.Parameter parameter) throws ParsingException
- Specified by:
parse
in interfaceParameterParser
- Throws:
ParsingException
-
customParse
protected abstract T customParse(Class<?> parameterType, Spec.Parameter parameter)
-
-