com.raritantechnologies.vqlparser
Class VQLTopicParser

java.lang.Object
  extended bycom.raritantechnologies.vqlparser.VQLTopicParser
All Implemented Interfaces:
IConfigurable, ITopicParser

public class VQLTopicParser
extends java.lang.Object
implements ITopicParser

Converts a Verity Query Language query into an RTI Topic object.

XML Configuration Template:
   <TopicParser class="com.raritantechnologies.vqlparser.VQLTopicParser"
                   phraseOperator="[ ANY|ALL|PHRASE ]" />
 


Constructor Summary
VQLTopicParser()
           
 
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)
           
 void setPhraseOperator(java.lang.String phraseOperator)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VQLTopicParser

public VQLTopicParser()
Method Detail

parse

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

setPhraseOperator

public void setPhraseOperator(java.lang.String phraseOperator)

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