public class DictionaryCatalog<E extends DictionaryFile> extends java.lang.Object implements Owned
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DICTIONARY_FILE_TYPE_KEY
File type install parameter.
|
static java.lang.String |
DICTIONARY_PATH_KEY
Dictionary path install parameter.
|
| Constructor and Description |
|---|
DictionaryCatalog(Dictionary dictionary,
DictionaryFileType fileType,
java.lang.Class desiredDictionaryFileType,
java.util.Map<java.lang.String,Param> params) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
delete() |
void |
edit() |
E |
get(POS pos) |
Dictionary |
getDictionary()
Returns the dictionary this object belongs to.
|
java.util.Iterator<E> |
getFileIterator() |
DictionaryFileType |
getFileType() |
DictionaryFileType |
getKey() |
boolean |
isOpen() |
void |
open() |
void |
save() |
void |
setDictionary(Dictionary dictionary)
Sets the dictionary this object belongs to.
|
int |
size() |
public static final java.lang.String DICTIONARY_PATH_KEY
public static final java.lang.String DICTIONARY_FILE_TYPE_KEY
public DictionaryCatalog(Dictionary dictionary, DictionaryFileType fileType, java.lang.Class desiredDictionaryFileType, java.util.Map<java.lang.String,Param> params) throws JWNLException
JWNLExceptionpublic DictionaryFileType getKey()
public void open()
throws JWNLException
JWNLExceptionpublic boolean delete()
throws JWNLException
JWNLExceptionpublic boolean isOpen()
public void close()
throws JWNLException
JWNLExceptionpublic int size()
public java.util.Iterator<E> getFileIterator()
public DictionaryFileType getFileType()
public Dictionary getDictionary()
OwnedgetDictionary in interface Ownedpublic void setDictionary(Dictionary dictionary)
OwnedsetDictionary in interface Owneddictionary - the dictionary this object belongs topublic void save()
throws JWNLException
JWNLExceptionpublic void edit()
throws JWNLException
JWNLException