public abstract class ConfigManager extends Object
ConfigType can be obtained from
ConfigManager.
ConfigManager instances can be obtained only by using the
ResourceManager.getConfigManager() method.
ConfigType| 构造器 | 说明 |
|---|---|
ConfigManager() |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
abstract boolean |
getBoolean(ConfigType type) |
Converts a globalization configuration to a boolean value.
|
abstract String |
getString(ConfigType type) |
Converts a globalization configuration to a string.
|
public abstract boolean getBoolean(ConfigType type) throws AccessDeniedException, NotExistException, WrongTypeException
type - Indicates the globalization configuration type. Globalization
configuration types that can be converted to boolean values are
described in ConfigType.WrongTypeException - Throws this exception if the configurations are
not of the boolean type. In this case, check the
configuration type.NotExistException - Throws this exception if the specified
configuration type is unavailable. The type must
be obtained from ConfigType.AccessDeniedException - Throws this exception if access to the
configurations of the specified type is denied.
In this case, check whether required permissions
are granted.ConfigTypepublic abstract String getString(ConfigType type) throws AccessDeniedException, NotExistException, WrongTypeException
type - Indicates the globalization configuration type. Globalization
configuration types that can be converted to string values are
described in ConfigType.WrongTypeException - Throws this exception if the configurations are
not of the string type. In this case, check the
configuration type.NotExistException - Throws this exception if the specified
configuration type is unavailable. The type must
be obtained from ConfigType.AccessDeniedException - Throws this exception if access to the
configurations of the specified type is denied.
In this case, check whether required permissions
are granted.ConfigType