com.raritantechnologies.rql.topic
Class TopicSetBuilder

java.lang.Object
  extended bycom.raritantechnologies.rql.topic.TopicSetBuilder
All Implemented Interfaces:
IConfigurable, ITopicSetBuilder

public class TopicSetBuilder
extends java.lang.Object
implements ITopicSetBuilder

Builds a TopicSet from a data source (RTI com.raritantechnologies.searchApp.SeachSource) using a nested ITopicParser to convert query strings to Topic objects.

XML Configuration Template:
   <TopicSetBuilder class="com.raritantechnologies.rql.topic.TopicSetBuilder" 
                       querySource="[ name of RTI Search Source ]"
                       topicNameField="[ name of search result field that has topic name (topic ID) ]"
                       queryField="[ name of result that has query String ]" >

     <!-- mapping of input request parameters to source query fields -->
     <SourceQueryMap>
       <Param requestParam="[ parameter in request ]" queryParam="[ field in query source ]" />
     </SourceQueryMap>
     
     <TopicParser class="[ class of com.raritantechnologies.rql.topic.ITopicParser" >

     </TopicParser>

   </TopicSetBuilder>
 

Developed by Raritan Technologies .

Author:
Ted Sullivan

Constructor Summary
TopicSetBuilder()
           
 
Method Summary
 TopicSet buildTopicSet(RaritanPageContext pageContext)
           
 void initialize(org.w3c.dom.Element elem)
          Initializes the object from an XML tag or element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TopicSetBuilder

public TopicSetBuilder()
Method Detail

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