net.esper.pattern.guard
Enum GuardEnum

java.lang.Object
  extended by java.lang.Enum<GuardEnum>
      extended by net.esper.pattern.guard.GuardEnum
All Implemented Interfaces:
Serializable, Comparable<GuardEnum>

public enum GuardEnum
extends Enum<GuardEnum>

Enum for all build-in guards.


Enum Constant Summary
TIMER_WITHIN
          Timer guard.
 
Method Summary
static GuardEnum forName(String namespace, String name)
          Returns the enum for the given namespace and name.
 Class getClazz()
          Gets the implementation class.
 String getName()
          Returns name.
 String getNamespace()
          Returns the namespace name.
static GuardEnum valueOf(String name)
          Returns the enum constant of this type with the specified name.
static GuardEnum[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

TIMER_WITHIN

public static final GuardEnum TIMER_WITHIN
Timer guard.

Method Detail

values

public static final GuardEnum[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(GuardEnum c : GuardEnum.values())
        System.out.println(c);

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

valueOf

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

getNamespace

public String getNamespace()
Returns the namespace name.

Returns:
namespace name

getName

public String getName()
Returns name.

Returns:
short name

getClazz

public Class getClazz()
Gets the implementation class.

Returns:
implementation class

forName

public static GuardEnum forName(String namespace,
                                String name)
Returns the enum for the given namespace and name.

Parameters:
namespace - - guard namespace
name - - guard name
Returns:
enum