public class Configuration
extends java.lang.Object
History:
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
LC_DIR
key for the path of LVG directory defined in configuration file
|
static java.lang.String |
PARTICLE_FILE |
static java.lang.String |
PREPOSITION_FILE |
static java.lang.String |
TEXT_INDENT
key for the text indent defined in configuration file
|
static java.lang.String |
XML_HEADER |
static java.lang.String |
XML_INDENT |
Constructor and Description |
---|
Configuration(java.lang.String fName,
boolean useClassPath)
Create a Configuration object.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
GetConfiguration(java.lang.String key)
Get a value from configuration file by specifying the key.
|
java.lang.String |
GetInformation()
Get system level informatio from configuration.
|
static java.lang.String |
OverWriteProperty(java.lang.String key,
Configuration conf,
java.util.Hashtable<java.lang.String,java.lang.String> properties)
Get a value from configuration file by specifying the key.
|
public static final java.lang.String LC_DIR
public static final java.lang.String TEXT_INDENT
public static final java.lang.String XML_INDENT
public static final java.lang.String XML_HEADER
public static final java.lang.String PREPOSITION_FILE
public static final java.lang.String PARTICLE_FILE
public Configuration(java.lang.String fName, boolean useClassPath)
fName
- the path of the configuration file or base name when
using class path.useClassPath
- a flag of finding configurationfile from class pathpublic java.lang.String GetConfiguration(java.lang.String key)
key
- key (name) of the configuration value to be getpublic static java.lang.String OverWriteProperty(java.lang.String key, Configuration conf, java.util.Hashtable<java.lang.String,java.lang.String> properties)
key
- key (name) of the configuration value to be getconf
- lexCheck configuration java objectproperties
- properties to be overwrite in the configurationpublic java.lang.String GetInformation()