public class Configuration
extends java.lang.Object
Currently, it contains variables of: LVG_DIR, LVG_STOP_WORD_FILE, MAX_RULE_UNINFLECTED_TERMS, etc..
History:
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
AUTO_MODE |
static java.lang.String |
CCGI
key for the mark of cgi ending defined in configuration file
|
static java.lang.String |
CONJ_WORD_FILE
key for path of conjunction word file defined in configuration file
|
static java.lang.String |
DB_DRIVER
Java Data base Connectivity Driver
|
static java.lang.String |
DB_HOST
Database host name
|
static java.lang.String |
DB_NAME
database name
|
static java.lang.String |
DB_PASSWORD
database password
|
static java.lang.String |
DB_TYPE
Data base
|
static java.lang.String |
DB_USERNAME
database user name
|
static java.lang.String |
DIACRITICS_FILE
key for the path of diacritics file defined in configuration file
|
static java.lang.String |
DIR_TRIE_STEM_LENGTH
Min legal number of stem legnth in derivation trie
|
static java.lang.String |
END_TAG
ending tag for unicode symbol name
|
static java.lang.String |
JDBC_URL
Java Data Base Connectivity URL
|
static java.lang.String |
LIGATURES_FILE
key for the path of ligatures file defined in configuration file
|
static java.lang.String |
LVG_DIR
key for the path of LVG directory defined in configuration file
|
static java.lang.String |
LVG_PROMPT
key for the mark of prompt in configuration file
|
static java.lang.String |
MAX_METAPHONE
key for the maximum length of metaphone code
|
static java.lang.String |
MAX_RESULT
key for the number of maximum records shown defined in configuration
file
|
static java.lang.String |
MAX_UNINFLS
key for the maximum uninflected terms defined in configuration file
|
static java.lang.String |
MIN_TERM_LENGTH
key for the minimum length of rule generated terms
|
static java.lang.String |
NO_OUTPUT
key for the mark of no output message defined in configuration file
|
static java.lang.String |
NON_STRIP_MAP_UNICODE_FILE
key for the path of non-strip map Unicode file defined in conf file
|
static java.lang.String |
NONINFO_WORD_FILE
key for the path of non-info word file defined in configuration file
|
static java.lang.String |
REMOVE_S_FILE
key for the path of remove (s) rule file defined in conf file
|
static java.lang.String |
START_TAG
starting tag for unicode symbol name
|
static java.lang.String |
STOP_WORD_FILE
key for the path of stop word file defined in configuration file
|
static java.lang.String |
UNICODE_FILE
key for the path of Unicode mapping file defined in conf file
|
static java.lang.String |
UNICODE_SYMBOL_FILE
key for the path of Unicode symbols mapping file defined in conf file
|
static java.lang.String |
UNICODE_SYNONYM_FILE
key for the path of unicode synonyms file defined in conf file
|
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 information from configuration.
|
int |
GetSize()
Get the size of key of config hashtable.
|
void |
OverwriteProperties(java.util.Hashtable<java.lang.String,java.lang.String> properties)
Overwrite the value if it is specified in the properties.
|
public static final java.lang.String LVG_DIR
public static final java.lang.String AUTO_MODE
public static final java.lang.String STOP_WORD_FILE
public static final java.lang.String NONINFO_WORD_FILE
public static final java.lang.String CONJ_WORD_FILE
public static final java.lang.String DIACRITICS_FILE
public static final java.lang.String LIGATURES_FILE
public static final java.lang.String UNICODE_SYNONYM_FILE
public static final java.lang.String UNICODE_SYMBOL_FILE
public static final java.lang.String UNICODE_FILE
public static final java.lang.String NON_STRIP_MAP_UNICODE_FILE
public static final java.lang.String REMOVE_S_FILE
public static final java.lang.String MIN_TERM_LENGTH
public static final java.lang.String MAX_METAPHONE
public static final java.lang.String MAX_UNINFLS
public static final java.lang.String CCGI
public static final java.lang.String NO_OUTPUT
public static final java.lang.String MAX_RESULT
public static final java.lang.String LVG_PROMPT
public static final java.lang.String DIR_TRIE_STEM_LENGTH
public static final java.lang.String START_TAG
public static final java.lang.String END_TAG
public static final java.lang.String DB_TYPE
public static final java.lang.String DB_DRIVER
public static final java.lang.String JDBC_URL
public static final java.lang.String DB_HOST
public static final java.lang.String DB_NAME
public static final java.lang.String DB_USERNAME
public static final java.lang.String DB_PASSWORD
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 int GetSize()
public java.lang.String GetConfiguration(java.lang.String key)
key
- key (name) of the configuration value to be getpublic void OverwriteProperties(java.util.Hashtable<java.lang.String,java.lang.String> properties)
properties
- properties to be overwrite in the configurationpublic java.lang.String GetInformation()