Enum DatasetConfig.DatasetState
- java.lang.Object
-
- java.lang.Enum<DatasetConfig.DatasetState>
-
- uk.ac.rdg.resc.edal.catalogue.jaxb.DatasetConfig.DatasetState
-
- All Implemented Interfaces:
Serializable
,Comparable<DatasetConfig.DatasetState>
- Enclosing class:
- DatasetConfig
public static enum DatasetConfig.DatasetState extends Enum<DatasetConfig.DatasetState>
The state of a Dataset.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ERROR
An error occurred when loading the dataset.LOADING
In the process of loadingNEEDS_REFRESH
Dataset is new or has changed and needs to be loadedREADY
Ready for useUPDATING
Dataset is ready but is internally sychronizing its metadata
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DatasetConfig.DatasetState
valueOf(String name)
Returns the enum constant of this type with the specified name.static DatasetConfig.DatasetState[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NEEDS_REFRESH
public static final DatasetConfig.DatasetState NEEDS_REFRESH
Dataset is new or has changed and needs to be loaded
-
LOADING
public static final DatasetConfig.DatasetState LOADING
In the process of loading
-
READY
public static final DatasetConfig.DatasetState READY
Ready for use
-
UPDATING
public static final DatasetConfig.DatasetState UPDATING
Dataset is ready but is internally sychronizing its metadata
-
ERROR
public static final DatasetConfig.DatasetState ERROR
An error occurred when loading the dataset.
-
-
Method Detail
-
values
public static DatasetConfig.DatasetState[] 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 (DatasetConfig.DatasetState c : DatasetConfig.DatasetState.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DatasetConfig.DatasetState 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
-
-