- All Implemented Interfaces:
Serializable,Comparable<License.OperationMode>,Constable
- Enclosing class:
License
Decouples operation mode of a license from the license type value.
Note: The mode indicates features that should be made available, but it does not indicate whether the license is active!
The id byte is used for ordering operation modes
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic intcompare(License.OperationMode opMode1, License.OperationMode opMode2) Returns non-zero positive number whenopMode1is greater thanopMode2static License.OperationModeParses anOperatingModefrom a String.static License.OperationModeresolve(License.LicenseType type) Determine the operating mode for a license typestatic License.OperationModeReturns the enum constant of this class with the specified name.static License.OperationMode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
MISSING
-
TRIAL
-
BASIC
-
STANDARD
-
GOLD
-
PLATINUM
-
ENTERPRISE
-
-
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
-
compare
Returns non-zero positive number whenopMode1is greater thanopMode2 -
resolve
Determine the operating mode for a license type- See Also:
-
parse
Parses anOperatingModefrom a String. The string must name an operating mode, and not a licensing level (that is, it cannot parse old style license levels such as "dev" or "silver").- See Also:
-
description
-