Package io.cucumber.docstring
Class DocStringType
- java.lang.Object
-
- io.cucumber.docstring.DocStringType
-
@API(status=STABLE) public final class DocStringType extends Object
A data table type describes how a doc string should be represented as an object.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceDocStringType.Transformer<T>
-
Constructor Summary
Constructors Constructor Description DocStringType(Type type, String contentType, DocStringType.Transformer<T> transformer)Creates a doc string type that can convert a doc string to an object.
-
-
-
Constructor Detail
-
DocStringType
public DocStringType(Type type, String contentType, DocStringType.Transformer<T> transformer)
Creates a doc string type that can convert a doc string to an object.- Type Parameters:
T- seetype- Parameters:
type- the type of the objectcontentType- the media type or GFM info stringtransformer- a function that creates an instance oftypefrom the doc string
-
-