public class DictionaryCatalogSet<E extends DictionaryFile> extends java.lang.Object implements Owned
DictionaryCatalog
s 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
JWNLException
public boolean delete() throws JWNLException
JWNLException
public boolean isOpen()
public void close() throws JWNLException
JWNLException
public 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()
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