Package org.yamcs
Enum Spec.OptionType
- java.lang.Object
-
- java.lang.Enum<Spec.OptionType>
-
- org.yamcs.Spec.OptionType
-
- All Implemented Interfaces:
Serializable
,Comparable<Spec.OptionType>
- Enclosing class:
- Spec
public static enum Spec.OptionType extends Enum<Spec.OptionType>
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Spec.OptionType
valueOf(String name)
Returns the enum constant of this type with the specified name.static Spec.OptionType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ANY
public static final Spec.OptionType ANY
Arguments for an ANY option are unvalidated.
-
BOOLEAN
public static final Spec.OptionType BOOLEAN
-
INTEGER
public static final Spec.OptionType INTEGER
-
FLOAT
public static final Spec.OptionType FLOAT
-
LIST
public static final Spec.OptionType LIST
-
LIST_OR_ELEMENT
public static final Spec.OptionType LIST_OR_ELEMENT
This option converts arguments automatically to a list if the argument is not a list.
-
MAP
public static final Spec.OptionType MAP
-
STRING
public static final Spec.OptionType STRING
-
-
Method Detail
-
values
public static Spec.OptionType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Spec.OptionType c : Spec.OptionType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Spec.OptionType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-