com.raritantechnologies.rql.topic
Class FlatFileTopicSetBuilder
java.lang.Object
com.raritantechnologies.rql.topic.FlatFileTopicSetBuilder
- All Implemented Interfaces:
- IConfigurable, ITopicSetBuilder
- public class FlatFileTopicSetBuilder
- extends java.lang.Object
- implements ITopicSetBuilder
Builds a TopicSet from a flat file (thesaurus or dictionary file).
Expects a term | synonyms pattern. Term delimiter, synonym delimiter.
XML Configuration Template:
<TopicSetBuilder class="com.raritantechnologies.rql.topic.FlatFileTopicSetBuilder"
fileName="[ name of file that contains the dictionary ]"
termDelimiter="[ optional delimiter to separate term from synonym list ]"
synonymDelimiter="[ optional delimiter to separate synonyms ]" />
Developed by
Raritan Technologies .
- Author:
- Ted Sullivan
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FlatFileTopicSetBuilder
public FlatFileTopicSetBuilder()
buildTopicSet
public TopicSet buildTopicSet(RaritanPageContext pageContext)
- Specified by:
buildTopicSet in interface ITopicSetBuilder
initialize
public void initialize(org.w3c.dom.Element elem)
- Description copied from interface:
IConfigurable
- Initializes the object from an XML tag or element.
This method is called by the Framework as part of the application initializtion.
see ConfigurationManager, XMLConfigurationManager, XMLSearchFieldMapFactory, XMLSearchSourceFactory.
Configurable objects that are owned or contained by other configurable objects will be initialized
in by the parent object.
- Specified by:
initialize in interface IConfigurable