public class Configuration
extends java.lang.Object
Currently, it contains variables of: LA_DIR, IDB_PROPERTY_FILE, etc..
History:
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
AUTO_MODE |
static java.lang.String |
DB_DIR
relative data base directory to LA_DIR
|
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_PORT_NUM
Database port number
|
static java.lang.String |
DB_TYPE
Data base
|
static java.lang.String |
DB_USERNAME
Database user name
|
static java.lang.String |
FIRST_VERSION
the first lexAccess version released in Java
|
static java.lang.String |
JDBC_URL
Java Data Base Connectivity URL
|
static java.lang.String |
LA_DIR
key for the path of LVG directory defined in configuration file
|
static java.lang.String |
LATEST_VERSION
the latest lexAccess version (need ot be updated annually)
|
static java.lang.String |
NO_OUTPUT_MSG
No records found message
|
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 information from configuration.
|
void |
OverwriteProperties(java.util.Hashtable<java.lang.String,java.lang.String> properties)
Overwrite values in config if it is specified in the properties.
|
public static final java.lang.String LA_DIR
public static final java.lang.String AUTO_MODE
public static final java.lang.String FIRST_VERSION
public static final java.lang.String LATEST_VERSION
public static final java.lang.String DB_DIR
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_PORT_NUM
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 static final java.lang.String NO_OUTPUT_MSG
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 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 configuration file from class pathpublic 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()
Submit a bug or feature
Copyright © 2013 National Library of Medicine