fr.etai.xat2v2.dict
Class DictionaryManager

java.lang.Object
  extended by fr.etai.xat2v2.dict.DictionaryManager

public final class DictionaryManager
extends Object


Method Summary
 void addDictionary(Dictionary dico)
           
 boolean exists(String dictionaryName)
           
 boolean exists(String dictionaryName, String ref)
           
 String[] getAvailableDictionaries()
          Gets all
 Classification[] getEquivalence(String targetRepository, Classification... classifications)
           
 Classification[] getEquivalence(String targetRepository, String dictionary, String ref)
          Get the entries of any dictionary from targetRepository equivalent to the entry given by dictionary + ref.
static DictionaryManager getInstance()
           
 String[] getRefs(String dictionaryName)
           
 String getTerm(String dictionaryName, String language, String ref)
           
 Map<String,String> getTerms(String dictionaryName, String ref)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static DictionaryManager getInstance()

getRefs

public String[] getRefs(String dictionaryName)

getTerms

public Map<String,String> getTerms(String dictionaryName,
                                   String ref)

getTerm

public String getTerm(String dictionaryName,
                      String language,
                      String ref)

exists

public boolean exists(String dictionaryName)

exists

public boolean exists(String dictionaryName,
                      String ref)

getAvailableDictionaries

public String[] getAvailableDictionaries()
Gets all

Returns:

addDictionary

public void addDictionary(Dictionary dico)

getEquivalence

public Classification[] getEquivalence(String targetRepository,
                                       String dictionary,
                                       String ref)
Get the entries of any dictionary from targetRepository equivalent to the entry given by dictionary + ref.

Parameters:
dictionary -
ref -
targetRepository -
Returns:

getEquivalence

public Classification[] getEquivalence(String targetRepository,
                                       Classification... classifications)


Copyright © 2012. All Rights Reserved.