public class DictionaryCatalogSet<E extends DictionaryFile> extends java.lang.Object implements Owned
DictionaryCatalogs that allows
a DictionaryFile to be retrieved by its POS
and DictionaryFileType.| Constructor and Description |
|---|
DictionaryCatalogSet(Dictionary dictionary,
java.util.Map<java.lang.String,Param> params,
java.lang.Class desiredDictionaryFileType)
Creates a catalog set of the specified type of file using files in the specified dictionary directory.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
delete() |
void |
edit() |
DictionaryCatalog<E> |
get(DictionaryFileType fileType) |
java.util.Iterator<DictionaryCatalog<E>> |
getCatalogIterator() |
Dictionary |
getDictionary()
Returns the dictionary this object belongs to.
|
E |
getDictionaryFile(POS pos,
DictionaryFileType fileType) |
boolean |
isOpen() |
void |
open() |
void |
save() |
void |
setDictionary(Dictionary dictionary)
Sets the dictionary this object belongs to.
|
int |
size() |
public DictionaryCatalogSet(Dictionary dictionary, java.util.Map<java.lang.String,Param> params, java.lang.Class desiredDictionaryFileType) throws JWNLException
dictionary - dictionaryparams - parametersdesiredDictionaryFileType - desiredDictionaryFileTypeJWNLException - JWNLExceptionpublic void open()
throws JWNLException
JWNLExceptionpublic boolean delete()
throws JWNLException
JWNLExceptionpublic boolean isOpen()
public void close()
throws JWNLException
JWNLExceptionpublic DictionaryCatalog<E> get(DictionaryFileType fileType)
public int size()
public java.util.Iterator<DictionaryCatalog<E>> getCatalogIterator()
public E getDictionaryFile(POS pos, DictionaryFileType fileType)
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