org.javagen.revgen.context
Enum Keys

java.lang.Object
  extended by java.lang.Enum<Keys>
      extended by org.javagen.revgen.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
BASE_PACKAGE_NAME
           
COLUMN
           
CONFIG
           
DAO
           
DAOIMPL
           
ENTITY
           
ENUM
           
FK_CONSTRAINT
           
GEN
           
HBM
           
MODEL
           
MODEL_NAME
           
OWNING_SIDE
           
PK
           
PK_NAME_TEMPLATE
           
PROPERTY
           
REFERENCE
           
RELATIVE_PACKAGE_NAME
           
TABLE
           
TEST
           
 
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

PROPERTY

public static final Keys PROPERTY

REFERENCE

public static final Keys REFERENCE

ENTITY

public static final Keys ENTITY

GEN

public static final Keys GEN

PK

public static final Keys PK

ENUM

public static final Keys ENUM

DAO

public static final Keys DAO

DAOIMPL

public static final Keys DAOIMPL

TEST

public static final Keys TEST

HBM

public static final Keys HBM

CONFIG

public static final Keys CONFIG

TABLE

public static final Keys TABLE

COLUMN

public static final Keys COLUMN

FK_CONSTRAINT

public static final Keys FK_CONSTRAINT

OWNING_SIDE

public static final Keys OWNING_SIDE

MODEL

public static final Keys MODEL

MODEL_NAME

public static final Keys MODEL_NAME

PK_NAME_TEMPLATE

public static final Keys PK_NAME_TEMPLATE

BASE_PACKAGE_NAME

public static final Keys BASE_PACKAGE_NAME

RELATIVE_PACKAGE_NAME

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