public class Configs extends Object
getCfg(String)
to access the configured value (String).Modifier and Type | Class and Description |
---|---|
static class |
Configs.keys
Handled keys for config.xml
|
Modifier and Type | Field and Description |
---|---|
protected static String |
cfgFile |
protected static HashMap<String,HashMap<String,String>> |
cfgs |
protected static ILogger |
log |
Constructor and Description |
---|
Configs() |
Modifier and Type | Method and Description |
---|---|
static boolean |
getBoolean(String key) |
static String |
getCfg(String key) |
static String |
getCfg(String tid,
String k) |
static int |
getInt(String key,
int deflt) |
static boolean |
hasCfg(String key) |
static boolean |
hasCfg(String tid,
String key) |
static void |
init(String xmlDir)
For redirect path of config.xml
|
protected static String |
load(HashMap<String,HashMap<String,String>> cfgs,
String tid) |
static String |
load(HashMap<String,HashMap<String,String>> cfgs,
String xml,
String tid) |
public static void init(String xmlDir)
xmlDir
- protected static String load(HashMap<String,HashMap<String,String>> cfgs, String tid)
cfgs
- tid
- public static String load(HashMap<String,HashMap<String,String>> cfgs, String xml, String tid)
cfgs
- xml
- tid
- public static boolean getBoolean(String key)
public static int getInt(String key, int deflt)
public static boolean hasCfg(String key)
Copyright © 2024. All rights reserved.