public interface Apo_TypedCPE<T> extends Apo_TypedC<T>, Apo_TypedP<T>, Apo_TypedE<T>
A standard typed option that combines CLI, property, 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, setInCLigetPropertyValue, setPropertyValuegetPropertyKey, inPropertiesgetEnvironmentValuegetEnvironmentKey, 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.
getHelp in interface Apo_TypedC<T>getHelp in interface Apo_TypedE<T>getHelp in interface Apo_TypedP<T>getHelp in interface ApoBasegetHelp in interface ApoBaseCgetHelp in interface ApoBaseEgetHelp in interface ApoBasePdefault T getValue()
Returns the value of the option. First, the CLI value is tested and if not null it is returned. Second, the property value is tested and if not it is returned. Third, 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 Apo_TypedP<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 Apo_TypedP<T>isSet in interface ApoBaseisSet in interface ApoBaseTyped<T>default void validate()
throws IllegalStateException
ApoBaseValidates the option.
Copyright © 2016–2017. All rights reserved.