Class OldLanguageFactory


  • public class OldLanguageFactory
    extends java.lang.Object
    • Field Detail

      • OLD_LANGUAGE_FILE_EXT

        public static final java.lang.String OLD_LANGUAGE_FILE_EXT
        See Also:
        Constant Field Values
    • Method Detail

      • getOldLanguageFactory

        public static OldLanguageFactory getOldLanguageFactory()
        Returns the single instance of the OldLanguageFactory.
      • getOldLanguage

        public Language getOldLanguage​(LanguageID languageID,
                                       int majorVersion)
        Return old language if an old language specification file exists for the specified language and version.
        Parameters:
        languageID -
        majorVersion - language major version, or -1 for latest version
        Returns:
        old language or null if specification not found.
      • getLatestOldLanguage

        public LanguageDescription getLatestOldLanguage​(LanguageID languageID)
        Return language description for the latest version of an old language
        Parameters:
        languageID -
        Returns:
        old language description or null if specification not found.
      • getLatestOldLanaguageDescriptions

        public LanguageDescription[] getLatestOldLanaguageDescriptions()
        Return the Language Descriptions for the latest version of all old languages.
      • createOldLanguageFile

        public static void createOldLanguageFile​(Language lang,
                                                 java.io.File file)
                                          throws java.io.IOException,
                                                 LanguageNotFoundException
        Create old-language file for the specified language.
        Parameters:
        lang - language
        file - output file
        Throws:
        java.io.IOException - if file error occurs
        LanguageNotFoundException - if lang is unknown to DefaultLanguageService