Package com.tngtech.jgiven.report.config
Class ConfigOption
- java.lang.Object
-
- com.tngtech.jgiven.report.config.ConfigOption
-
public class ConfigOption extends java.lang.Object
Defines a configuration for the report which can be from the command line, property or the environment Instantiated withConfigOptionBuilder
For use inAbstractReportConfig.additionalConfigOptions(List)
and the generated object map inAbstractReportConfig(String...)
-
-
Constructor Summary
Constructors Constructor Description ConfigOption()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CommandLineOption
getCommandLineOption()
StringConverter
getConverter()
java.lang.String
getDescription()
java.lang.String
getEnhancedDescription()
java.lang.String
getEnvString()
java.lang.String
getLongName()
java.lang.String
getPropertyString()
java.lang.String
getShortName()
java.lang.Object
getValue()
boolean
hasDefault()
boolean
isHasArgument()
boolean
isOptional()
void
setCommandLineOption(CommandLineOption commandLineOption)
void
setConverter(StringConverter converter)
void
setDescription(java.lang.String description)
void
setEnvString(java.lang.String envString)
void
setHasArgument(boolean hasArgument)
void
setHasDefault(boolean hasDefault)
void
setLongName(java.lang.String longName)
void
setOptional(boolean optional)
void
setPropertyString(java.lang.String propertyString)
void
setShortName(java.lang.String shortName)
void
setValue(java.lang.Object value)
java.lang.Object
toObject(java.lang.String input)
-
-
-
Method Detail
-
getLongName
public java.lang.String getLongName()
-
setLongName
public void setLongName(java.lang.String longName)
-
getShortName
public java.lang.String getShortName()
-
setShortName
public void setShortName(java.lang.String shortName)
-
getCommandLineOption
public CommandLineOption getCommandLineOption()
-
setCommandLineOption
public void setCommandLineOption(CommandLineOption commandLineOption)
-
getPropertyString
public java.lang.String getPropertyString()
-
setPropertyString
public void setPropertyString(java.lang.String propertyString)
-
getEnvString
public java.lang.String getEnvString()
-
setEnvString
public void setEnvString(java.lang.String envString)
-
getDescription
public java.lang.String getDescription()
-
setDescription
public void setDescription(java.lang.String description)
-
isOptional
public boolean isOptional()
-
setOptional
public void setOptional(boolean optional)
-
isHasArgument
public boolean isHasArgument()
-
setHasArgument
public void setHasArgument(boolean hasArgument)
-
hasDefault
public boolean hasDefault()
-
setHasDefault
public void setHasDefault(boolean hasDefault)
-
getValue
public java.lang.Object getValue()
-
setValue
public void setValue(java.lang.Object value)
-
getConverter
public StringConverter getConverter()
-
setConverter
public void setConverter(StringConverter converter)
-
toObject
public java.lang.Object toObject(java.lang.String input)
-
getEnhancedDescription
public java.lang.String getEnhancedDescription()
-
-