Package io.goobi.viewer.model.archives
Enum Class ArchiveManager.DatabaseState
java.lang.Object
java.lang.Enum<ArchiveManager.DatabaseState>
io.goobi.viewer.model.archives.ArchiveManager.DatabaseState
- All Implemented Interfaces:
Serializable
,Comparable<ArchiveManager.DatabaseState>
,Constable
- Enclosing class:
- ArchiveManager
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionState only applicable to a single database if it was successfully loaded into memoryArchive names are queried from the basex serverState indicating that a database could not be parsed due to errors in the configuration for building the tree entriesState only applicable to a single database if loading the database failed because the basex server answer could not be interpretedNo basex url configured in config-viewerbasex url call not returnedState before the first query to the basex server -
Method Summary
Modifier and TypeMethodDescriptionstatic ArchiveManager.DatabaseState
Returns the enum constant of this class with the specified name.static ArchiveManager.DatabaseState[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NOT_INITIALIZED
State before the first query to the basex server -
ARCHIVES_LOADED
Archive names are queried from the basex server -
ARCHIVE_TREE_LOADED
State only applicable to a single database if it was successfully loaded into memory -
ERROR_NOT_CONFIGURED
No basex url configured in config-viewer -
ERROR_NOT_REACHABLE
basex url call not returned -
ERROR_INVALID_FORMAT
State only applicable to a single database if loading the database failed because the basex server answer could not be interpreted -
ERROR_INVALID_CONFIGURATION
State indicating that a database could not be parsed due to errors in the configuration for building the tree entries
-
-
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
-