public class ApplyToActionHandler extends Object implements CmdLineOptionHandler
CmdLineOptionHandler which applies CmdLineOption values to
given CmdLineAction. If CmdLineOption is a repeating option
then "addCmdLineAction, otherwise
"set| Constructor and Description |
|---|
ApplyToActionHandler() |
| Modifier and Type | Method and Description |
|---|---|
List<ApplyToAction> |
getApplyToActions() |
String |
getArgDescription(CmdLineAction action,
CmdLineOption option)
If this handler causes the argument descriptor to be different for
certain
CmdLineActions, then should return the arg
description here. |
protected String |
getArgDescription(String actionName) |
String |
getDescription(CmdLineAction action,
CmdLineOption option) |
protected String |
getDescription(String actionName) |
String |
getHelp(CmdLineOption option)
Gets the
CmdLineOptionHandlers help message when associated with
given CmdLineOption. |
protected String |
getMethodName(String actionName) |
void |
handleOption(CmdLineAction action,
CmdLineOptionInstance optionInstance) |
void |
initialize(CmdLineOption option)
Called after handler construction to allow handler to setup
state before it is required to handle the option later.
|
void |
setApplyToActions(List<ApplyToAction> applyToActions) |
public void setApplyToActions(List<ApplyToAction> applyToActions)
public List<ApplyToAction> getApplyToActions()
public void initialize(CmdLineOption option)
CmdLineOptionHandlerinitialize in interface CmdLineOptionHandlerpublic void handleOption(CmdLineAction action, CmdLineOptionInstance optionInstance)
handleOption in interface CmdLineOptionHandlerpublic String getHelp(CmdLineOption option)
CmdLineOptionHandlerCmdLineOptionHandlers help message when associated with
given CmdLineOption.getHelp in interface CmdLineOptionHandleroption - The CmdLineOption to which this
CmdLineOptionHandler was associated withCmdLineOptionHandlerpublic String getDescription(CmdLineAction action, CmdLineOption option)
public String getArgDescription(CmdLineAction action, CmdLineOption option)
CmdLineOptionHandlerCmdLineActions, then should return the arg
description here.getArgDescription in interface CmdLineOptionHandlerCopyright © 1999–2017 Apache OODT. All rights reserved.