Enum Class ConfigLoadResult.State
java.lang.Object
java.lang.Enum<ConfigLoadResult.State>
com.ultikits.ultitools.config.document.ConfigLoadResult.State
- All Implemented Interfaces:
Serializable,Comparable<ConfigLoadResult.State>,java.lang.constant.Constable
- Enclosing class:
ConfigLoadResult
The four outcomes of a load.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionNo file exists at the path.The file was read and parsed;ConfigLoadResult.document()andConfigLoadResult.fingerprint()are set.The file was read but is not a document this layer reads;ConfigLoadResult.parserMessage()is set.The file exists but reading it failed;ConfigLoadResult.cause()is set. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ConfigLoadResult.StateReturns the enum constant of this class with the specified name.static ConfigLoadResult.State[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ABSENT
No file exists at the path. -
LOADED
The file was read and parsed;ConfigLoadResult.document()andConfigLoadResult.fingerprint()are set. -
UNREADABLE
The file exists but reading it failed;ConfigLoadResult.cause()is set. -
UNPARSEABLE
The file was read but is not a document this layer reads;ConfigLoadResult.parserMessage()is set.
-
-
Constructor Details
-
State
private State()
-
-
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
-