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