public class Preferences extends ParameterMap
ParameterMap.DefaultParameterMap
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
bundleName |
protected java.util.Map<java.lang.String,java.lang.String> |
data |
mapPrint
Constructor and Description |
---|
Preferences() |
Preferences(boolean concurrent,
boolean objectMap) |
Preferences(java.util.Map<java.lang.String,java.lang.String> data) |
Preferences(java.util.Map<java.lang.String,java.lang.String> data,
boolean concurrent,
boolean objectMap) |
Preferences(ParameterMap setup,
java.lang.String data,
java.lang.String delim) |
Preferences(ParameterMap setup,
java.lang.String data,
java.lang.String delim,
boolean concurrent,
boolean objectMap) |
Preferences(java.lang.String bundleName) |
Preferences(java.lang.String data,
java.lang.String delim) |
Preferences(java.net.URL url) |
Modifier and Type | Method and Description |
---|---|
java.util.Set<java.util.Map.Entry<java.lang.String,java.lang.String>> |
entrySet() |
protected void |
extract(java.util.Map<java.lang.String,java.lang.String> data) |
java.lang.String |
get(java.lang.String key,
java.lang.String def) |
java.lang.Object |
getObject(java.lang.String key) |
java.lang.Object |
getObject(java.lang.String key,
java.lang.Object def) |
java.util.List<java.lang.Object> |
getOrderedValues(java.lang.String prefix)
Deprecated.
|
protected void |
loadBundle(java.util.Map<java.lang.String,java.lang.String> data)
Загрузка файла конфигурации в Map, имя файла определено в поле
bundleName . |
void |
loadData(java.lang.String conf,
java.lang.String delim) |
protected void |
loadData(java.lang.String conf,
java.lang.String delim,
java.util.Map<java.lang.String,java.lang.String> data) |
protected void |
loadDataEntry(java.util.Map<java.lang.String,java.lang.String> data,
java.lang.String line) |
protected void |
loadFromInputStream(java.io.InputStream inputStream,
java.util.Map<java.lang.String,java.lang.String> data) |
protected void |
loadModuleSetup(java.sql.Connection con,
int mid,
java.util.Map<java.lang.String,java.lang.String> data)
Загрузка конфигурации из БД в Map.
|
java.util.List<java.util.Map<java.lang.String,java.lang.String>> |
parseObjects(java.lang.String prefix)
Deprecated.
use subIndexed, subKeyed
|
java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> |
parseObjectsNoOrder(java.lang.String prefix)
Deprecated.
use subIndexed, subKeyed
|
void |
putObject(java.lang.String key,
java.lang.Object val) |
java.lang.Object |
removeObject(java.lang.String key) |
void |
set(java.lang.String key,
java.lang.String value) |
protected void |
updateData(java.util.Map<java.lang.String,java.lang.String> data)
Обновление данных в сетапе.
|
addActionListener, fingerprint, get, getBigDecimal, getBoolean, getChar, getDouble, getEnum, getFloat, getInt, getIntegerList, getLocalDate, getLong, inherit, sub, subIndexed, subKeyed, subLined, throwActionEvent, toReference, toString
protected java.lang.String bundleName
protected final java.util.Map<java.lang.String,java.lang.String> data
public Preferences()
public Preferences(boolean concurrent, boolean objectMap)
public Preferences(java.lang.String bundleName)
public Preferences(java.net.URL url)
public Preferences(java.lang.String data, java.lang.String delim)
public Preferences(ParameterMap setup, java.lang.String data, java.lang.String delim)
public Preferences(ParameterMap setup, java.lang.String data, java.lang.String delim, boolean concurrent, boolean objectMap)
public Preferences(java.util.Map<java.lang.String,java.lang.String> data)
public Preferences(java.util.Map<java.lang.String,java.lang.String> data, boolean concurrent, boolean objectMap)
public java.lang.String get(java.lang.String key, java.lang.String def)
get
in class ParameterMap
public java.util.Set<java.util.Map.Entry<java.lang.String,java.lang.String>> entrySet()
entrySet
in class ParameterMap
protected void extract(java.util.Map<java.lang.String,java.lang.String> data)
extract
in class ParameterMap
public void set(java.lang.String key, java.lang.String value)
public void loadData(java.lang.String conf, java.lang.String delim)
public final void putObject(java.lang.String key, java.lang.Object val)
public final java.lang.Object getObject(java.lang.String key, java.lang.Object def)
public final java.lang.Object getObject(java.lang.String key)
public final java.lang.Object removeObject(java.lang.String key)
protected void loadBundle(java.util.Map<java.lang.String,java.lang.String> data)
bundleName
.protected void loadFromInputStream(java.io.InputStream inputStream, java.util.Map<java.lang.String,java.lang.String> data) throws java.io.IOException
java.io.IOException
protected void loadData(java.lang.String conf, java.lang.String delim, java.util.Map<java.lang.String,java.lang.String> data)
protected void loadDataEntry(java.util.Map<java.lang.String,java.lang.String> data, java.lang.String line)
@Deprecated public java.util.List<java.lang.Object> getOrderedValues(java.lang.String prefix)
prefix
- String@Deprecated public java.util.List<java.util.Map<java.lang.String,java.lang.String>> parseObjects(java.lang.String prefix)
prefix
- setup
- @Deprecated public java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> parseObjectsNoOrder(java.lang.String prefix)
protected void loadModuleSetup(java.sql.Connection con, int mid, java.util.Map<java.lang.String,java.lang.String> data)
con
- mid
- data
- protected void updateData(java.util.Map<java.lang.String,java.lang.String> data)
data
-