@Deprecated public final class EGovConfig extends Object
| Modifier and Type | Method and Description |
|---|---|
static String[] |
getArray(String xmlFileName,
String name)
Deprecated.
Gets the array.
|
static String[] |
getArray(String xmlFileName,
String name,
String[] defaultValue)
Deprecated.
Gets the array.
|
static String[] |
getArray(String xmlFileName,
String name,
String[] defaultValue,
String category)
Deprecated.
Gets the array.
|
static boolean |
getBooleanProperty(String xmlFileName,
String name,
boolean defaultValue)
Deprecated.
Gets the boolean property.
|
static boolean |
getBooleanProperty(String xmlFileName,
String name,
boolean defaultValue,
String categoryName)
Deprecated.
Gets the boolean property.
|
static double |
getDoubleProperty(String xmlFileName,
String name,
double defaultValue)
Deprecated.
Gets the double property.
|
static double |
getDoubleProperty(String xmlFileName,
String name,
double defaultValue,
String category)
Deprecated.
Gets the double property.
|
static int |
getIntProperty(String xmlFileName,
String name,
int defaultValue)
Deprecated.
Gets the int property.
|
static int |
getIntProperty(String xmlFileName,
String name,
int defaultValue,
String category)
Deprecated.
Gets the int property.
|
static long |
getLongProperty(String xmlFileName,
String name,
long defaultValue)
Deprecated.
Gets the long property.
|
static long |
getLongProperty(String xmlFileName,
String name,
long defaultValue,
String categoryName)
Deprecated.
Gets the long property.
|
static String |
getMessage(String filename,
String messageKey)
Deprecated.
This method returns the String message based on the given properties file name and message key.
|
static String |
getProperty(String xmlFileName,
String key,
String defaultValue,
String categoryName)
Deprecated.
This is the real implementation.
|
public static String getProperty(String xmlFileName, String key, String defaultValue, String categoryName)
xmlFileName - - name of the XML configuration filekey - - name of the property to searcfordefaultValue - - the defaultValue that will be returned if the property cannot be foundcategoryName - - the name of the categorypublic static boolean getBooleanProperty(String xmlFileName, String name, boolean defaultValue, String categoryName)
xmlFileName - the xml file namename - the namedefaultValue - the default valuecategoryName - the category namepublic static boolean getBooleanProperty(String xmlFileName, String name, boolean defaultValue)
xmlFileName - the xml file namename - the namedefaultValue - the default valuepublic static double getDoubleProperty(String xmlFileName, String name, double defaultValue)
xmlFileName - the xml file namename - the namedefaultValue - the default valuepublic static double getDoubleProperty(String xmlFileName, String name, double defaultValue, String category)
xmlFileName - the xml file namename - the namedefaultValue - the default valuecategory - the categorypublic static int getIntProperty(String xmlFileName, String name, int defaultValue)
xmlFileName - the xml file namename - the namedefaultValue - the default valuepublic static int getIntProperty(String xmlFileName, String name, int defaultValue, String category)
xmlFileName - the xml file namename - the namedefaultValue - the default valuecategory - the categorypublic static long getLongProperty(String xmlFileName, String name, long defaultValue)
xmlFileName - the xml file namename - the namedefaultValue - the default valuepublic static long getLongProperty(String xmlFileName, String name, long defaultValue, String categoryName)
xmlFileName - the xml file namename - the namedefaultValue - the default valuecategoryName - the category namepublic static String[] getArray(String xmlFileName, String name)
xmlFileName - the xml file namename - the namepublic static String[] getArray(String xmlFileName, String name, String[] defaultValue)
xmlFileName - the xml file namename - the namedefaultValue - the default valuepublic static String[] getArray(String xmlFileName, String name, String[] defaultValue, String category)
xmlFileName - the xml file namename - the namedefaultValue - the default valuecategory - the categorypublic static String getMessage(String filename, String messageKey)
filename - name of the properties filemessagekey - name of the message key to search forCopyright © 2015–2017 eGovernments Foundation. All rights reserved.