Package org.basex.query
Enum QueryModule.Permission
- java.lang.Object
-
- java.lang.Enum<QueryModule.Permission>
-
- org.basex.query.QueryModule.Permission
-
- All Implemented Interfaces:
Serializable
,Comparable<QueryModule.Permission>
- Enclosing class:
- QueryModule
public static enum QueryModule.Permission extends Enum<QueryModule.Permission>
Permission required to call a function.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static QueryModule.Permission
valueOf(String name)
Returns the enum constant of this type with the specified name.static QueryModule.Permission[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final QueryModule.Permission NONE
No permissions.
-
READ
public static final QueryModule.Permission READ
Read permissions.
-
WRITE
public static final QueryModule.Permission WRITE
Write permissions.
-
CREATE
public static final QueryModule.Permission CREATE
Create permissions.
-
ADMIN
public static final QueryModule.Permission ADMIN
Admin permissions.
-
-
Method Detail
-
values
public static QueryModule.Permission[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (QueryModule.Permission c : QueryModule.Permission.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static QueryModule.Permission valueOf(String name)
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
-
-