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
JWNLException
public DictionaryFileType getKey()
public void open() throws JWNLException
JWNLException
public boolean delete() throws JWNLException
JWNLException
public boolean isOpen()
public void close() throws JWNLException
JWNLException
public int size()
public java.util.Iterator<E> getFileIterator()
public DictionaryFileType getFileType()
public Dictionary getDictionary()
Owned
getDictionary
in interface Owned
public void setDictionary(Dictionary dictionary)
Owned
setDictionary
in interface Owned
dictionary
- the dictionary this object belongs topublic void save() throws JWNLException
JWNLException
public void edit() throws JWNLException
JWNLException