Package org.yamcs
Enum ConfigScope
- java.lang.Object
-
- java.lang.Enum<ConfigScope>
-
- org.yamcs.ConfigScope
-
- All Implemented Interfaces:
Serializable,Comparable<ConfigScope>
public enum ConfigScope extends Enum<ConfigScope>
Represents a type of configuration file
-
-
Enum Constant Summary
Enum Constants Enum Constant Description YAMCSRepresents yamcs.yaml configuration.YAMCS_INSTANCERepresents yamcs.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ConfigScopevalueOf(String name)Returns the enum constant of this type with the specified name.static ConfigScope[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
YAMCS
public static final ConfigScope YAMCS
Represents yamcs.yaml configuration. This file contains global configuration options.
-
YAMCS_INSTANCE
public static final ConfigScope YAMCS_INSTANCE
Represents yamcs.[instance].yaml configuration. Such files contain instance-specific configuration options.
-
-
Method Detail
-
values
public static ConfigScope[] 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 (ConfigScope c : ConfigScope.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ConfigScope 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
-
-