|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.extjwnl.dictionary.file.DictionaryCatalog<E>
public class DictionaryCatalog<E extends DictionaryFile>
A container for the files associated with a catalog (the index, data, and exception files associated with a POS).
Field Summary | |
---|---|
static String |
DICTIONARY_FILE_TYPE_KEY
File type install parameter. |
static String |
DICTIONARY_PATH_KEY
Dictionary path install parameter. |
Constructor Summary | |
---|---|
DictionaryCatalog(Dictionary dictionary,
DictionaryFileType fileType,
Class desiredDictionaryFileType,
Map<String,Param> params)
|
Method Summary | |
---|---|
void |
close()
|
void |
delete()
|
void |
edit()
|
E |
get(POS pos)
|
Dictionary |
getDictionary()
Returns the dictionary this object belongs to. |
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()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String DICTIONARY_PATH_KEY
public static final String DICTIONARY_FILE_TYPE_KEY
Constructor Detail |
---|
public DictionaryCatalog(Dictionary dictionary, DictionaryFileType fileType, Class desiredDictionaryFileType, Map<String,Param> params) throws JWNLException
JWNLException
Method Detail |
---|
public DictionaryFileType getKey()
public void open() throws IOException
IOException
public void delete() throws IOException
IOException
public boolean isOpen()
public void close()
public int size()
public Iterator<E> getFileIterator()
public E get(POS pos)
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 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 |