Class LexFileIdMap
java.lang.Object
net.didion.jwnl.data.LexFileIdMap
LexFileIdMap maps the names of the lexiographer files to the identifiers
found in the data.pos files.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static voidCheck if the maps are initialized.static longGets the file id based on the name.static StringgetFileName(long id) Gets the file name based on an id.private static voidinitMap()Initializes our mappings
-
Field Details
-
lexIdMap
A mapping invalid input: '<'Long, String> of id's to files. -
lexNameMap
A mapping invalid input: '<'String, Long> of files to id's. -
init
static boolean initInitialization variable for this map.
-
-
Constructor Details
-
LexFileIdMap
public LexFileIdMap()
-
-
Method Details
-
getFileName
Gets the file name based on an id.- Parameters:
id- - the file id: see LEXNAMES(5WN)- Returns:
- lexicographer file name (ex adj.all)
-
getFileId
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.
-