public abstract class ParameterizedBase extends Object implements Parameterized
Parameterized
which maintains a list of parameters
used to print the command-line usage string and configure parameters.Constructor and Description |
---|
ParameterizedBase() |
Modifier and Type | Method and Description |
---|---|
void |
addParameter(Parameter<?> parameter)
Adds a parameter to the list.
|
void |
configure(ParameterTool parameterTool)
Read parameter values from the command-line arguments.
|
String |
getName()
A unique, human-readable identifier.
|
String |
getUsage()
Human-readable format for the command-line usage string.
|
public void addParameter(Parameter<?> parameter)
parameter
- to add to the list of parameterspublic String getName()
Parameterized
getName
in interface Parameterized
public String getUsage()
Parameterized
getUsage
in interface Parameterized
public void configure(ParameterTool parameterTool) throws ProgramParametrizationException
Parameterized
configure
in interface Parameterized
parameterTool
- parameter parserProgramParametrizationException
- when configuration is invalidCopyright © 2014–2019 The Apache Software Foundation. All rights reserved.