org.semwebcentral.sweetrules.infrastructure
Class SweetConfigLoader

java.lang.Object
  extended byorg.semwebcentral.sweetrules.infrastructure.SweetConfigLoader

public class SweetConfigLoader
extends java.lang.Object

The default configuration loader for SWEET

Author:
Shashidhara K Ganjugunte, Dr. Benjamin Grosof, Dr. Said Tabet, Chitravanu Neogy

Field Summary
static java.lang.String COMMAND_SHELL_ARG_COUNT_PROPERTY
          Property representing the # of arguments to a command shell
static java.lang.String COMMAND_SHELL_ARG_PROPERTY_PREFIX
          Prefix of property representing the arguments to the Command Shell
static java.lang.String COMMAND_SHELL_PROPERTY
          Property representing the command shell
static java.lang.String COMMAND_SHELL_SCRIPT_FILE_EXTENSION
          Property representing the default extension of script files of a shell.
static java.lang.String COMMON_RULES_21_TRANSFORMER_SCRIPT_PROPERTY
          The script file for common rules 2.1 transformer
static java.lang.String COMMON_RULES_33_SCLP_ENGINE_SCRIPT_PROPERTY
          The Common Rules 3.3 SCLP engine property
static java.lang.String COMMON_RULES_33_TRANSFORMER_SCRIPT_PROPERTY
          The script file for common rules 3.3 transformer
static java.lang.String COMMON_RULES_33_TRANSLATOR_SCRIPT_PROPERTY
          The script file for common rules 3.3 translator
static java.lang.String COMMON_RULES33_CLASSPATH_PROPERTY
          The common rules 33 classpath
private static java.util.Properties configProperties
          The properties object
static java.lang.String DISAMBIG_DUMMY_PREDICATE_PREFIX
          Property representing the dummy predicate prefix used for disambiguation
static java.lang.String DUMMY_PREDICATE_NAME
          Property representing the dummy predicate
static java.lang.String SCRIPT_ROOT_DIR_PROPERTY
          The directory containing the scripts
static java.lang.String XSB_DIR_PATH_PROPERTY
          Property representing the path where the folder which contains xsb.exe is present
static java.lang.String XSLT_CLASSPATH_PROPERTY
          The classpath required by XSLT
static java.lang.String XSLT_FILE_SCRIPT_PROPERTY
          The script file to invoke XSLT
 
Constructor Summary
SweetConfigLoader()
           
 
Method Summary
static java.lang.String getProperty(java.lang.String key)
          Returns the value of the specified property
static void loadConfiguration(java.lang.String configFile)
          The configuration loader to load the specified configuration file
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

XSB_DIR_PATH_PROPERTY

public static final java.lang.String XSB_DIR_PATH_PROPERTY
Property representing the path where the folder which contains xsb.exe is present

See Also:
Constant Field Values

DUMMY_PREDICATE_NAME

public static final java.lang.String DUMMY_PREDICATE_NAME
Property representing the dummy predicate

See Also:
Constant Field Values

DISAMBIG_DUMMY_PREDICATE_PREFIX

public static final java.lang.String DISAMBIG_DUMMY_PREDICATE_PREFIX
Property representing the dummy predicate prefix used for disambiguation

See Also:
Constant Field Values

COMMAND_SHELL_PROPERTY

public static final java.lang.String COMMAND_SHELL_PROPERTY
Property representing the command shell

See Also:
Constant Field Values

COMMAND_SHELL_ARG_COUNT_PROPERTY

public static final java.lang.String COMMAND_SHELL_ARG_COUNT_PROPERTY
Property representing the # of arguments to a command shell

See Also:
Constant Field Values

COMMAND_SHELL_SCRIPT_FILE_EXTENSION

public static final java.lang.String COMMAND_SHELL_SCRIPT_FILE_EXTENSION
Property representing the default extension of script files of a shell. e.g on bash it is ".sh" and cmd.exe it is ".cmd"

See Also:
Constant Field Values

COMMAND_SHELL_ARG_PROPERTY_PREFIX

public static final java.lang.String COMMAND_SHELL_ARG_PROPERTY_PREFIX
Prefix of property representing the arguments to the Command Shell

See Also:
Constant Field Values

SCRIPT_ROOT_DIR_PROPERTY

public static final java.lang.String SCRIPT_ROOT_DIR_PROPERTY
The directory containing the scripts

See Also:
Constant Field Values

COMMON_RULES33_CLASSPATH_PROPERTY

public static final java.lang.String COMMON_RULES33_CLASSPATH_PROPERTY
The common rules 33 classpath

See Also:
Constant Field Values

COMMON_RULES_33_TRANSFORMER_SCRIPT_PROPERTY

public static final java.lang.String COMMON_RULES_33_TRANSFORMER_SCRIPT_PROPERTY
The script file for common rules 3.3 transformer

See Also:
Constant Field Values

COMMON_RULES_33_SCLP_ENGINE_SCRIPT_PROPERTY

public static final java.lang.String COMMON_RULES_33_SCLP_ENGINE_SCRIPT_PROPERTY
The Common Rules 3.3 SCLP engine property

See Also:
Constant Field Values

XSLT_FILE_SCRIPT_PROPERTY

public static final java.lang.String XSLT_FILE_SCRIPT_PROPERTY
The script file to invoke XSLT

See Also:
Constant Field Values

XSLT_CLASSPATH_PROPERTY

public static final java.lang.String XSLT_CLASSPATH_PROPERTY
The classpath required by XSLT

See Also:
Constant Field Values

COMMON_RULES_33_TRANSLATOR_SCRIPT_PROPERTY

public static final java.lang.String COMMON_RULES_33_TRANSLATOR_SCRIPT_PROPERTY
The script file for common rules 3.3 translator

See Also:
Constant Field Values

COMMON_RULES_21_TRANSFORMER_SCRIPT_PROPERTY

public static final java.lang.String COMMON_RULES_21_TRANSFORMER_SCRIPT_PROPERTY
The script file for common rules 2.1 transformer

See Also:
Constant Field Values

configProperties

private static final java.util.Properties configProperties
The properties object

Constructor Detail

SweetConfigLoader

public SweetConfigLoader()
Method Detail

loadConfiguration

public static final void loadConfiguration(java.lang.String configFile)
The configuration loader to load the specified configuration file

Parameters:
configFile - The full path of the configuration file

getProperty

public static java.lang.String getProperty(java.lang.String key)
Returns the value of the specified property

Parameters:
key - The key whose value is desired
Returns:
The value of the key specified