textmaven.dictionaries
Interface IBaseDictionary

All Known Subinterfaces:
IDictionary, IDictionarySource, IDictionaryWriter, IModifiableDictionary
All Known Implementing Classes:
CompositeDictionary, CSVDictionary, DBDictionary, Dictionary, DictionaryProxy, LuceneDictionary, XMLDictionary

public interface IBaseDictionary

Common services each dictionary has to implement

Author:
krebtho

Method Summary
 void close()
          Performs close operations on the source.
 java.lang.String getDescription()
          Returns description
 java.lang.String getId()
          Returns dictionary id
 java.lang.String getLanguage()
           
 void open()
          Opens connection to datasource
 void setDescription(java.lang.String description)
          Sets description
 void setId(java.lang.String id)
          Sets dictionary id
 void setLanguage(java.lang.String language)
          Sets input language
 

Method Detail

setLanguage

public void setLanguage(java.lang.String language)
Sets input language

Parameters:
language -

getLanguage

public java.lang.String getLanguage()
Returns:
input language

open

public void open()
Opens connection to datasource


close

public void close()
Performs close operations on the source. The source cannot be used after closing it.


setDescription

public void setDescription(java.lang.String description)
Sets description

Parameters:
description -

getDescription

public java.lang.String getDescription()
Returns description

Returns:
description

setId

public void setId(java.lang.String id)
Sets dictionary id

Parameters:
id -

getId

public java.lang.String getId()
Returns dictionary id

Returns:
id


Copyright © 2002-2005 Sourceforge. All Rights Reserved.