public class ResourceUtil extends Object
ResourceUtil class.
Modifier and Type | Field and Description |
---|---|
static String |
UNDEFINED
Unknown constant will be returned when there is no description
configured.
|
Constructor and Description |
---|
ResourceUtil() |
Modifier and Type | Method and Description |
---|---|
String |
getCountryDescription(Locale l,
String key)
Returns the hierarchys description text from the resource bundle.
|
String |
getCountryDescription(String key)
getCountryDescription.
|
String |
getHolidayDescription(Locale locale,
String key)
The description read with the provided locale.
|
String |
getHolidayDescription(String key)
The description read with the default locale.
|
Set<String> |
getISOCodes()
Returns a list of ISO codes.
|
URL |
getResource(String resourceName)
Returns the resource by URL.
|
public static final String UNDEFINED
public String getHolidayDescription(String key)
key
- a String
object.public String getHolidayDescription(Locale locale, String key)
public String getCountryDescription(String key)
getCountryDescription.
key
- a String
object.public String getCountryDescription(Locale l, String key)
l
- Locale to return the description text for.key
- a String
object.public Set<String> getISOCodes()
Copyright © 18.01.2010–2015. All rights reserved.