public class XmlConfigurationUtil extends Object
| Constructor and Description |
|---|
XmlConfigurationUtil(String _configFileName)
Create a new configuration util instance and use the given filename as configuration file.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
getBoolean(String _key,
boolean _default)
Retrieve a configuration value as boolean.
|
double |
getDouble(String _key,
double _default)
Retrieve a configuration value as double.
|
int |
getInt(String _key,
int _default)
Get a configuration value as int.
|
String |
getString(String _key)
Get a config value as String.
|
String |
getString(String _key,
String _default)
Returns a config value as String, or the default string if _key could not be found.
|
List<String> |
getStringList(String _key)
Returns the results of key as ArrayList.
|
Set<String> |
getStringSet(String _key,
Class<? extends Set> _setClass)
Returns a result as Set of the given Set-Subclass.
|
public XmlConfigurationUtil(String _configFileName) throws FileNotFoundException
_configFileName - FileNotFoundExceptionpublic String getString(String _key)
_key - public String getString(String _key, String _default)
_key - _default - public int getInt(String _key, int _default)
_key - _default - public double getDouble(String _key, double _default)
_key - _default - public boolean getBoolean(String _key, boolean _default)
_key - _default - public List<String> getStringList(String _key)
_key - Copyright © 2017. All rights reserved.