|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.extjwnl.dictionary.file.DictionaryCatalogSet<E>
public class DictionaryCatalogSet<E extends DictionaryFile>
Simple container for DictionaryCatalog
s that allows
a DictionaryFile
to be retrieved by its POS
and DictionaryFileType
.
Constructor Summary | |
---|---|
DictionaryCatalogSet(Dictionary dictionary,
Map<String,Param> params,
Class desiredDictionaryFileType)
Creates a catalog set of the specified type of file using files in the specified dictionary directory. |
Method Summary | |
---|---|
void |
close()
|
void |
delete()
|
void |
edit()
|
DictionaryCatalog<E> |
get(DictionaryFileType fileType)
|
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()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DictionaryCatalogSet(Dictionary dictionary, Map<String,Param> params, Class desiredDictionaryFileType) throws JWNLException
dictionary
- dictionaryparams
- parametersdesiredDictionaryFileType
- desiredDictionaryFileType
JWNLException
- JWNLExceptionMethod Detail |
---|
public void open() throws IOException
IOException
public void delete() throws IOException
IOException
public boolean isOpen()
public void close()
public DictionaryCatalog<E> get(DictionaryFileType fileType)
public int size()
public 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 IOException, JWNLException
IOException
JWNLException
public void edit() throws IOException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |