com.raritantechnologies.rql.topic
Class XMLTopicBuilder

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

public class XMLTopicBuilder
extends java.lang.Object
implements ITopicSetBuilder

Builds a topic set from an XML source formatted in RTI TopicSet XML format.

XML Configuration Template:
   <TopicSetBuilder class="com.raritantechnologies.rql.topic.XMLTopicBuilder" >

     <XMLSource class="[ class of com.raritantechnologies.xml.dataCollection.IXMLDataSource ]" >

     </XMLSource>

   </TopicSetBuilder>
 
Topic XML Format:
    <TopicSet>
      <!-- One or more Topic Tags: -->
      <Topic name="[ name of topic ]"
                operator="[ topic operator: one of ... ]"
                isNot="[ true|false(default) ]" >

        <Text>[ Topic text ]</Text>
        <Modifiers>
           <Modifier type="[ object type: INT | STRING | FLOAT ]">[ value of modifier ]
        </Modifiers>

        <!-- One or more nested Topic tags: -->

      </Topic>

      <!- etc ... -->

    </TopicSet>
 

Developed by Raritan Technologies .

Author:
Ted Sullivan

Constructor Summary
XMLTopicBuilder()
           
 
Method Summary
 TopicSet buildTopicSet(RaritanPageContext rpc)
           
 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

XMLTopicBuilder

public XMLTopicBuilder()
Method Detail

buildTopicSet

public TopicSet buildTopicSet(RaritanPageContext rpc)
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