Class LexFileIdMap


  • public class LexFileIdMap
    extends java.lang.Object
    LexFileIdMap maps the names of the lexiographer files to the identifiers found in the data.pos files.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) static boolean init
      Initialization variable for this map.
      (package private) static java.util.Map lexIdMap
      A mapping of id's to files.
      (package private) static java.util.Map lexNameMap
      A mapping of files to id's.
    • Constructor Summary

      Constructors 
      Constructor Description
      LexFileIdMap()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      private static void checkInit()
      Check if the maps are initialized.
      static long getFileId​(java.lang.String fileName)
      Gets the file id based on the name.
      static java.lang.String getFileName​(long id)
      Gets the file name based on an id.
      private static void initMap()
      Initializes our mappings
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • lexIdMap

        static java.util.Map lexIdMap
        A mapping of id's to files.
      • lexNameMap

        static java.util.Map lexNameMap
        A mapping of files to id's.
      • init

        static boolean init
        Initialization variable for this map.
    • Constructor Detail

      • LexFileIdMap

        public LexFileIdMap()
    • Method Detail

      • getFileName

        public static java.lang.String getFileName​(long id)
        Gets the file name based on an id.
        Parameters:
        id - - the file id: see LEXNAMES(5WN)
        Returns:
        lexicographer file name (ex adj.all)
      • getFileId

        public static long getFileId​(java.lang.String fileName)
        Gets the file id based on the name.
        Parameters:
        fileName - the file name: see LEXNAMES(5WN)
        Returns:
        lexicographer file id
      • initMap

        private static void initMap()
        Initializes our mappings
      • checkInit

        private static void checkInit()
        Check if the maps are initialized.