- java.lang.Object
-
- de.focus_shift.jollyday.core.util.ResourceUtil
-
public class ResourceUtil extends Object
ResourceUtil class.
- Version:
- $Id: $
- Author:
- Sven Diedrichsen
-
-
Constructor Summary
Constructors Constructor Description ResourceUtil()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCountryDescription(String key)getCountryDescription.StringgetCountryDescription(Locale l, String key)Returns the hierarchies description text from the resource bundle.StringgetHolidayDescription(String key)The description read with the default locale.StringgetHolidayDescription(Locale locale, String key)The description read with the provided locale.Set<String>getISOCodes()Returns a list of ISO codes.URLgetResource(String resourceName)Returns the resource by URL.
-
-
-
Field Detail
-
UNDEFINED
public static final String UNDEFINED
Unknown constant will be returned when there is no description configured.- See Also:
- Constant Field Values
-
-
Method Detail
-
getHolidayDescription
public String getHolidayDescription(String key)
The description read with the default locale.- Parameters:
key- aStringobject.- Returns:
- holiday description using default locale.
-
getHolidayDescription
public String getHolidayDescription(Locale locale, String key)
The description read with the provided locale.
-
getCountryDescription
public String getCountryDescription(String key)
getCountryDescription.
- Parameters:
key- aStringobject.- Returns:
- the description
-
getCountryDescription
public String getCountryDescription(Locale l, String key)
Returns the hierarchies description text from the resource bundle.- Parameters:
l- Locale to return the description text for.key- aStringobject.- Returns:
- Description text
-
getISOCodes
public Set<String> getISOCodes()
Returns a list of ISO codes.- Returns:
- 2-digit ISO codes.
-
-