public interface EnvironmentReader
This is simplified version of the EnvironmentAccessor to have only what is needed on the client side to work with INI files or registry.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
TYPE_INI
Environment type INI file
|
static java.lang.String |
TYPE_REG
Environment type registry
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getEnvironmentName()
Get the environment's name.
|
java.lang.String |
getEnvironmentType()
Get the current environment's type.
|
java.lang.String |
getKeyValue(java.lang.String section,
java.lang.String key)
Getting the key value from the current environment.
|
boolean |
load()
Creates application defaults implementing Progress LOAD statement.
|
void |
setKeyValue(java.lang.String section,
java.lang.String key,
java.lang.String value)
Adds, modifies and deletes keys in current environment.
|
void |
unload()
Unloads specifies environment from the current one.
|
static final java.lang.String TYPE_INI
static final java.lang.String TYPE_REG
boolean load()
true
if loaded false otherwisevoid setKeyValue(java.lang.String section, java.lang.String key, java.lang.String value)
section
- The name of the section containing the key to modify.key
- The name of the key key to modify or default key if not specified.value
- The new value of the key under modification.java.lang.String getKeyValue(java.lang.String section, java.lang.String key)
section
- The name of the section containing the key to get.key
- The name of the key key to get or default key if not specified.void unload()
java.lang.String getEnvironmentName()
java.lang.String getEnvironmentType()