Enum Class OptionDataType
- All Implemented Interfaces:
Serializable
,Comparable<OptionDataType>
,Constable
An enum defining the different data types an option can have
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe data type if the option is a BooleanThe data type if the option is a string colorThe data type if the option is a doubleThe data type if the option is an IntegerThe data type if the option is a string languageThe data type if the option is a string logging levelHow to handle invalid portalsThe data type if the option is a string remote database driverThe data type if the option is a StringThe data type if the option is a string list -
Method Summary
Modifier and TypeMethodDescriptionString[]
Gets a list of available values for this data typestatic OptionDataType
Returns the enum constant of this class with the specified name.static OptionDataType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
STRING
The data type if the option is a String -
COLOR
The data type if the option is a string color -
BOOLEAN
The data type if the option is a Boolean -
STRING_LIST
The data type if the option is a string list -
INTEGER
The data type if the option is an Integer -
DOUBLE
The data type if the option is a double -
LANGUAGE
The data type if the option is a string language -
LOGGING_LEVEL
The data type if the option is a string logging level -
REMOTE_DATABASE_DRIVER
The data type if the option is a string remote database driver -
PORTAL_VALIDITY
How to handle invalid portals
-
-
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
-
getValues
Gets a list of available values for this data typeNull will be returned for option types with an undefined value scope. This is used for add-ons, and should not be removed!
- Returns:
A list of available values
-