Package net.didion.jwnl.data
Class LexFileIdMap
- java.lang.Object
-
- net.didion.jwnl.data.LexFileIdMap
-
public class LexFileIdMap extends Object
LexFileIdMap maps the names of the lexiographer files to the identifiers found in the data.pos files.- Author:
- brett
-
-
Constructor Summary
Constructors Constructor Description LexFileIdMap()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static long
getFileId(String fileName)
Gets the file id based on the name.static String
getFileName(long id)
Gets the file name based on an id.
-
-
-
Method Detail
-
getFileName
public static 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(String fileName)
Gets the file id based on the name.- Parameters:
fileName
- the file name: see LEXNAMES(5WN)- Returns:
- lexicographer file id
-
-