org.rhq.enterprise.server.plugins.alertOperations
Enum TokenClass
java.lang.Object
java.lang.Enum<TokenClass>
org.rhq.enterprise.server.plugins.alertOperations.TokenClass
- All Implemented Interfaces:
- Serializable, Comparable<TokenClass>
public enum TokenClass
- extends Enum<TokenClass>
Class a @See{Token} can be in.
- Author:
- Heiko W. Rupp
ALERT
public static final TokenClass ALERT
RESOURCE
public static final TokenClass RESOURCE
TARGET_RESOURCE
public static final TokenClass TARGET_RESOURCE
OPERATION
public static final TokenClass OPERATION
TEST
public static final TokenClass TEST
values
public static TokenClass[] 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 (TokenClass c : TokenClass.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static TokenClass 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 name
NullPointerException - if the argument is null
getText
public String getText()
getDescription
public String getDescription()
getByText
public static TokenClass getByText(String input)
- Return the tokenclass that matches the input text or null if not found.
The token delimiters need to be already stripped from the input
- Parameters:
input - a token text like alert, which would return the
ALERT token class.
- Returns:
- The matching token class or null if not found
Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.