com.raritantechnologies.wordmap
Class WordMapTreeBuilder
java.lang.Object
com.raritantechnologies.wordmap.WordMapTreeBuilder
- All Implemented Interfaces:
- IConfigurable, ITreeBuilder
- public class WordMapTreeBuilder
- extends java.lang.Object
- implements ITreeBuilder
Builds an RTI TreeRoot object from a WordMap taxonomy.
Requires a separate daoTaxonomy.xml file that contains Wordmap connection information
somewhere in the classpath. Works with WordMap version 2 - "unpublished" taxonomies.
XML Configuration Template:
<TreeBuilder class="com.raritantechnologies.wordmap.WordMapTreeBuilder"
taxonomyId="[ id of the taxonomy ]"
taxonomyName="[ name of Wordmap taxonomy to build from ]"
memberAttribute="[ name of tree node attribute to hold Wordmap members (synonym phrases) ]" >
<FeatureMap>
<!-- one or more Wordmap Features mapped to a TreeNode attribute -->
<Feature name="[ name of Wordmap feature type ]" attribute="[ name of tree node attribute ]" />
</FeatureMap>
</TreeBuilder>
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WordMapTreeBuilder
public WordMapTreeBuilder()
buildTree
public TreeRoot buildTree(RaritanPageContext pContext)
- Specified by:
buildTree in interface ITreeBuilder
refreshTree
public TreeRoot refreshTree(TreeRoot tree,
RaritanPageContext pContext)
- Description copied from interface:
ITreeBuilder
Method to enable dynamic or refreshable trees. Static tree builders should implement this
by returning the passed in tree object. Dynamic tree builders should
implement this by returning the output of their buildTree( ) method or by pruning/growing
the given tree as appropriate.
ITreeBuilders that support "lazy tree node evaluation" should use this method to determine which nodes
in the tree need to be updated (TreeNode.needsUpdate( ) method returns true.
- Specified by:
refreshTree in interface ITreeBuilder
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