Enum Class Property.Category
- All Implemented Interfaces:
Serializable, Comparable<Property.Category>, Constable
The category of a property defines how values for it can be provided.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionthe value of this property can be provided by either the user usingJDACBuilderor/and loaded fromExtensionsthe value of this property can only be provided by JDA-Commands itself.the value of this property can only be provided by the user using methods inJDACBuilder -
Method Summary
Modifier and TypeMethodDescriptionstatic Property.CategoryReturns the enum constant of this class with the specified name.static Property.Category[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PROVIDED
the value of this property can only be provided by JDA-Commands itself. Applies to services likeMessageResolverorI18n- See Also:
-
USER_SETTABLE
the value of this property can only be provided by the user using methods inJDACBuilder- See Also:
-
LOADABLE
the value of this property can be provided by either the user usingJDACBuilderor/and loaded fromExtensions- See Also:
-
-
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
-