org.javagen.agile.db.context
Enum Keys

java.lang.Object
  extended by java.lang.Enum<Keys>
      extended by org.javagen.agile.db.context.Keys
All Implemented Interfaces:
Serializable, Comparable<Keys>

public enum Keys
extends Enum<Keys>

Common keys used to lookup values and templates in the context.

To allow new keys to be introduced without recompilation, enumeration instances themselves are not used in JavaGen code, but rather their string values. Propper usage is Keys.KEY_NAME.toString().

Author:
Richard Easterling

Enum Constant Summary
UNIQUE
           
 
Method Summary
 String toString()
           
static Keys valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Keys[] 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, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

UNIQUE

public static final Keys UNIQUE
Method Detail

values

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

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

valueOf

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

toString

public String toString()
Overrides:
toString in class Enum<Keys>


Copyright 2006-2006-2007 Outsource Cafe Inc.. All Rights Reserved.