org.javagen.agile.core.context
Enum Keys

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

public enum Keys
extends Enum<Keys>

Common keys used to hold values in the context.

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

Author:
Richard Easterling

Enum Constant Summary
FILE_NAME_TEMPLATE
           
MODEL
           
MODEL_ID_INDEX
           
MODEL_NAME
           
NANO_TEMPLATE
           
OUTPUT_DIRECTORY_TEMPLATE
           
 
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

FILE_NAME_TEMPLATE

public static final Keys FILE_NAME_TEMPLATE

OUTPUT_DIRECTORY_TEMPLATE

public static final Keys OUTPUT_DIRECTORY_TEMPLATE

MODEL_ID_INDEX

public static final Keys MODEL_ID_INDEX

MODEL

public static final Keys MODEL

MODEL_NAME

public static final Keys MODEL_NAME

NANO_TEMPLATE

public static final Keys NANO_TEMPLATE
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.