Enum PermissionType
- All Implemented Interfaces:
Serializable, Comparable<PermissionType>, java.lang.constant.Constable
Defines the set of types required for the default permissions
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PermissionTypefromString(String string) If there is any type that matches the string, return it.static PermissionTypeReturns the enum constant of this type with the specified name.static PermissionType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
NONE
-
FILE_PERMISSION
-
PROPERTY_PERMISSION
-
AWT_PERMISSION
-
SOCKET_PERMISSION
-
RUNTIME_PERMISSION
-
AUDIO_PERMISSION
-
REFLECT_PERMISSION
-
-
Field Details
-
type
-
-
Constructor Details
-
PermissionType
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
fromString
If there is any type that matches the string, return it. If no matches, return NONE.- Parameters:
string- a permission type value- Returns:
- the closest matching default permission type
-