public interface Apo_TypedP<T> extends ApoBaseP, ApoBaseTyped<T>
A standard typed property options.
| Modifier and Type | Method and Description |
|---|---|
default ST |
getHelp()
Returns help information for the option.
|
T |
getPropertyValue()
Returns the property value of the option if any set.
|
default T |
getValue()
Returns the value of the option.
|
default boolean |
isSet()
Tests if the option is set.
|
void |
setPropertyValue(Properties properties)
Sets the property value of the option.
|
getPropertyKey, inProperties, validategetDefaultValuegetDisplayName, 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.
T getPropertyValue()
Returns the property value of the option if any set.
default T getValue()
Returns the value of the option. First the property value is tested and if not null it is returned. Last the default value is returned.
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 ApoBaseisSet in interface ApoBaseTyped<T>void setPropertyValue(Properties properties) throws IllegalStateException
Sets the property value of the option.
properties - set of properties to get the value fromIllegalStateException - if the argument was blank (string) or otherwise problematicCopyright © 2016–2017. All rights reserved.