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 |
getUsage()
Human-readable format for the command-line usage string.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getName
public void addParameter(Parameter<?> parameter)
parameter
- to add to the list of parameterspublic 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–2018 The Apache Software Foundation. All rights reserved.