Spec.Option |
Spec.addOption(String name,
Spec.OptionType type) |
|
Spec.Option |
Spec.Option.withAliases(String... aliases) |
Add aliases for this option.
|
Spec.Option |
Spec.Option.withApplySpecDefaults(boolean applySpecDefaults) |
In case the type is set to Spec.OptionType.MAP, setting this property to true will cause
defaults within elements of that type to be applied even if the option itself is not defined.
|
<T extends Enum<T>> Spec.Option |
Spec.Option.withChoices(Class<T> enumClass) |
Sets the allowed values of this option based on the states of an Enum.
|
Spec.Option |
Spec.Option.withChoices(Object... choices) |
Sets the allowed values of this option.
|
Spec.Option |
Spec.Option.withDefault(Object defaultValue) |
Sets the default value.
|
Spec.Option |
Spec.Option.withDeprecationMessage(String deprecationMessage) |
Attach a deprecation message to this option.
|
Spec.Option |
Spec.Option.withDescription(String... description) |
|
Spec.Option |
Spec.Option.withElementType(Spec.OptionType elementType) |
|
Spec.Option |
Spec.Option.withRequired(boolean required) |
Set whether this option is required.
|
Spec.Option |
Spec.Option.withSecret(boolean secret) |
Set whether this option is secret.
|
Spec.Option |
Spec.Option.withSpec(Spec spec) |
|
Spec.Option |
Spec.Option.withTitle(String title) |
|