net.sf.extjwnl.dictionary.file
Class DictionaryCatalogSet<E extends DictionaryFile>

java.lang.Object
  extended by net.sf.extjwnl.dictionary.file.DictionaryCatalogSet<E>
All Implemented Interfaces:
Owned

public class DictionaryCatalogSet<E extends DictionaryFile>
extends Object
implements Owned

Simple container for DictionaryCatalogs that allows a DictionaryFile to be retrieved by its POS and DictionaryFileType.

Author:
John Didion , Aliaksandr Autayeu

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

DictionaryCatalogSet

public DictionaryCatalogSet(Dictionary dictionary,
                            Map<String,Param> params,
                            Class desiredDictionaryFileType)
                     throws JWNLException
Creates a catalog set of the specified type of file using files in the specified dictionary directory.

Parameters:
dictionary - dictionary
params - parameters
desiredDictionaryFileType - desiredDictionaryFileType
Throws:
JWNLException - JWNLException
Method Detail

open

public void open()
          throws IOException
Throws:
IOException

delete

public void delete()
            throws IOException
Throws:
IOException

isOpen

public boolean isOpen()

close

public void close()

get

public DictionaryCatalog<E> get(DictionaryFileType fileType)

size

public int size()

getCatalogIterator

public Iterator<DictionaryCatalog<E>> getCatalogIterator()

getDictionaryFile

public E getDictionaryFile(POS pos,
                           DictionaryFileType fileType)

getDictionary

public Dictionary getDictionary()
Description copied from interface: Owned
Returns the dictionary this object belongs to.

Specified by:
getDictionary in interface Owned
Returns:
the dictionary this object belongs to

setDictionary

public void setDictionary(Dictionary dictionary)
Description copied from interface: Owned
Sets the dictionary this object belongs to.

Specified by:
setDictionary in interface Owned
Parameters:
dictionary - the dictionary this object belongs to

save

public void save()
          throws IOException,
                 JWNLException
Throws:
IOException
JWNLException

edit

public void edit()
          throws IOException
Throws:
IOException


Copyright © 2011. All Rights Reserved.