public enum ResourceAction extends Enum<ResourceAction>
| Enum Constant and Description |
|---|
CONSUME |
DELETE |
GET |
GRANT_PERMISSION |
PUBLISH |
| Modifier and Type | Method and Description |
|---|---|
static String |
getResourceAction(String action) |
String |
toString() |
static ResourceAction |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ResourceAction[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ResourceAction DELETE
public static final ResourceAction GET
public static final ResourceAction CONSUME
public static final ResourceAction PUBLISH
public static final ResourceAction GRANT_PERMISSION
public static ResourceAction[] values()
for (ResourceAction c : ResourceAction.values()) System.out.println(c);
public static ResourceAction valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static String getResourceAction(String action) throws Exception
Exceptionpublic String toString()
toString in class Enum<ResourceAction>Copyright © 2018 WSO2. All rights reserved.