Package net.mezzdev.config.api.migration
Enum Class ConfigMigrationStatus
- All Implemented Interfaces:
Serializable,Comparable<ConfigMigrationStatus>,Constable
Describes the outcome of a registered legacy config migration.
- Since:
- 0.3.0
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionMigration failed without applying any of its updates.The destination did not exist and the selected legacy file was migrated successfully.The destination already existed, so migration was not attempted.The migration target is permanently inactive, such as a client declaration on a dedicated server.None of the registered legacy files existed, so migration was not attempted. -
Method Summary
Modifier and TypeMethodDescriptionstatic ConfigMigrationStatusReturns the enum constant of this class with the specified name.static ConfigMigrationStatus[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
MIGRATED
The destination did not exist and the selected legacy file was migrated successfully. -
SKIPPED_DESTINATION_EXISTS
The destination already existed, so migration was not attempted. -
SKIPPED_NO_LEGACY_FILE
None of the registered legacy files existed, so migration was not attempted. -
SKIPPED_INACTIVE
The migration target is permanently inactive, such as a client declaration on a dedicated server. -
FAILED
Migration failed without applying any of its updates.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-