wangting
2024-12-26 fa261e8c1220b31af54e8167e4de9c3320b1af27
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
package com.vci.client.common;
 
import java.util.Locale;
 
import com.vci.client.ui.locale.LocaleDisplay;
 
public class BaseConfitUtils {
    /**
     * KEY,从远程服务器端conf.properties中配置值对应的Boolean类型值, 如果key配置的值等于true,则返回true,否则返回false
     * <p>Description: </p>
     * 
     * @author xchao
     * @time 2013-3-20
     * @param key
     * @return
     */
    public static boolean getBooleanConfigValue(String key){
        return ConfigUtils.getConfigValue(key).equals("true");
    }
    
    /**
     * 批回指定KEY,在RMIPFramework的国际化信息
     * <p>Description: </p>
     * 
     * @author xchao
     * @time 2013-3-20
     * @param key
     * @return
     */
    public static String getFramworkI18nString(String key){
        return getI18nString(key, "RMIPFramework");
    }
    /**
     * 根据指定的key, 在相应的国际化文件中取配置值
     * <p>Description: </p>
     * 
     * @author xchao
     * @time 2013-3-20
     * @param key key
     * @param fileName 国际化文件名称(e.g:RMIPCode)
     * @return
     */
    public static String getI18nString(String key, String fileName){
        return LocaleDisplay.getI18nString(key, fileName, Locale.getDefault());
    }
 
}