public interface ApoBaseC extends ApoBase
Base for a CLI option.
| Modifier and Type | Method and Description |
|---|---|
boolean |
cliIsRequired()
Tests if the CLI option is required meaning it must be used in the command line.
|
String |
getCliLong()
Returns the long CLI option.
|
Character |
getCliShort()
Returns the short CLI option.
|
default String |
getCliShortLong()
Returns a CLI option either short or long.
|
default ST |
getHelp()
Returns help information for the option.
|
boolean |
inCli()
Tests if the option was present in a parsed command line.
|
void |
setInCLi(boolean inCli)
Sets the option flag for being in a command line.
|
default void |
validate()
Validates the option.
|
getDisplayName, getLongDescription, isSetgetDescriptionboolean cliIsRequired()
Tests if the CLI option is required meaning it must be used in the command line.
String getCliLong()
Returns the long CLI option.
Character getCliShort()
Returns the short CLI option.
default String getCliShortLong()
Returns a CLI option either short or long.
default ST getHelp()
ApoBaseReturns help information for the option. The information contains all possible settings, except the long description. This might include CLI, property, environment, and other settings.
boolean inCli()
Tests if the option was present in a parsed command line.
void setInCLi(boolean inCli)
Sets the option flag for being in a command line.
inCli - true if in a command line, false otherwisedefault void validate()
throws IllegalStateException
ApoBaseValidates the option.
validate in interface ApoBaseIllegalStateException - for any validation errorCopyright © 2016–2017. All rights reserved.