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.
|
String |
toString() |
getUsage, getValue
public StringParameter(ParameterizedBase owner, String name)
owner
- the Parameterized
using this Parameter
name
- the parameter namepublic StringParameter setDefaultValue(String defaultValue)
setDefaultValue
in class SimpleParameter<String>
defaultValue
- the default value.public void configure(ParameterTool parameterTool)
Parameter
parameterTool
- parameter parserCopyright © 2014–2018 The Apache Software Foundation. All rights reserved.