Class BundlesStore


  • public class BundlesStore
    extends Object
    • Constructor Detail

      • BundlesStore

        public BundlesStore()
      • BundlesStore

        public BundlesStore​(List<String> bundleRootFolders)
      • BundlesStore

        public BundlesStore​(String rootFolder)
                     throws HopException
        Let's look at all the messages bundle package root folders. We only look at src/main/resources/ Avoid impl folders
        Parameters:
        rootFolder -
        Throws:
        HopException
    • Method Detail

      • removeTranslation

        public void removeTranslation​(String packageName,
                                      String locale,
                                      String key)
      • getChangedBundleFiles

        public List<BundleFile> getChangedBundleFiles()
      • getBundleFiles

        public List<BundleFile> getBundleFiles​(String packageName,
                                               String locale)
        Get the bundle file for the given package of all bundles for the locale if the package name is null.
        Parameters:
        packageName - The package name or null if you want all files for a locale
        locale - The locale to search for
        Returns:
        The bundle files
      • getBundleRootFolders

        public List<String> getBundleRootFolders()
        Gets bundleRootFolders
        Returns:
        value of bundleRootFolders
      • setBundleRootFolders

        public void setBundleRootFolders​(List<String> bundleRootFolders)
        Parameters:
        bundleRootFolders - The bundleRootFolders to set
      • getPackageLanguageBundleMap

        public Map<String,​Map<String,​BundleFile>> getPackageLanguageBundleMap()
        Gets packageLanguageBundleMap
        Returns:
        value of packageLanguageBundleMap
      • setPackageLanguageBundleMap

        public void setPackageLanguageBundleMap​(Map<String,​Map<String,​BundleFile>> packageLanguageBundleMap)
        Parameters:
        packageLanguageBundleMap - The packageLanguageBundleMap to set