org.jaitools.jiffle
Class JiffleProperties

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

public class JiffleProperties
extends java.lang.Object

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

Since:
0.1
Version:
$Id: JiffleProperties.java 1653 2011-06-16 10:23:02Z michael.bedward $
Author:
Michael Bedward

Field Summary
static java.lang.String COMMON_SOURCE_TEMPLATES_KEY
          Key: common runtime source generation templates.
static java.lang.Class<? extends JiffleRuntime> DEFAULT_DIRECT_BASE_CLASS
          Default base class for direct runtime classes.
static java.lang.Class<? extends JiffleRuntime> DEFAULT_INDIRECT_BASE_CLASS
          Default base class for indirect runtime classes.
static java.lang.String DIRECT_BASE_CLASS_KEY
          Key: direct runtime base class name.
static java.lang.String DIRECT_CLASS_KEY
          Key: direct runtime class name.
static java.lang.String DIRECT_SOURCE_TEMPLATES_KEY
          Key: direct runtime source generation templates.
static java.lang.String IMPORTS_KEY
          Key: default runtime imports.
static java.lang.String INDIRECT_BASE_CLASS_KEY
          Key: indirect runtime base class name.
static java.lang.String INDIRECT_CLASS_KEY
          Key: indirect runtime class name.
static java.lang.String INDIRECT_SOURCE_TEMPLATES_KEY
          Key: indirect runtime source generation templates.
static java.lang.String NAME_KEY
          Key: default toot name for a Jiffle instance.
static java.lang.String PROPERTIES_FILE
          Properties file name.
static java.lang.String RUNTIME_IMPORTS_DELIM
          Delimiter used to separate multiple import entries
static java.lang.String RUNTIME_PACKAGE_KEY
          Key: runtime class package
 
Constructor Summary
JiffleProperties()
           
 
Method Summary
static java.lang.String get(java.lang.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 java.lang.String PROPERTIES_FILE
Properties file name.

See Also:
Constant Field Values

NAME_KEY

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

See Also:
Constant Field Values

RUNTIME_PACKAGE_KEY

public static final java.lang.String RUNTIME_PACKAGE_KEY
Key: runtime class package

See Also:
Constant Field Values

DIRECT_CLASS_KEY

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

See Also:
Constant Field Values

DIRECT_BASE_CLASS_KEY

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

See Also:
Constant Field Values

INDIRECT_CLASS_KEY

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

See Also:
Constant Field Values

INDIRECT_BASE_CLASS_KEY

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

See Also:
Constant Field Values

IMPORTS_KEY

public static final java.lang.String IMPORTS_KEY
Key: default runtime imports.

See Also:
Constant Field Values

RUNTIME_IMPORTS_DELIM

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

See Also:
Constant Field Values

COMMON_SOURCE_TEMPLATES_KEY

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

See Also:
Constant Field Values

DIRECT_SOURCE_TEMPLATES_KEY

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

See Also:
Constant Field Values

INDIRECT_SOURCE_TEMPLATES_KEY

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

See Also:
Constant Field Values

DEFAULT_DIRECT_BASE_CLASS

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


DEFAULT_INDIRECT_BASE_CLASS

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

Constructor Detail

JiffleProperties

public JiffleProperties()
Method Detail

get

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

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


Copyright © 2011. All Rights Reserved.