Class ResourceUtil


  • public class ResourceUtil
    extends Object
    ResourceUtil class.
    • 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 static String getHolidayDescription​(String key)
        The description read with the default locale.
        Parameters:
        key - a String object.
        Returns:
        holiday description using default locale.
      • getHolidayDescription

        public static String getHolidayDescription​(Locale locale,
                                                   String key)
        The description read with the provided locale.
        Parameters:
        locale - a Locale object.
        key - a String object.
        Returns:
        holiday description using the provided locale.
      • getCountryDescription

        public static String getCountryDescription​(String key)

        getCountryDescription.

        Parameters:
        key - a String object.
        Returns:
        the description
      • getCountryDescription

        public static String getCountryDescription​(Locale locale,
                                                   String key)
        Returns the hierarchies description text from the resource bundle.
        Parameters:
        locale - Locale to return the description text for.
        key - a String object.
        Returns:
        Description text
      • getResource

        public static URL getResource​(String resourceName)
        Returns the resource by URL.
        Parameters:
        resourceName - the name/path of the resource to load
        Returns:
        the URL to the resource