org.rhq.enterprise.server.plugins.alertOperations
Enum Token

java.lang.Object
  extended by java.lang.Enum<Token>
      extended by org.rhq.enterprise.server.plugins.alertOperations.Token
All Implemented Interfaces:
Serializable, Comparable<Token>

public enum Token
extends Enum<Token>

Tokens that can be replaced in operation parameters

Author:
Heiko W. Rupp

Enum Constant Summary
ALERT_CONDITIONS
           
ALERT_DEF_DESC
           
ALERT_DEF_NAME
           
ALERT_DEF_PRIO
           
ALERT_FIRE_TIME
           
ALERT_ID
           
ALERT_URL
           
ALERT_WILL_DISABLE
           
ALERT_WILL_RECOVER
           
OPERATION_ID
           
OPERATION_NAME
           
RESOURCE_ID
           
RESOURCE_NAME
           
RESOURCE_PARENT_ID
           
RESOURCE_PARENT_NAME
           
RESOURCE_PLATFORM_ID
           
RESOURCE_PLATFORM_NAME
           
RESOURCE_PLATFORM_TYPE
           
RESOURCE_TYPE_ID
           
RESOURCE_TYPE_NAME
           
TEST_CAMEL
           
TEST_ECHO
           
TEST_FIX
           
TRESOURCE_ID
           
TRESOURCE_NAME
           
TRESOURCE_PARENT_ID
           
TRESOURCE_PARENT_NAME
           
TRESOURCE_PLATFORM_ID
           
TRESOURCE_PLATFORM_NAME
           
TRESOURCE_PLATFORM_TYPE
           
TRESOURCE_TYPE_ID
           
TRESOURCE_TYPE_NAME
           
 
Method Summary
static Token getByText(String input)
          Return the token that matches the input text or null if not found.
static Set<Token> getByTokenClass(TokenClass tokenClass)
           
 String getDescription()
           
 String getName()
           
 String getText()
           
static Token valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Token[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

ALERT_ID

public static final Token ALERT_ID

ALERT_URL

public static final Token ALERT_URL

ALERT_FIRE_TIME

public static final Token ALERT_FIRE_TIME

ALERT_WILL_RECOVER

public static final Token ALERT_WILL_RECOVER

ALERT_CONDITIONS

public static final Token ALERT_CONDITIONS

ALERT_DEF_NAME

public static final Token ALERT_DEF_NAME

ALERT_DEF_DESC

public static final Token ALERT_DEF_DESC

ALERT_DEF_PRIO

public static final Token ALERT_DEF_PRIO

ALERT_WILL_DISABLE

public static final Token ALERT_WILL_DISABLE

RESOURCE_ID

public static final Token RESOURCE_ID

RESOURCE_NAME

public static final Token RESOURCE_NAME

RESOURCE_PARENT_ID

public static final Token RESOURCE_PARENT_ID

RESOURCE_PARENT_NAME

public static final Token RESOURCE_PARENT_NAME

RESOURCE_TYPE_ID

public static final Token RESOURCE_TYPE_ID

RESOURCE_TYPE_NAME

public static final Token RESOURCE_TYPE_NAME

RESOURCE_PLATFORM_ID

public static final Token RESOURCE_PLATFORM_ID

RESOURCE_PLATFORM_NAME

public static final Token RESOURCE_PLATFORM_NAME

RESOURCE_PLATFORM_TYPE

public static final Token RESOURCE_PLATFORM_TYPE

TRESOURCE_ID

public static final Token TRESOURCE_ID

TRESOURCE_NAME

public static final Token TRESOURCE_NAME

TRESOURCE_PARENT_ID

public static final Token TRESOURCE_PARENT_ID

TRESOURCE_PARENT_NAME

public static final Token TRESOURCE_PARENT_NAME

TRESOURCE_TYPE_ID

public static final Token TRESOURCE_TYPE_ID

TRESOURCE_TYPE_NAME

public static final Token TRESOURCE_TYPE_NAME

TRESOURCE_PLATFORM_ID

public static final Token TRESOURCE_PLATFORM_ID

TRESOURCE_PLATFORM_NAME

public static final Token TRESOURCE_PLATFORM_NAME

TRESOURCE_PLATFORM_TYPE

public static final Token TRESOURCE_PLATFORM_TYPE

OPERATION_ID

public static final Token OPERATION_ID

OPERATION_NAME

public static final Token OPERATION_NAME

TEST_ECHO

public static final Token TEST_ECHO

TEST_FIX

public static final Token TEST_FIX

TEST_CAMEL

public static final Token TEST_CAMEL
Method Detail

values

public static Token[] 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 (Token c : Token.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static Token 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

getByText

public static Token getByText(String input)
Return the token 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.id, which would return the ALERT_ID token.
Returns:
The matching token or null if not found

getByTokenClass

public static Set<Token> getByTokenClass(TokenClass tokenClass)

getName

public String getName()

getText

public String getText()

getDescription

public String getDescription()


Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.