jaitools.jiffle
Class JiffleProperties

java.lang.Object
  extended by jaitools.jiffle.JiffleProperties

public class JiffleProperties
extends Object

Helper class which reads the Jiffle properties file and provides values to other classes. It is used by Jiffle and AbstractSourceGenerator.

Since:
1.1
Version:
$Id: JiffleProperties.java 1512 2011-03-07 02:21:45Z michael.bedward $
Author:
Michael Bedward

Field Summary
static String COMMON_SOURCE_TEMPLATES_KEY
          Key: common runtime source generation templates.
static Class<? extends JiffleRuntime> DEFAULT_DIRECT_BASE_CLASS
          Default base class for direct runtime classes.
static Class<? extends JiffleRuntime> DEFAULT_INDIRECT_BASE_CLASS
          Default base class for indirect runtime classes.
static String DIRECT_BASE_CLASS_KEY
          Key: direct runtime base class name.
static String DIRECT_CLASS_KEY
          Key: direct runtime class name.
static String DIRECT_SOURCE_TEMPLATES_KEY
          Key: direct runtime source generation templates.
static String IMPORTS_KEY
          Key: default runtime imports.
static String INDIRECT_BASE_CLASS_KEY
          Key: indirect runtime base class name.
static String INDIRECT_CLASS_KEY
          Key: indirect runtime class name.
static String INDIRECT_SOURCE_TEMPLATES_KEY
          Key: indirect runtime source generation templates.
static String NAME_KEY
          Key: default toot name for a Jiffle instance.
static String PROPERTIES_FILE
          Properties file name.
static String RUNTIME_IMPORTS_DELIM
          Delimiter used to separate multiple import entries
static String RUNTIME_PACKAGE_KEY
          Key: runtime class package
 
Constructor Summary
JiffleProperties()
           
 
Method Summary
static String get(String key)
          Gets a property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROPERTIES_FILE

public static final String PROPERTIES_FILE
Properties file name.

See Also:
Constant Field Values

NAME_KEY

public static final String NAME_KEY
Key: default toot name for a Jiffle instance.

See Also:
Constant Field Values

RUNTIME_PACKAGE_KEY

public static final String RUNTIME_PACKAGE_KEY
Key: runtime class package

See Also:
Constant Field Values

DIRECT_CLASS_KEY

public static final String DIRECT_CLASS_KEY
Key: direct runtime class name.

See Also:
Constant Field Values

DIRECT_BASE_CLASS_KEY

public static final String DIRECT_BASE_CLASS_KEY
Key: direct runtime base class name.

See Also:
Constant Field Values

INDIRECT_CLASS_KEY

public static final String INDIRECT_CLASS_KEY
Key: indirect runtime class name.

See Also:
Constant Field Values

INDIRECT_BASE_CLASS_KEY

public static final String INDIRECT_BASE_CLASS_KEY
Key: indirect runtime base class name.

See Also:
Constant Field Values

IMPORTS_KEY

public static final String IMPORTS_KEY
Key: default runtime imports.

See Also:
Constant Field Values

RUNTIME_IMPORTS_DELIM

public static final String RUNTIME_IMPORTS_DELIM
Delimiter used to separate multiple import entries

See Also:
Constant Field Values

COMMON_SOURCE_TEMPLATES_KEY

public static final String COMMON_SOURCE_TEMPLATES_KEY
Key: common runtime source generation templates.

See Also:
Constant Field Values

DIRECT_SOURCE_TEMPLATES_KEY

public static final String DIRECT_SOURCE_TEMPLATES_KEY
Key: direct runtime source generation templates.

See Also:
Constant Field Values

INDIRECT_SOURCE_TEMPLATES_KEY

public static final String INDIRECT_SOURCE_TEMPLATES_KEY
Key: indirect runtime source generation templates.

See Also:
Constant Field Values

DEFAULT_DIRECT_BASE_CLASS

public static final Class<? extends JiffleRuntime> DEFAULT_DIRECT_BASE_CLASS
Default base class for direct runtime classes.


DEFAULT_INDIRECT_BASE_CLASS

public static final Class<? extends JiffleRuntime> DEFAULT_INDIRECT_BASE_CLASS
Default base class for indirect runtime classes.

Constructor Detail

JiffleProperties

public JiffleProperties()
Method Detail

get

public static String get(String key)
Gets a property.

Parameters:
key - the property name (key)
Returns:
property value


Copyright © 2009-2011. All Rights Reserved.