com.raritantechnologies.wordmap
Class WordMapXMLGenerator

java.lang.Object
  extended bycom.raritantechnologies.wordmap.WordMapXMLGenerator
All Implemented Interfaces:
IConfigurable, ITreeXMLGenerator

public class WordMapXMLGenerator
extends java.lang.Object
implements ITreeXMLGenerator

Writes RTI Tree object to WordMap XML format.

XML Configuration Template:
  <TreeXMLGenerator class="com.raritantechnologies.wordmap.WordMapXMLGenerator"
                       fileName="[ name of XML output file ]"
                       locale="[ name of locale (default='en') ]"
                       taxonomyName="[ name of taxonomy ]"
                       description="[ description of taxonomy ]" >

   <FeatureTypes>
     <FeatureType attribute="[ name of TreeNode attribute ]" featureName="[ name of Wordmap feature ]"
                     data_type="[ name of Wordmap data type ]" sub_type="[ name of Wordmap sub type ]"
                     locale_specific="[ true|false(default) ]"
                     editable="true(default)|false"
                     required="true|false(default)"
                     unique="true|false(default)"
                     key="true|false(default)"
                     cardinality="S(default)|M" />

   </FeatureTypes>

  </TreeXMLGenerator>
 


Constructor Summary
WordMapXMLGenerator()
           
 
Method Summary
 java.lang.String getXML(TreeRoot tree)
          returns an XML string that represents data in a TreeRoot object.
 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

WordMapXMLGenerator

public WordMapXMLGenerator()
Method Detail

getXML

public java.lang.String getXML(TreeRoot tree)
Description copied from interface: ITreeXMLGenerator
returns an XML string that represents data in a TreeRoot object.

Specified by:
getXML in interface ITreeXMLGenerator

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