public enum TokenClass extends Enum<TokenClass>
| Enum Constant and Description |
|---|
ALERT |
OPERATION |
RESOURCE |
TARGET_RESOURCE |
TEST |
| Modifier and Type | Method and Description |
|---|---|
static TokenClass |
getByText(String input)
Return the tokenclass that matches the input text or null if not found.
|
String |
getDescription() |
String |
getText() |
static TokenClass |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TokenClass[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TokenClass ALERT
public static final TokenClass RESOURCE
public static final TokenClass TARGET_RESOURCE
public static final TokenClass OPERATION
public static final TokenClass TEST
public static TokenClass[] values()
for (TokenClass c : TokenClass.values()) System.out.println(c);
public static TokenClass 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 String getText()
public String getDescription()
public static TokenClass getByText(String input)
input - a token text like alert, which would return the
ALERT token class.Copyright © 2008-2013 Red Hat, Inc.. All Rights Reserved.