Enum Class CapabilityState
- All Implemented Interfaces:
Serializable,Comparable<CapabilityState>,Constable
Whether a capability can be used right now, and if not, why.
- Since:
- 1.8.0
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionUsable now.Needs a plugin that is missing, disabled or too old.Supported by this installation, but switched off by its configuration.Tried to start and failed.Starting up; ask again later.Not part of the installed edition.Not known to this installation, for example an id from a newer release. -
Method Summary
Modifier and TypeMethodDescriptionbooleanWhether the capability can be used now.booleanWhether the capability may become available without changing the installation's plugins, edition or version: true only while it is still starting.static CapabilityStateReturns the enum constant of this class with the specified name.static CapabilityState[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
AVAILABLE
Usable now. -
INITIALIZING
Starting up; ask again later. -
DISABLED
Supported by this installation, but switched off by its configuration. -
RESTRICTED
Not part of the installed edition. No addon can unlock it. -
DEPENDENCY_MISSING
Needs a plugin that is missing, disabled or too old. -
FAILED
Tried to start and failed. -
UNKNOWN
Not known to this installation, for example an id from a newer release.
-
-
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
-
isAvailable
public boolean isAvailable()Whether the capability can be used now. -
isTemporary
public boolean isTemporary()Whether the capability may become available without changing the installation's plugins, edition or version: true only while it is still starting.
-