public class StringParameter extends SimpleParameter<String>
defaultValue, hasDefaultValue, name, value
Constructor and Description |
---|
StringParameter(ParameterizedBase owner,
String name)
Set the parameter name and add this parameter to the list of parameters
stored by owner.
|
Modifier and Type | Method and Description |
---|---|
void |
configure(ParameterTool parameterTool)
Read and parse the parameter value from command-line arguments.
|
StringParameter |
setDefaultValue(String defaultValue)
Set the default value, used if no value is set by the command-line
configuration.
|
String |
toString() |
getUsage, getValue, isHidden
public StringParameter(ParameterizedBase owner, String name)
owner
- the Parameterized
using this Parameter
name
- the parameter namepublic StringParameter setDefaultValue(String defaultValue)
SimpleParameter
setDefaultValue
in class SimpleParameter<String>
defaultValue
- the default valuepublic void configure(ParameterTool parameterTool)
Parameter
parameterTool
- parameter parserCopyright © 2014–2019 The Apache Software Foundation. All rights reserved.