com.raritantechnologies.rql.topic
Class FilteredTopicParser

java.lang.Object
  extended bycom.raritantechnologies.rql.topic.FilteredTopicParser
All Implemented Interfaces:
IConfigurable, ITopicParser

public class FilteredTopicParser
extends java.lang.Object
implements ITopicParser

Uses a proxy ITopicParser to create a topic and then applies one or more ITopicFilters.

XML Configuration Template:
   <TopicParser class="com.raritantechnologies.rql.topic.FilteredTopicParser" >

     <!-- The proxy TopicParser -->
     <TopicParser class="[ class of com.raritantechnologies.rql.topic.ITopicParser" >

     </TopicParser>

     <!-- One or more TopicFilter tags: -->
     <TopicFilter class="[ class of com.raritantechnologies.rql.topic.ITopicFilter" >

     </TopicFilter>

     <!-- etc... -->

   </TopicParser>
 

Developed by Raritan Technologies .

Author:
Ted Sullivan

Constructor Summary
FilteredTopicParser()
           
 
Method Summary
 void initialize(org.w3c.dom.Element elem)
          Initializes the object from an XML tag or element.
 Topic parse(java.lang.String topicName, java.lang.String queryString, IResult result)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FilteredTopicParser

public FilteredTopicParser()
Method Detail

parse

public Topic parse(java.lang.String topicName,
                   java.lang.String queryString,
                   IResult result)
Specified by:
parse in interface ITopicParser

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