com.raritantechnologies.searchApp.query
Class QueryTopicSetBuilder
java.lang.Object
com.raritantechnologies.searchApp.query.QueryTopicSetBuilder
- All Implemented Interfaces:
- IConfigurable, ITopicSetBuilder
- public class QueryTopicSetBuilder
- extends java.lang.Object
- implements ITopicSetBuilder
TopicSet builder that can create a topic from an Advanced Search Form.
XML Configuration Template:
<TopicSetBuilder class="com.raritantechnologies.searchApp.query.QueryTopicSetBuilder"
isAnd="[ true(default) | false - if true fields are ANDed ]"
topicName="[ name of Root topic (default) = 'root' ]" >
<!-- One or more TopicElement tags: define a query field and topic operators -->
<TopicElement topicName="[ name of Topic ]"
textField="[ input field that has Topic word text ]"
delimiter="[ optional delimiter (for multiple terms) ]"
operatorField="[ input field that contains Topic operator (e.g. Any|All|exact) ]"
operator="[ alternately can specify a configured operator ANY|ALL|AND|OR|NOT|TEXT (default='TEXT') ]" >
<!-- Optional Child TopicElement -->
<TopicElement [configuration as above ] />
</TopicElement>
</TopicSetBuilder>
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 |
QueryTopicSetBuilder
public QueryTopicSetBuilder()
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