com.silverpeas.pdc.web.beans
Class Thesaurus
java.lang.Object
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).
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Thesaurus
public Thesaurus()
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.