Class LabelManagerFactory


  • public final class LabelManagerFactory
    extends java.lang.Object
    • Method Detail

      • getInstance

        public static LabelManagerFactory getInstance()
                                               throws java.io.IOException
        Throws:
        java.io.IOException
      • loadComponentNames

        protected static void loadComponentNames()
      • loadLabelFiles

        protected static void loadLabelFiles()
                                      throws java.io.IOException
        Throws:
        java.io.IOException
      • findMatchingLabels

        public void findMatchingLabels​(java.lang.String component,
                                       java.lang.String fileName,
                                       java.lang.String key,
                                       java.lang.String locale,
                                       boolean onlyNotUsedLabels)
                                throws java.net.MalformedURLException,
                                       org.xml.sax.SAXException,
                                       javax.xml.parsers.ParserConfigurationException,
                                       java.io.IOException,
                                       GeneralException
        Throws:
        java.net.MalformedURLException
        org.xml.sax.SAXException
        javax.xml.parsers.ParserConfigurationException
        java.io.IOException
        GeneralException
      • getLabelFile

        public LabelFile getLabelFile​(java.lang.String fileName)
      • getLabels

        public java.util.Map<java.lang.String,​LabelInfo> getLabels()
      • getLocalesFound

        public java.util.Set<java.lang.String> getLocalesFound()
      • getFilesFound

        public static java.util.Collection<LabelFile> getFilesFound()
      • getComponentNamesFound

        public static java.util.Set<java.lang.String> getComponentNamesFound()
      • getLabelsList

        public java.util.Set<java.lang.String> getLabelsList()
      • getDuplicatedLocalesLabels

        public int getDuplicatedLocalesLabels()
      • getDuplicatedLocalesLabelsList

        public java.util.List<LabelInfo> getDuplicatedLocalesLabelsList()
      • updateLabelValue

        public int updateLabelValue​(java.util.List<java.lang.String> localeNames,
                                    java.util.List<java.lang.String> localeValues,
                                    java.util.List<java.lang.String> localeComments,
                                    LabelInfo label,
                                    java.lang.String key,
                                    java.lang.String keyComment,
                                    java.lang.String fileName)