public interface Apo_TypedCE<T> extends Apo_TypedC<T>, Apo_TypedE<T>
A standard typed option that combines CLI and environment settings.
| Modifier and Type | Method and Description |
|---|---|
default ST |
getHelp()
Returns help information for the option.
|
default T |
getValue()
Returns the value of the option.
|
default boolean |
isSet()
Tests if the option is set.
|
default void |
validate()
Validates the option.
|
cliArgIsOptional, getCliArgumentDescription, getCliArgumentName, getCliValue, setCliValuecliIsRequired, getCliLong, getCliShort, getCliShortLong, inCli, setInCLigetEnvironmentValuegetEnvironmentKey, inEnvironmentgetDefaultValuegetDisplayName, getLongDescriptiongetDescriptiondefault 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.
default T getValue()
Returns the value of the option. First, the CLI value is tested and if not null it is returned. Second, the environment value is tested and if not it is returned. Last the default value is returned.
getValue in interface Apo_TypedC<T>getValue in interface Apo_TypedE<T>getValue in interface ApoBaseTyped<T>default boolean isSet()
Tests if the option is set.
A typed option is set if it has a value that is not null.
isSet in interface Apo_TypedC<T>isSet in interface Apo_TypedE<T>isSet in interface ApoBaseisSet in interface ApoBaseTyped<T>default void validate()
throws IllegalStateException
ApoBaseValidates the option.
validate in interface Apo_TypedC<T>validate in interface ApoBasevalidate in interface ApoBaseCvalidate in interface ApoBaseEIllegalStateException - for any validation errorCopyright © 2016–2017. All rights reserved.