com.silverpeas.pdc.web.beans
Class Thesaurus

java.lang.Object
  extended by com.silverpeas.pdc.web.beans.Thesaurus

public class Thesaurus
extends Object

A thesaurus to use in tests. The thesaurus manages the synonyms of terms in a classification plan (named PdC).


Constructor Summary
Thesaurus()
           
 
Method Summary
 Collection<String> getSynonyms(String term)
          Gets the synonym of the specified term.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Thesaurus

public Thesaurus()
Method Detail

getSynonyms

public Collection<String> getSynonyms(String term)
Gets the synonym of the specified term.

Parameters:
term - the term.
Returns:
a collection of synonyms. If no synonyms exist for the term, then an empty collection is returned.


Copyright © 2016 Silverpeas. All Rights Reserved.