tml
Class Configuration

java.lang.Object
  extended by tml.Configuration

public class Configuration
extends java.lang.Object

This class implements the configuration for TML, it reads a default config file from the jar. It contains the settings for log4j, stopwords and language to use.

Author:
Jorge Villalon

Constructor Summary
Configuration()
           
 
Method Summary
static java.lang.String getContextPath()
           
static java.lang.String getReport()
           
 void getReport(java.io.PrintStream out)
           
static java.lang.String getTmlFolder()
           
static java.util.Properties getTmlProperties()
           
static java.util.Properties getTmlProperties(boolean debugMode)
           
static java.util.Properties getTmlProperties(boolean debugMode, java.lang.String tmlFolder)
           
static java.util.Properties getTmlProperties(java.lang.String tmlFolder)
           
static void initialize()
          Initializes TML configuration.
static boolean isDebugMode()
           
static void setDebugMode(boolean debugMode)
           
static void setProperties(java.util.Properties prop)
          Set TML properties
static void setTmlFolder(java.lang.String tmlFolder)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Configuration

public Configuration()
Method Detail

getTmlFolder

public static java.lang.String getTmlFolder()

setTmlFolder

public static void setTmlFolder(java.lang.String tmlFolder)

getReport

public static java.lang.String getReport()

getReport

public void getReport(java.io.PrintStream out)

getContextPath

public static java.lang.String getContextPath()

isDebugMode

public static boolean isDebugMode()
Returns:
the debugMode

setDebugMode

public static void setDebugMode(boolean debugMode)
Parameters:
debugMode - the debugMode to set

getTmlProperties

public static java.util.Properties getTmlProperties()
                                             throws java.io.IOException
Returns:
the set the default properties for TML
Throws:
java.io.IOException

getTmlProperties

public static java.util.Properties getTmlProperties(java.lang.String tmlFolder)
                                             throws java.io.IOException
Returns:
the set the default properties for TML
Throws:
java.io.IOException

getTmlProperties

public static java.util.Properties getTmlProperties(boolean debugMode,
                                                    java.lang.String tmlFolder)
                                             throws java.io.IOException
Returns:
the set the default properties for TML
Throws:
java.io.IOException

getTmlProperties

public static java.util.Properties getTmlProperties(boolean debugMode)
                                             throws java.io.IOException
Returns:
the set the default properties for TML
Throws:
java.io.IOException

setProperties

public static void setProperties(java.util.Properties prop)
Set TML properties

Parameters:
prop -

initialize

public static void initialize()
                       throws java.io.IOException
Initializes TML configuration. Reads the default configuration and the overrides if tml.properties file is found in execution folder.

Throws:
java.io.IOException