Uses of Class
org.yamcs.Spec.Option
-
Uses of Spec.Option in org.yamcs
Modifier and TypeMethodDescriptionSpec.addOption
(String name, Spec.OptionType type) Add anSpec.Option
to this spec.Spec.Option.withAliases
(String... aliases) Add aliases for this option.Spec.Option.withApplySpecDefaults
(boolean applySpecDefaults) In case thetype
is set toSpec.OptionType.MAP
, setting this property totrue
will cause defaults within elements of that type to be applied even if the option itself is not defined.<T extends Enum<T>>
Spec.OptionSpec.Option.withChoices
(Class<T> enumClass) Sets the allowed values of this option based on the states of an Enum.Spec.Option.withChoices
(Object... choices) Sets the allowed values of this option.Spec.Option.withDefault
(Object defaultValue) Sets the default value.Spec.Option.withDeprecationMessage
(String deprecationMessage) Attach a deprecation message to this option.Spec.Option.withDescription
(String... description) Spec.Option.withElementType
(Spec.OptionType elementType) In case thetype
is set toSpec.OptionType.LIST
orSpec.OptionType.LIST_OR_ELEMENT
the element type indicates the type of each element of that list.Spec.Option.withHidden
(boolean hidden) Hint that this option should be hidden from UIs.Spec.Option.withRequired
(boolean required) Set whether this option is required.Spec.Option.withSecret
(boolean secret) Set whether this option is secret.In case thetype
or theelementType
is set toSpec.OptionType.MAP
this specifies the options within that map.Spec.Option.withVersionAdded
(String versionAdded) Which version of the software this specific option was added.