Class LabelUtil


  • public class LabelUtil
    extends Object
    Localized label handler for OpenStego
    • Constructor Detail

      • LabelUtil

        protected LabelUtil​(String namespace)
        Constructor is protected
        Parameters:
        namespace - Namespace for the label
    • Method Detail

      • addNamespace

        public static void addNamespace​(String namespace,
                                        String bundle)
        Method to add new namespace using resource bundle
        Parameters:
        namespace - Namespace for the labels
        bundle - Resource bundle name
      • getInstance

        public static LabelUtil getInstance​(String namespace)
        Method to get instance of LabelUtil based on the namespace
        Parameters:
        namespace - Namespace for the labels
        Returns:
        Instance of LabelUtil
      • getString

        public String getString​(String key)
        Method to get label value for the given label key
        Parameters:
        key - Key for the label
        Returns:
        Display value for the label
      • getString

        public String getString​(String key,
                                Object... parameters)
        Method to get label value for the given label key (using optional parameters)
        Parameters:
        key - Key for the label
        parameters - Parameters to pass for a parameterized label
        Returns:
        Display value for the label