public class InstallDirSwitch extends AbstractCommandLineSwitch implements CommandLineSwitch
[--installdir <install-directory>]
Modifier and Type | Field and Description |
---|---|
static String |
INSTALL_DIR_SWITCH
Switch for specifying the install directory.
|
Constructor and Description |
---|
InstallDirSwitch()
Creates a new instance of this class.
|
Modifier and Type | Method and Description |
---|---|
void |
consumeSwitch(String commandLineSwitch,
String[] followUpArgs)
Consumes the switch.
|
String |
getHelpText()
Gets a help text for this switch.
|
String |
getInstallDir()
Gets the provided application installation directory, if this switch was consumed, else null.
|
int |
getNumFollowUpArgs()
Gets the number of follow-up args required for this switch.
|
checkConsumeSwitchArgs, supportsSwitch
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
supportsSwitch
public static final String INSTALL_DIR_SWITCH
public int getNumFollowUpArgs()
getNumFollowUpArgs
in interface CommandLineSwitch
public void consumeSwitch(String commandLineSwitch, String[] followUpArgs)
consumeSwitch
in interface CommandLineSwitch
commandLineSwitch
- the command line switchfollowUpArgs
- the required follow-up args.public String getHelpText()
getHelpText
in interface CommandLineSwitch
public String getInstallDir()
Copyright © 2012–2019 Drombler. All rights reserved.