Package com.tngtech.jgiven.report.config
Class ConfigOptionBuilder
java.lang.Object
com.tngtech.jgiven.report.config.ConfigOptionBuilder
An easier interface to create
ConfigOption
for use with AbstractReportGenerator
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
setCommandLineOptionWithArgument
(CommandLineOption commandLineOption, StringConverter converter) if you want to parse an argument, you need a converter from String to ObjectsetCommandLineOptionWithoutArgument
(CommandLineOption commandLineOption, Object value) if you don't have an argument, choose the value that is going to be inserted into the map insteadsetDefaultWith
(Object defaultValue) if you have a default, it's automatically optionalsetDescription
(String description) setEnvironmentString
(String envString, StringConverter converter) if the option is optional, you don't have to use itsetPropertyString
(String propertyString, StringConverter converter) setShortName
(String shortName) setStringConverter
(StringConverter converter) if you want to convert some string to an object, you have an argument to parse
-
Constructor Details
-
ConfigOptionBuilder
-
-
Method Details
-
setShortName
-
setCommandLineOptionWithArgument
public ConfigOptionBuilder setCommandLineOptionWithArgument(CommandLineOption commandLineOption, StringConverter converter) if you want to parse an argument, you need a converter from String to Object- Parameters:
commandLineOption
- specification of the command line optionsconverter
- how to convert your String value to a castable Object
-
setCommandLineOptionWithoutArgument
public ConfigOptionBuilder setCommandLineOptionWithoutArgument(CommandLineOption commandLineOption, Object value) if you don't have an argument, choose the value that is going to be inserted into the map instead- Parameters:
commandLineOption
- specification of the command line optionsvalue
- the value that is going to be inserted into the map instead of the argument
-
setPropertyString
-
setEnvironmentString
-
setDescription
-
setOptional
if the option is optional, you don't have to use it -
setDefaultWith
if you have a default, it's automatically optional -
setStringConverter
if you want to convert some string to an object, you have an argument to parse -
build
-