com.raritantechnologies.federated.fast
Class FQLTopicRenderer

java.lang.Object
  extended bycom.raritantechnologies.federated.fast.FQLTopicRenderer
All Implemented Interfaces:
IConfigurable, ITopicRenderer

public class FQLTopicRenderer
extends java.lang.Object
implements ITopicRenderer

Renders a Topic into Fast Query Language (FQL).

XML Configuration Template:
  <TopicRenderer class="com.raritantechnologies.federated.fast.FQLTopicRenderer"
                    nearDistance="[ default number of terms for near operator (default=10) ]" >

    <!-- Optional Field mapping -->
    <Fields onlyUseMappedFields="[ true|false(default) ]">
      <Field ID="[ abstract fieldID ]" collectionField="[ name of field in collection (or 'FREETEXT') ]" type="[number|text|date]"/>
    </Fields>

  </TopicRenderer>
 


Constructor Summary
FQLTopicRenderer()
           
 
Method Summary
 void initialize(org.w3c.dom.Element elem)
          Initializes the object from an XML tag or element.
 java.lang.String renderTopic(Topic topic)
           
 java.lang.String renderTopic(Topic topic, java.util.Set subTopics, boolean skipSubTopics)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FQLTopicRenderer

public FQLTopicRenderer()
Method Detail

renderTopic

public java.lang.String renderTopic(Topic topic)
Specified by:
renderTopic in interface ITopicRenderer

renderTopic

public java.lang.String renderTopic(Topic topic,
                                    java.util.Set subTopics,
                                    boolean skipSubTopics)
Specified by:
renderTopic in interface ITopicRenderer

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